Arduino Uno Rev2 Wifi w/ RTC 3231

I'm currently working on a Hydroponic system and trying to implement a timing schedule for both the grow lights (5V Relay) and the pump(5V Relay). I would like for Lights to come on at 06:00 and turn off at 19:00. The pump to turn on at 06:00 and turn off at 06:05 and turn on an hour later and run for 5 minutes. The pump will need to repeat this until The sketch which is based on the RTC 3231 below complies with my Arduino Uno fine, with no errors, using both versions of IDE 1.8 and 2.0. However, when I try to compile it for my Uno Rev2 Wifi (ATmega4809), I get a laundry list of errors(see below). I'm sure it has something to do with the different chips between the two models not matching with what is coded in some of the sub folders but I have no idea what I am doing and do not want to screw it up worse than what it is currently. I'm using the library from rinkydinkelectronics but I have tried several of the DS3231 Libraries from IDE. I have tried to google this issue and I guess I'm too stupid to figure it out with my extremely limited coding knowledge(if you can't tell from the code below). I tried some of the examples and had issues compiling them as well. If anyone has any ideas or a library that will work with the RTC and UNO R2 Wifi, it would be appreciated. If so, please reply in Laymens Terms lol... Thank you!

#include <DS3231.h>

// Init the DS3231 using the hardware interface
DS3231  rtc(SDA, SCL); 
// Init a Time-data structure
Time  t;
// pin for Relay
int growlight=13  ;
int waterpump=12 ;

// parameters 
int water =0;
int light=0;
int watertime = 60;
int lighttime=68;
//-------------------------

void setup() {

    // Setup Serial connection
  //Serial.begin(115200);
  
// Initialize the rtc object
  rtc.begin(); 
  
// The following lines can be uncommented to set the date and time
rtc.setDOW(TUESDAY);     // Set Day-of-Week to SUNDAY
rtc.setTime(06, 20, 00);     // Set the time to 12:00:00 (24hr format)
rtc.setDate(07, 11, 2022);   // Set the date to DD/MM/YYYY

// Relay Pin Setup :
pinMode ( growlight,OUTPUT);
pinMode ( waterpump,OUTPUT);

digitalWrite(growlight,LOW);
digitalWrite(waterpump,LOW);

}


void loop() {
 // Get data from the DS3231
  t = rtc.getTime(); 

// Send time
//  Serial.print("\n");
//  Serial.println(rtc.getTimeStr());
//  
//  Serial.print(" W counter : ");
//  Serial.print(water);
//  Serial.print(" L counter : ");
//  Serial.print (Light);
//  Serial.print ("  ");
  
//----------
if (t.hour ==06 && t.min ==00)
{
digitalWrite(growlight,HIGH); // activate growlight
digitalWrite(waterpump,HIGH); // activate waterpump
light=1;
water=1;
//Serial.print(" --LIGHT & WATER-- ");
} 

if (t.hour ==06 && t.min ==05)
{
digitalWrite(waterpump,LOW); // deactivate waterpump
water=1 ;
//Serial.print(" --water-- ");
} 
//----------
if (t.hour ==7 && t.min ==05)
{
digitalWrite(waterpump,HIGH); // activate waterpump
water=1 ;
} 

if (t.hour ==7 && t.min ==10)
{
digitalWrite(waterpump,LOW); // deactivate waterpump
water=1 ;
} 
//----------
if (t.hour ==8 && t.min ==10)
{
digitalWrite(waterpump,HIGH); // activate waterpump
water=1 ;
} 

if (t.hour ==8 && t.min ==15)
{
digitalWrite(waterpump,LOW); // deactivate waterpump
water=1 ;
} 
//----------
if (t.hour ==9 && t.min ==15)
{
digitalWrite(waterpump,HIGH); // activate waterpump
water=1 ;
} 

if (t.hour ==9 && t.min ==20)
{
digitalWrite(waterpump,LOW); // deactivate waterpump
water=1 ;
} 
//----------
if (t.hour ==10 && t.min ==20)
{
digitalWrite(waterpump,HIGH); // activate waterpump
water=1 ;
} 

if (t.hour ==10 && t.min ==25)
{
digitalWrite(waterpump,LOW); // deactivate waterpump
water=1 ;
} 
if (t.hour ==11 && t.min ==25)
{
digitalWrite(waterpump,HIGH); // activate waterpump
water=1 ;
} 
if (t.hour ==11 && t.min ==30)
{
digitalWrite(waterpump,LOW); // deactivate waterpump
water=1 ;
} 
if (t.hour ==12 && t.min ==30)
{
digitalWrite(waterpump,HIGH); // activate waterpump
water=1 ;
} 
if (t.hour ==12 && t.min ==35)
{
digitalWrite(waterpump,LOW); // deactivate waterpump
water=1 ;
} 
if (t.hour ==13 && t.min ==35)
{
digitalWrite(waterpump,HIGH); // activate waterpump
water=1 ;
} 
if (t.hour ==13 && t.min ==40)
{
digitalWrite(waterpump,LOW); // deactivate waterpump
water=1 ;
} 
if (t.hour ==14 && t.min ==40)
{
digitalWrite(waterpump,HIGH); // activate waterpump
water=1 ;
} 
if (t.hour ==14 && t.min ==45)
{
digitalWrite(waterpump,LOW); // deactivate waterpump
water=1 ;
} 
if (t.hour ==15 && t.min ==45)
{
digitalWrite(waterpump,HIGH); // activate waterpump
water=1 ;
} 
if (t.hour ==15 && t.min ==50)
{
digitalWrite(waterpump,LOW); // deactivate waterpump
water=1 ;
} 
if (t.hour ==16 && t.min ==50)
{
digitalWrite(waterpump,HIGH); // activate waterpump
water=1 ;
}
if (t.hour ==16 && t.min ==55)
{
digitalWrite(waterpump,LOW); // deactivate waterpump
water=1 ;
} 
if (t.hour ==17 && t.min ==55)
{
digitalWrite(waterpump,HIGH); // activate waterpump
water=1 ;
} 
if (t.hour ==18 && t.min ==00)
{
digitalWrite(waterpump,LOW); // deactivate waterpump
water=1 ;
} 
if (t.hour ==19 && t.min ==00)
{
digitalWrite(waterpump,HIGH); // activate waterpump
digitalWrite(growlight,LOW); // deactivate growlight
water=1 ;
growlight=1 ;
}
if (t.hour ==19 && t.min ==05)
{
digitalWrite(waterpump,LOW); // deactivate waterpump
water=1 ;
}
//----------
if ( water >=1) { water++ ; }
if ( light >=1) { light++ ; }

if (light == lighttime)
{ light=0 ;
  digitalWrite(growlight,HIGH); // Deactivate Light
  //Serial.print(" --light- XX- ");
}

if ( water == watertime)
{ water=0 ; 
  digitalWrite(waterpump,HIGH); // Deactivate waterpump
  //Serial.print(" --Water XX-- ");
}

delay (30000);

}

In file included from c:\users\twhitma\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\io.h:99:0,
                 from c:\users\twhitma\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\pgmspace.h:90,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/String.h:31,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/IPAddress.h:24,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/ArduinoAPI.h:30,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/Arduino.h:23,
                 from \\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\DS3231.h:26,
                 from \\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\DS3231.cpp:22:
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h: In member function 'void DS3231::begin()':
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:12:7: error: 'TWSR' was not declared in this scope
   cbi(TWSR, TWPS0);
       ^
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:12:3: note: in expansion of macro 'cbi'
   cbi(TWSR, TWPS0);
   ^~~
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:12:7: note: suggested alternative: 'TWI0'
   cbi(TWSR, TWPS0);
       ^
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:12:3: note: in expansion of macro 'cbi'
   cbi(TWSR, TWPS0);
   ^~~
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:12:13: error: 'TWPS0' was not declared in this scope
   cbi(TWSR, TWPS0);
             ^
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:12:3: note: in expansion of macro 'cbi'
   cbi(TWSR, TWPS0);
   ^~~
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:12:13: note: suggested alternative: 'TWI0'
   cbi(TWSR, TWPS0);
             ^
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:12:3: note: in expansion of macro 'cbi'
   cbi(TWSR, TWPS0);
   ^~~
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:13:13: error: 'TWPS1' was not declared in this scope
   cbi(TWSR, TWPS1);
             ^
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:13:3: note: in expansion of macro 'cbi'
   cbi(TWSR, TWPS1);
   ^~~
In file included from \\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\DS3231.cpp:26:0:
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:14:3: error: 'TWBR' was not declared in this scope
   TWBR = ((F_CPU / TWI_FREQ) - 16) / 2;
   ^~~~
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:14:3: note: suggested alternative: 'TWI0'
   TWBR = ((F_CPU / TWI_FREQ) - 16) / 2;
   ^~~~
   TWI0
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:17:3: error: 'TWCR' was not declared in this scope
   TWCR = _BV(TWEN) | _BV(TWIE)/* | _BV(TWEA)*/;
   ^~~~
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:17:3: note: suggested alternative: 'TWI0'
   TWCR = _BV(TWEN) | _BV(TWIE)/* | _BV(TWEA)*/;
   ^~~~
   TWI0
In file included from c:\users\twhitma\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\io.h:99:0,
                 from c:\users\twhitma\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\pgmspace.h:90,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/String.h:31,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/IPAddress.h:24,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/ArduinoAPI.h:30,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/Arduino.h:23,
                 from \\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\DS3231.h:26,
                 from \\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\DS3231.cpp:22:
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:17:14: error: 'TWEN' was not declared in this scope
   TWCR = _BV(TWEN) | _BV(TWIE)/* | _BV(TWEA)*/;
              ^
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:17:14: note: suggested alternative: 'TWI0'
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:17:26: error: 'TWIE' was not declared in this scope
   TWCR = _BV(TWEN) | _BV(TWIE)/* | _BV(TWEA)*/;
                          ^
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:17:26: note: suggested alternative: 'TWI0'
In file included from \\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\DS3231.cpp:26:0:
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h: In member function 'void DS3231::_burstRead()':
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:31:3: error: 'TWCR' was not declared in this scope
   TWCR = _BV(TWEN) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTA);      // Send START
   ^~~~
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:31:3: note: suggested alternative: 'TWI0'
   TWCR = _BV(TWEN) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTA);      // Send START
   ^~~~
   TWI0
