Trouble installing library from github?

I am trying to install this library CO2-Library, but it won't run properly. I downloaded the .ZIP and the library appears in the library folder. I can open examples from the library via file - open - examples...
However, running an example of the library leads to the following error:

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:258:0,
                 from sketch\Single.ino.cpp:1:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard/pins_arduino.h:54:21: error: expected unqualified-id before numeric constant
 #define LED_BUILTIN 13
                     ^
F:\repos\arduino_projects\libraries\Sunrise-master-master\examples\Single\Single.ino:24:35: note: in expansion of macro 'LED_BUILTIN'
 const uint8_t                     LED_BUILTIN                       = 2;        // Built in led for mcu
                                   ^~~~~~~~~~~
Single:25:1: error: 'RTC_DATA_ATTR' does not name a type
 RTC_DATA_ATTR unsigned long       time_since_abc_time_incr          = 0;        // Timer for ABC-time
 ^~~~~~~~~~~~~
F:\repos\arduino_projects\libraries\Sunrise-master-master\examples\Single\Single.ino: In function 'void setup()':
Single:32:3: error: 'esp_sleep_enable_timer_wakeup' was not declared in this scope
   esp_sleep_enable_timer_wakeup(TIME_TO_SLEEP * 1000000);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
F:\repos\arduino_projects\libraries\Sunrise-master-master\examples\Single\Single.ino: In function 'void loop()':
Single:104:17: error: 'time_since_abc_time_incr' was not declared in this scope
   if (3600000 < time_since_abc_time_incr) {
                 ^~~~~~~~~~~~~~~~~~~~~~~~
Single:124:3: error: 'time_since_abc_time_incr' was not declared in this scope
   time_since_abc_time_incr = time_since_abc_time_incr + millis() + TIME_TO_SLEEP * 1000;
   ^~~~~~~~~~~~~~~~~~~~~~~~
Single:125:3: error: 'esp_deep_sleep_start' was not declared in this scope
   esp_deep_sleep_start();
   ^~~~~~~~~~~~~~~~~~~~
exit status 1
'RTC_DATA_ATTR' does not name a type

I tried changing the name of the library (as some former posts said that some folder names are hard to read for the IDE, I tried different directories, but now I dont know what could be the reason. It also seems to me as the line

RTC_DATA_ATTR unsigned long       time_since_abc_time_incr          = 0;        // Timer for ABC-time

won't work, as "RTC_DATA_ATTR " is not appearing somewhere else.

Thanks for the help already!

Your topic was MOVED to its current forum category as it is more suitable than the original

Which Arduino board are you using and which board have you got selected in the IDE ?

the Single example is for ESP32 board

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.