lexus2k / ssd1306

Driver for SSD1306, SSD1331, SSD1351, IL9163, ILI9341, ST7735, PCD8544, Nokia 5110 displays running on Arduino/ESP32/Linux (Rasperry) platforms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Rottenbeer opened this issue · comments

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=<your_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?

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