In file included from c:\users\twhitma\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\io.h:99:0,
                 from c:\users\twhitma\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\pgmspace.h:90,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/String.h:31,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/IPAddress.h:24,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/ArduinoAPI.h:30,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/Arduino.h:23,
                 from \\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\DS3231.h:26,
                 from \\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\DS3231.cpp:22:
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:31:14: error: 'TWEN' was not declared in this scope
   TWCR = _BV(TWEN) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTA);      // Send START
              ^
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:31:14: note: suggested alternative: 'TWI0'
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:31:26: error: 'TWEA' was not declared in this scope
   TWCR = _BV(TWEN) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTA);      // Send START
                          ^
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:31:26: note: suggested alternative: 'TWI0'
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:31:38: error: 'TWINT' was not declared in this scope
   TWCR = _BV(TWEN) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTA);      // Send START
                                      ^
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:31:38: note: suggested alternative: 'TWI_t'
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:31:51: error: 'TWSTA' was not declared in this scope
   TWCR = _BV(TWEN) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTA);      // Send START
                                                   ^
In file included from \\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\DS3231.cpp:26:0:
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:33:3: error: 'TWDR' was not declared in this scope
   TWDR = DS3231_ADDR_W;
   ^~~~
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:33:3: note: suggested alternative: 'TWI0'
   TWDR = DS3231_ADDR_W;
   ^~~~
   TWI0
In file included from c:\users\twhitma\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\io.h:99:0,
                 from c:\users\twhitma\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\pgmspace.h:90,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/String.h:31,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/IPAddress.h:24,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/ArduinoAPI.h:30,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/Arduino.h:23,
                 from \\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\DS3231.h:26,
                 from \\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\DS3231.cpp:22:
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:55:38: error: 'TWSTO' was not declared in this scope
   TWCR = _BV(TWEN)| _BV(TWINT) | _BV(TWSTO);         // Send STOP
                                      ^
In file included from \\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\DS3231.cpp:26:0:
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h: In member function 'uint8_t DS3231::_readRegister(uint8_t)':
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:85:3: error: 'TWCR' was not declared in this scope
   TWCR = _BV(TWEN) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTA);      // Send START
   ^~~~
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:85:3: note: suggested alternative: 'TWI0'
   TWCR = _BV(TWEN) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTA);      // Send START
   ^~~~
   TWI0
In file included from c:\users\twhitma\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\io.h:99:0,
                 from c:\users\twhitma\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\pgmspace.h:90,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/String.h:31,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/IPAddress.h:24,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/ArduinoAPI.h:30,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/Arduino.h:23,
                 from \\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\DS3231.h:26,
                 from \\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\DS3231.cpp:22:
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:85:14: error: 'TWEN' was not declared in this scope
   TWCR = _BV(TWEN) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTA);      // Send START
              ^
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:85:14: note: suggested alternative: 'TWI0'
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:85:26: error: 'TWEA' was not declared in this scope
   TWCR = _BV(TWEN) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTA);      // Send START
                          ^
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:85:26: note: suggested alternative: 'TWI0'
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:85:38: error: 'TWINT' was not declared in this scope
   TWCR = _BV(TWEN) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTA);      // Send START
                                      ^
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:85:38: note: suggested alternative: 'TWI_t'
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:85:51: error: 'TWSTA' was not declared in this scope
   TWCR = _BV(TWEN) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTA);      // Send START
                                                   ^
