lexus2k / ssd1306

Driver for SSD1306, SSD1331, SSD1351, IL9163, ILI9341, ST7735, PCD8544, Nokia 5110 displays running on Arduino/ESP32/Linux (Rasperry) platforms
MIT License
662 stars 127 forks source link

How to integrate this library in a atmega project with platformio? #129

Open Rottenbeer opened 3 years ago

Rottenbeer commented 3 years ago

Ask any question, you have, regarding the library Hi! I'm new to platformio, so I guess it's a stupid question, but I'm wondering how I integrate your Makefile for avr in platformio? I can compile your library with the following: Build the library (variant 1) cd ssd1306/src && make -f Makefile.avr MCU= Link library to your project (refer to Makefile.avr in examples folder).

but I wonder how I can integrate this in platformio for my project? If I install it and compile it the project with pio run, it stops because it doesn't find the Wire.h from the Arduino framework: avr-gcc -o .pio/build/ATmega168/lib05e/ssd1306/ssd1306_hal/esp/platform.c.o -c -std=gnu11 -fno-fat-lto-objects -Os -Wall -ffunction-sections -fdata-sections -flto -mmcu=atmega168p -DPLATFORMIO=50101 -DARDUINO_AVR_ATmega168P -DF_CPU=16000000L -DARDUINO_ARCH_AVR -DARDUINO=10808 -I.pio/libdeps/ATmega168/ssd1306/src -I/home/styx/.platformio/packages/framework-arduino-avr-minicore/cores/MiniCore -I/home/styx/.platformio/packages/framework-arduino-avr-minicore/variants/standard .pio/libdeps/ATmega168/ssd1306/src/ssd1306_hal/esp/platform.c .pio/libdeps/ATmega168/ssd1306/src/ssd1306_hal/arduino/platform.cpp:41:10: fatal error: Wire.h: No such file or directory

Do you know how I can integrate your lib in my avr project?

lexus2k commented 3 years ago

Hi, that's a matter of project dependencies. Please, check #127