UCTRONICS / U6143_ssd1306

70 stars 88 forks source link

Compatibility with dietpi? #13

Closed ghost closed 3 years ago

ghost commented 3 years ago

is there any way I can use this on the operating system dietpi? I have turned I2C on and it gives me this error:

rm -rf *.o
rm -rf display
cc    -c -o display.o display.c
cc    -c -o ssd1306_i2c.o ssd1306_i2c.c
ssd1306_i2c.c:7:10: fatal error: wiringPiI2C.h: No such file or directory
 #include <wiringPiI2C.h>
          ^~~~~~~~~~~~~~~
compilation terminated.
make: *** [<builtin>: ssd1306_i2c.o] Error 1
eshicks4 commented 3 years ago

You just need to "apt install wiringpi". That part isn't mentioned in the instructions yet. (probably should be)

ghost commented 3 years ago

E: Unable to locate package wiringpi

ghost commented 3 years ago

I was able to install it with dietpi-software. it works now!