Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Rottenbeer opened this issue May 23, 2021 · 1 comment
Open

Comments

@Rottenbeer
Copy link

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?

@lexus2k
Copy link
Owner

lexus2k commented May 23, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants