= 2.23inch_OLED_HAT

== intro

****
 The SSD1305 is a CMOS OLED/PLED driver with controller for organic/polymer  
 light emitting diode dot-matrix graphic display system.  
 It consists of 132 segments and 64 commons that can support a  
 maximum display resolution of 132x64.  
****

== c

=== prereqs

 yum -y install p7zip gcc-c++
 echo "dtparam=spi=on" > /boot/config.txt

=== compile bcm2835 libraries

 wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.68.tar.gz
 tar xzf bcm2835-1.68.tar.gz
 rm -f bcm2835-1.68.tar.gz
 cd bcm2835-1.68/
 ./configure
 make --quiet
 make --quiet install
 cd
 
=== compile bcm8235 libraries

 wget https://www.waveshare.com/w/upload/c/c5/2.23inch-OLED-HAT-Code.7z
 7za x 2.23inch-OLED-HAT-Code.7z
 rm -f 2.23inch-OLED-HAT-Code.7z
 cd ~/2.23inch-OLED-HAT-Code/Raspberry\ Pi/IIC/bcm2835/
 make clean
 make
 ./oled
 cd
 
----
 bcm2835 init success  !!! 
USE_IIC
----

=== compile wiringpi sample

 cd ~/2.23inch-OLED-HAT-Code/Raspberry\ Pi/IIC/bcm2835/
 make clean
 make
 ./oled
 cd

----
bcm2835 init success  !!! 
USE_IIC
----
== references

https://www.waveshare.com/wiki/2.23inch_OLED_HAT

http://www.airspayce.com/mikem/bcm2835/

