Include avr library in my sketch
hi all,
i newbie in , having problem trying include avr libraries/header files avr/io.h in sketch. ide says fatal error, no such file or directory.
the reason why need library because found piece code online uses functions , predefined variables such admux, _bv(), adcsra , adsc
my arduino ide under windows 8.1 environment , understand avr library in path arduino/hardware/tools/avr/avr/include/avr it seems can't add file path.
i read how library under tools folder can't added because not under core folder, tried copy , paste avr library sketchbook/libraries , didn't work.
can show me how include files such avr/io.h in code? thanks.
f33d
i newbie in , having problem trying include avr libraries/header files avr/io.h in sketch. ide says fatal error, no such file or directory.
the reason why need library because found piece code online uses functions , predefined variables such admux, _bv(), adcsra , adsc
my arduino ide under windows 8.1 environment , understand avr library in path arduino/hardware/tools/avr/avr/include/avr it seems can't add file path.
i read how library under tools folder can't added because not under core folder, tried copy , paste avr library sketchbook/libraries , didn't work.
can show me how include files such avr/io.h in code? thanks.
f33d
"avr/io.h" automatically linked via ide. believe included in wiring.h file.
add line @ top of sketch:
#include <avr/eeprom.h>
add line @ top of sketch:
#include <avr/eeprom.h>
Arduino Forum > Using Arduino > Programming Questions > Include avr library in my sketch
arduino
Comments
Post a Comment