In file included from \\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\DS3231.cpp:26:0:
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:87:3: error: 'TWDR' was not declared in this scope
   TWDR = DS3231_ADDR_W;
   ^~~~
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:87:3: note: suggested alternative: 'TWI0'
   TWDR = DS3231_ADDR_W;
   ^~~~
   TWI0
In file included from c:\users\twhitma\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\io.h:99:0,
                 from c:\users\twhitma\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\pgmspace.h:90,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/String.h:31,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/IPAddress.h:24,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/ArduinoAPI.h:30,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/Arduino.h:23,
                 from \\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\DS3231.h:26,
                 from \\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\DS3231.cpp:22:
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:106:38: error: 'TWSTO' was not declared in this scope
   TWCR = _BV(TWEN)| _BV(TWINT) | _BV(TWSTO);         // Send STOP
                                      ^
In file included from \\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\DS3231.cpp:26:0:
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h: In member function 'void DS3231::_writeRegister(uint8_t, uint8_t)':
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:128:3: error: 'TWCR' was not declared in this scope
   TWCR = _BV(TWEN) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTA);      // Send START
   ^~~~
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:128:3: note: suggested alternative: 'TWI0'
   TWCR = _BV(TWEN) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTA);      // Send START
   ^~~~
   TWI0
In file included from c:\users\twhitma\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\io.h:99:0,
                 from c:\users\twhitma\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\pgmspace.h:90,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/String.h:31,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/IPAddress.h:24,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/ArduinoAPI.h:30,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/Arduino.h:23,
                 from \\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\DS3231.h:26,
                 from \\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\DS3231.cpp:22:
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:128:14: error: 'TWEN' was not declared in this scope
   TWCR = _BV(TWEN) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTA);      // Send START
              ^
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:128:14: note: suggested alternative: 'TWI0'
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:128:26: error: 'TWEA' was not declared in this scope
   TWCR = _BV(TWEN) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTA);      // Send START
                          ^
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:128:26: note: suggested alternative: 'TWI0'
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:128:38: error: 'TWINT' was not declared in this scope
   TWCR = _BV(TWEN) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTA);      // Send START
                                      ^
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:128:38: note: suggested alternative: 'TWI_t'
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:128:51: error: 'TWSTA' was not declared in this scope
   TWCR = _BV(TWEN) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTA);      // Send START
                                                   ^
In file included from \\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\DS3231.cpp:26:0:
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:130:3: error: 'TWDR' was not declared in this scope
   TWDR = DS3231_ADDR_W;
   ^~~~
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:130:3: note: suggested alternative: 'TWI0'
   TWDR = DS3231_ADDR_W;
   ^~~~
   TWI0
In file included from c:\users\twhitma\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\io.h:99:0,
                 from c:\users\twhitma\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\pgmspace.h:90,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/String.h:31,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/IPAddress.h:24,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/ArduinoAPI.h:30,
                 from C:\Users\twhitma\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/Arduino.h:23,
                 from \\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\DS3231.h:26,
                 from \\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\DS3231.cpp:22:
\\D138H00001.us138.corpintra.net\D138_H10006$\TWHITMA\Data\My Documents\Arduino\libraries\DS3231\hardware/avr/HW_AVR.h:140:38: error: 'TWSTO' was not declared in this scope
   TWCR = _BV(TWEN)| _BV(TWINT) | _BV(TWSTO);         // Send STOP
                                      ^

exit status 1

Compilation error: exit status 1

Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project.

I unfortunately have no idea of a compatible library.

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