Arduino: 1.8.5 (Windows Store 1.8.10.0) (Windows 10), Board: "ATtiny24/44/84, ATtiny44, External 20 MHz" C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c: In function 'twi_init': C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:76:16: error: 'SDA' undeclared (first use in this function) digitalWrite(SDA, 1); ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:76:16: note: each undeclared identifier is reported only once for each function it appears in C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:77:16: error: 'SCL' undeclared (first use in this function) digitalWrite(SCL, 1); ^ In file included from c:\users\dell\documents\arduinodata\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2\avr\include\avr\io.h:99:0, from C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:25: C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:80:7: error: 'TWSR' undeclared (first use in this function) cbi(TWSR, TWPS0); ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:80:3: note: in expansion of macro 'cbi' cbi(TWSR, TWPS0); ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:80:13: error: 'TWPS0' undeclared (first use in this function) cbi(TWSR, TWPS0); ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:80:3: note: in expansion of macro 'cbi' cbi(TWSR, TWPS0); ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:81:13: error: 'TWPS1' undeclared (first use in this function) cbi(TWSR, TWPS1); ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:81:3: note: in expansion of macro 'cbi' cbi(TWSR, TWPS1); ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:82:3: error: 'TWBR' undeclared (first use in this function) TWBR = ((F_CPU / TWI_FREQ) - 16) / 2; ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:90:3: error: 'TWCR' undeclared (first use in this function) TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA); ^ In file included from c:\users\dell\documents\arduinodata\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2\avr\include\avr\io.h:99:0, from C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:25: C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:90:14: error: 'TWEN' undeclared (first use in this function) TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA); ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:90:26: error: 'TWIE' undeclared (first use in this function) TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA); ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:90:38: error: 'TWEA' undeclared (first use in this function) TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA); ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c: In function 'twi_disable': C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:102:3: error: 'TWCR' undeclared (first use in this function) TWCR &= ~(_BV(TWEN) | _BV(TWIE) | _BV(TWEA)); ^ In file included from c:\users\dell\documents\arduinodata\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2\avr\include\avr\io.h:99:0, from C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:25: C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:102:17: error: 'TWEN' undeclared (first use in this function) TWCR &= ~(_BV(TWEN) | _BV(TWIE) | _BV(TWEA)); ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:102:29: error: 'TWIE' undeclared (first use in this function) TWCR &= ~(_BV(TWEN) | _BV(TWIE) | _BV(TWEA)); ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:102:41: error: 'TWEA' undeclared (first use in this function) TWCR &= ~(_BV(TWEN) | _BV(TWIE) | _BV(TWEA)); ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:105:16: error: 'SDA' undeclared (first use in this function) digitalWrite(SDA, 0); ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:106:16: error: 'SCL' undeclared (first use in this function) digitalWrite(SCL, 0); ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c: In function 'twi_setAddress': C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:118:3: error: 'TWAR' undeclared (first use in this function) TWAR = address << 1; ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c: In function 'twi_setFrequency': C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:129:3: error: 'TWBR' undeclared (first use in this function) TWBR = ((F_CPU / frequency) - 16) / 2; ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c: In function 'twi_readFrom': C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:187:7: error: 'TWDR' undeclared (first use in this function) TWDR = twi_slarw; ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:188:13: error: 'TWCR' undeclared (first use in this function) } while(TWCR & _BV(TWWC)); ^ In file included from c:\users\dell\documents\arduinodata\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2\avr\include\avr\io.h:99:0, from C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:25: C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:188:24: error: 'TWWC' undeclared (first use in this function) } while(TWCR & _BV(TWWC)); ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:189:16: error: 'TWINT' undeclared (first use in this function) TWCR = _BV(TWINT) | _BV(TWEA) | _BV(TWEN) | _BV(TWIE); // enable INTs, but not START ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:189:29: error: 'TWEA' undeclared (first use in this function) TWCR = _BV(TWINT) | _BV(TWEA) | _BV(TWEN) | _BV(TWIE); // enable INTs, but not START ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:189:41: error: 'TWEN' undeclared (first use in this function) TWCR = _BV(TWINT) | _BV(TWEA) | _BV(TWEN) | _BV(TWIE); // enable INTs, but not START ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:189:53: error: 'TWIE' undeclared (first use in this function) TWCR = _BV(TWINT) | _BV(TWEA) | _BV(TWEN) | _BV(TWIE); // enable INTs, but not START ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:193:65: error: 'TWSTA' undeclared (first use in this function) TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTA); ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c: In function 'twi_writeTo': C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:269:7: error: 'TWDR' undeclared (first use in this function) TWDR = twi_slarw; ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:270:13: error: 'TWCR' undeclared (first use in this function) } while(TWCR & _BV(TWWC)); ^ In file included from c:\users\dell\documents\arduinodata\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2\avr\include\avr\io.h:99:0, from C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:25: C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:270:24: error: 'TWWC' undeclared (first use in this function) } while(TWCR & _BV(TWWC)); ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:271:16: error: 'TWINT' undeclared (first use in this function) TWCR = _BV(TWINT) | _BV(TWEA) | _BV(TWEN) | _BV(TWIE); // enable INTs, but not START ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:271:29: error: 'TWEA' undeclared (first use in this function) TWCR = _BV(TWINT) | _BV(TWEA) | _BV(TWEN) | _BV(TWIE); // enable INTs, but not START ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:271:41: error: 'TWEN' undeclared (first use in this function) TWCR = _BV(TWINT) | _BV(TWEA) | _BV(TWEN) | _BV(TWIE); // enable INTs, but not START ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:271:53: error: 'TWIE' undeclared (first use in this function) TWCR = _BV(TWINT) | _BV(TWEA) | _BV(TWEN) | _BV(TWIE); // enable INTs, but not START ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:275:65: error: 'TWSTA' undeclared (first use in this function) TWCR = _BV(TWINT) | _BV(TWEA) | _BV(TWEN) | _BV(TWIE) | _BV(TWSTA); // enable INTs ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c: In function 'twi_reply': C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:357:5: error: 'TWCR' undeclared (first use in this function) TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWINT) | _BV(TWEA); ^ In file included from c:\users\dell\documents\arduinodata\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2\avr\include\avr\io.h:99:0, from C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:25: C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:357:16: error: 'TWEN' undeclared (first use in this function) TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWINT) | _BV(TWEA); ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:357:28: error: 'TWIE' undeclared (first use in this function) TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWINT) | _BV(TWEA); ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:357:40: error: 'TWINT' undeclared (first use in this function) TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWINT) | _BV(TWEA); ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:357:53: error: 'TWEA' undeclared (first use in this function) TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWINT) | _BV(TWEA); ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c: In function 'twi_stop': C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:372:3: error: 'TWCR' undeclared (first use in this function) TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTO); ^ In file included from c:\users\dell\documents\arduinodata\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2\avr\include\avr\io.h:99:0, from C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:25: C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:372:14: error: 'TWEN' undeclared (first use in this function) TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTO); ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:372:26: error: 'TWIE' undeclared (first use in this function) TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTO); ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:372:38: error: 'TWEA' undeclared (first use in this function) TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTO); ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:372:50: error: 'TWINT' undeclared (first use in this function) TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTO); ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:372:63: error: 'TWSTO' undeclared (first use in this function) TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT) | _BV(TWSTO); ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c: In function 'twi_releaseBus': C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:393:3: error: 'TWCR' undeclared (first use in this function) TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT); ^ In file included from c:\users\dell\documents\arduinodata\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2\avr\include\avr\io.h:99:0, from C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:25: C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:393:14: error: 'TWEN' undeclared (first use in this function) TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT); ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:393:26: error: 'TWIE' undeclared (first use in this function) TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT); ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:393:38: error: 'TWEA' undeclared (first use in this function) TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT); ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:393:50: error: 'TWINT' undeclared (first use in this function) TWCR = _BV(TWEN) | _BV(TWIE) | _BV(TWEA) | _BV(TWINT); ^ In file included from c:\users\dell\documents\arduinodata\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2\avr\include\compat\twi.h:36:0, from C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:27: C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c: In function 'TWI_vect': C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:401:10: error: 'TWSR' undeclared (first use in this function) switch(TW_STATUS){ ^ In file included from c:\users\dell\documents\arduinodata\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2\avr\include\avr\io.h:99:0, from C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:25: C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:401:10: error: 'TWS7' undeclared (first use in this function) switch(TW_STATUS){ ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:401:10: error: 'TWS6' undeclared (first use in this function) switch(TW_STATUS){ ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:401:10: error: 'TWS5' undeclared (first use in this function) switch(TW_STATUS){ ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:401:10: error: 'TWS4' undeclared (first use in this function) switch(TW_STATUS){ ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:401:10: error: 'TWS3' undeclared (first use in this function) switch(TW_STATUS){ ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:406:7: error: 'TWDR' undeclared (first use in this function) TWDR = twi_slarw; ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:426:4: error: 'TWCR' undeclared (first use in this function) TWCR = _BV(TWINT) | _BV(TWSTA)| _BV(TWEN) ; ^ In file included from c:\users\dell\documents\arduinodata\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2\avr\include\avr\io.h:99:0, from C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:25: C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:426:15: error: 'TWINT' undeclared (first use in this function) TWCR = _BV(TWINT) | _BV(TWSTA)| _BV(TWEN) ; ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:426:28: error: 'TWSTA' undeclared (first use in this function) TWCR = _BV(TWINT) | _BV(TWSTA)| _BV(TWEN) ; ^ C:\Users\Dell\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c:426:40: error: 'TWEN' undeclared (first use in this function) TWCR = _BV(TWINT) | _BV(TWSTA)| _BV(TWEN) ; ^ exit status 1 Error compiling for board ATtiny24/44/84. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.