| $ sudo apt install git $ git clone https://github.com/nopnop2002/Raspberry-ssd1306 $ cd Raspberry-ssd1306 $ cc -o oled oled.c fontx.c -lwiringPi -lpthread -DI2C |
| OLEDモジュール | RPI/OPI (Pin#) |
|
|---|---|---|
| PIN | SIG | |
| 1 | GND | Gnd |
| 2 | VDD |
3.3V |
| 3 | SCK |
SCK(#5) |
| 4 | SDA |
SDA(#3) |
| $ git clone
https://github.com/nopnop2002/ssd1306_rpi.git $ cd ssd1306_rpi/ $ cc -o oled oled.c fontx.c -lwiringPi -lpthread -DI2C -DX32 |