DzikuVx / attiny_photoresistor_i2c

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

avr/sleep.h: No such file or directory

keen101 opened this issue · comments

I'm a little confused at what library i need for the low power stuff for the Arduino IDE

#include <avr/sleep.h>
#include <avr/wdt.h>

attiny_photoresistor_i2c:19:23: fatal error: avr/sleep.h: No such file or directory
compilation terminated.
exit status 1
avr/sleep.h: No such file or directory

It seems my Arduino IDE does not have the avr folder included in the default location. i can copy it manually, but I'm not sure where it actually needs to go. Compile is still broken and when i try to include those files in the sketch folder manually they are each referring to several other libraries in the avr folder. the avr folder from gcc-avr is at /usr/lib/avr/include/avr. Copying it to the libraries folder does not seem to work.

so it seems avr IS incuded with my copy of the IDE. No idea why this is not working. /arduino-1.8.12/hardware/tools/avr/avr/include/avr

So i guess my IDE install was corrupted somehow. Doing a fresh install seems to have fixed it. Now to solve the new TinyWireS issues.

This thread helped me: https://forum.arduino.cc/index.php?topic=176705.0