You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi i have some problems with the sketh for arduino mega 2560
The Library is added and still no luck of compiling the sketh
thats the log from IDE
In file included from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\io.h:99:0,
from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\pgmspace.h:90,
from C:\Users\WorkPC\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:28,
from C:\Users\WorkPC\AppData\Local\Temp\arduino-sketch-97DC7327E1C30D2D6F3AA606A26E2424\sketch\SmartBatteryHack.ino.cpp:1:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h: In function 'void i2c_wait_scl_high()':
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:250:35: error: 'SCL_PORT' was not declared in this scope
#define SCL_IN (_SFR_IO_ADDR(SCL_PORT) - 2)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:291:23: note: in expansion of macro 'SCL_IN'
: : [SCLIN] "I" (SCL_IN), [SCLPIN] "I" (SCL_PIN));
^~~~~~
In file included from C:\Users\WorkPC\Desktop\SmartBatteryHack-master\Arduino\SmartBatteryHack\SmartBatteryHack.ino:1:0:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:291:46: error: 'SCL_PIN' was not declared in this scope
: : [SCLIN] "I" (SCL_IN), [SCLPIN] "I" (SCL_PIN));
^~~~~~~
In file included from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\io.h:99:0,
from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\pgmspace.h:90,
from C:\Users\WorkPC\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:28,
from C:\Users\WorkPC\AppData\Local\Temp\arduino-sketch-97DC7327E1C30D2D6F3AA606A26E2424\sketch\SmartBatteryHack.ino.cpp:1:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h: In function 'bool i2c_init()':
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:246:39: error: 'SCL_PORT' was not declared in this scope
#define SCL_DDR (_SFR_IO_ADDR(SCL_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:398:23: note: in expansion of macro 'SCL_DDR'
[SCLDDR] "I" (SCL_DDR), [SCLPIN] "I" (SCL_PIN),
^~~~~~~
In file included from C:\Users\WorkPC\Desktop\SmartBatteryHack-master\Arduino\SmartBatteryHack\SmartBatteryHack.ino:1:0:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:398:47: error: 'SCL_PIN' was not declared in this scope
[SCLDDR] "I" (SCL_DDR), [SCLPIN] "I" (SCL_PIN),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:248:26: error: 'SFR_IO_ADDR' was not declared in this scope
#define SCL_OUT (SFR_IO_ADDR(SCL_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:399:44: note: in expansion of macro 'SCL_OUT'
[SCLIN] "I" (SCL_IN), [SCLOUT] "I" (SCL_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:248:26: note: suggested alternative: '_SFR_IO_ADDR'
#define SCL_OUT (SFR_IO_ADDR(SCL_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:399:44: note: in expansion of macro 'SCL_OUT'
[SCLIN] "I" (SCL_IN), [SCLOUT] "I" (SCL_OUT),
^~~~~~~
In file included from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\io.h:99:0,
from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\pgmspace.h:90,
from C:\Users\WorkPC\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:28,
from C:\Users\WorkPC\AppData\Local\Temp\arduino-sketch-97DC7327E1C30D2D6F3AA606A26E2424\sketch\SmartBatteryHack.ino.cpp:1:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:245:39: error: 'SDA_PORT' was not declared in this scope
#define SDA_DDR (_SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:400:23: note: in expansion of macro 'SDA_DDR'
[SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN),
^~~~~~~
In file included from C:\Users\WorkPC\Desktop\SmartBatteryHack-master\Arduino\SmartBatteryHack\SmartBatteryHack.ino:1:0:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:400:47: error: 'SDA_PIN' was not declared in this scope
[SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN),
^~~~~~~
In file included from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\io.h:99:0,
from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\pgmspace.h:90,
from C:\Users\WorkPC\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:28,
from C:\Users\WorkPC\AppData\Local\Temp\arduino-sketch-97DC7327E1C30D2D6F3AA606A26E2424\sketch\SmartBatteryHack.ino.cpp:1:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h: In function 'bool i2c_start(uint8_t)':
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:245:39: error: 'SDA_PORT' was not declared in this scope
#define SDA_DDR (_SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:470:25: note: in expansion of macro 'SDA_DDR'
: : [SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN),
^~~~~~~
In file included from C:\Users\WorkPC\Desktop\SmartBatteryHack-master\Arduino\SmartBatteryHack\SmartBatteryHack.ino:1:0:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:470:49: error: 'SDA_PIN' was not declared in this scope
: : [SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:247:26: error: 'SFR_IO_ADDR' was not declared in this scope
#define SDA_OUT (SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:471:22: note: in expansion of macro 'SDA_OUT'
[SDAOUT] "I" (SDA_OUT), [SCLOUT] "I" (SCL_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:247:26: note: suggested alternative: '_SFR_IO_ADDR'
#define SDA_OUT (SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:471:22: note: in expansion of macro 'SDA_OUT'
[SDAOUT] "I" (SDA_OUT), [SCLOUT] "I" (SCL_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:248:38: error: 'SCL_PORT' was not declared in this scope
#define SCL_OUT (SFR_IO_ADDR(SCL_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:471:46: note: in expansion of macro 'SCL_OUT'
[SDAOUT] "I" (SDA_OUT), [SCLOUT] "I" (SCL_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:472:43: error: 'SCL_PIN' was not declared in this scope
[SCLIN] "I" (SCL_IN),[SCLPIN] "I" (SCL_PIN));
^~~~~~~
In file included from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\io.h:99:0,
from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\pgmspace.h:90,
from C:\Users\WorkPC\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:28,
from C:\Users\WorkPC\AppData\Local\Temp\arduino-sketch-97DC7327E1C30D2D6F3AA606A26E2424\sketch\SmartBatteryHack.ino.cpp:1:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h: In function 'bool i2c_rep_start(uint8_t)':
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:246:39: error: 'SCL_PORT' was not declared in this scope
#define SCL_DDR (_SFR_IO_ADDR(SCL_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:535:25: note: in expansion of macro 'SCL_DDR'
: : [SCLDDR] "I" (SCL_DDR), [SCLPIN] "I" (SCL_PIN),
^~~~~~~
In file included from C:\Users\WorkPC\Desktop\SmartBatteryHack-master\Arduino\SmartBatteryHack\SmartBatteryHack.ino:1:0:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:535:49: error: 'SCL_PIN' was not declared in this scope
: : [SCLDDR] "I" (SCL_DDR), [SCLPIN] "I" (SCL_PIN),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:248:26: error: 'SFR_IO_ADDR' was not declared in this scope
#define SCL_OUT (SFR_IO_ADDR(SCL_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:536:44: note: in expansion of macro 'SCL_OUT'
[SCLIN] "I" (SCL_IN), [SCLOUT] "I" (SCL_OUT), [SDAOUT] "I" (SDA_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:248:26: note: suggested alternative: '_SFR_IO_ADDR'
#define SCL_OUT (SFR_IO_ADDR(SCL_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:536:44: note: in expansion of macro 'SCL_OUT'
[SCLIN] "I" (SCL_IN), [SCLOUT] "I" (SCL_OUT), [SDAOUT] "I" (SDA_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:247:38: error: 'SDA_PORT' was not declared in this scope
#define SDA_OUT (SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:536:68: note: in expansion of macro 'SDA_OUT'
[SCLIN] "I" (SCL_IN), [SCLOUT] "I" (SCL_OUT), [SDAOUT] "I" (SDA_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:537:47: error: 'SDA_PIN' was not declared in this scope
[SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN));
^~~~~~~
In file included from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\io.h:99:0,
from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\pgmspace.h:90,
from C:\Users\WorkPC\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:28,
from C:\Users\WorkPC\AppData\Local\Temp\arduino-sketch-97DC7327E1C30D2D6F3AA606A26E2424\sketch\SmartBatteryHack.ino.cpp:1:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h: In function 'bool i2c_start_wait(uint8_t)':
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:245:39: error: 'SDA_PORT' was not declared in this scope
#define SDA_DDR (_SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:651:24: note: in expansion of macro 'SDA_DDR'
: : [SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN), [SDAOUT] "I" (SDA_OUT),
^~~~~~~
In file included from C:\Users\WorkPC\Desktop\SmartBatteryHack-master\Arduino\SmartBatteryHack\SmartBatteryHack.ino:1:0:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:651:48: error: 'SDA_PIN' was not declared in this scope
: : [SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN), [SDAOUT] "I" (SDA_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:247:26: error: 'SFR_IO_ADDR' was not declared in this scope
#define SDA_OUT (SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:651:72: note: in expansion of macro 'SDA_OUT'
: : [SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN), [SDAOUT] "I" (SDA_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:247:26: note: suggested alternative: '_SFR_IO_ADDR'
#define SDA_OUT (SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:651:72: note: in expansion of macro 'SDA_OUT'
: : [SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN), [SDAOUT] "I" (SDA_OUT),
^~~~~~~
In file included from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\io.h:99:0,
from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\pgmspace.h:90,
from C:\Users\WorkPC\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:28,
from C:\Users\WorkPC\AppData\Local\Temp\arduino-sketch-97DC7327E1C30D2D6F3AA606A26E2424\sketch\SmartBatteryHack.ino.cpp:1:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:250:35: error: 'SCL_PORT' was not declared in this scope
#define SCL_IN (_SFR_IO_ADDR(SCL_PORT) - 2)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:652:20: note: in expansion of macro 'SCL_IN'
[SCLIN] "I" (SCL_IN), [SCLPIN] "I" (SCL_PIN),
^~~~~~
In file included from C:\Users\WorkPC\Desktop\SmartBatteryHack-master\Arduino\SmartBatteryHack\SmartBatteryHack.ino:1:0:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:652:43: error: 'SCL_PIN' was not declared in this scope
[SCLIN] "I" (SCL_IN), [SCLPIN] "I" (SCL_PIN),
^~~~~~~
In file included from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\io.h:99:0,
from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\pgmspace.h:90,
from C:\Users\WorkPC\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:28,
from C:\Users\WorkPC\AppData\Local\Temp\arduino-sketch-97DC7327E1C30D2D6F3AA606A26E2424\sketch\SmartBatteryHack.ino.cpp:1:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h: In function 'void i2c_stop()':
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:246:39: error: 'SCL_PORT' was not declared in this scope
#define SCL_DDR (_SFR_IO_ADDR(SCL_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:720:25: note: in expansion of macro 'SCL_DDR'
: : [SCLDDR] "I" (SCL_DDR), [SCLPIN] "I" (SCL_PIN), [SCLIN] "I" (SCL_IN),
^~~~~~~
In file included from C:\Users\WorkPC\Desktop\SmartBatteryHack-master\Arduino\SmartBatteryHack\SmartBatteryHack.ino:1:0:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:720:49: error: 'SCL_PIN' was not declared in this scope
: : [SCLDDR] "I" (SCL_DDR), [SCLPIN] "I" (SCL_PIN), [SCLIN] "I" (SCL_IN),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:247:38: error: 'SDA_PORT' was not declared in this scope
#define SDA_OUT (SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:721:22: note: in expansion of macro 'SDA_OUT'
[SDAOUT] "I" (SDA_OUT), [SCLOUT] "I" (SCL_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:247:26: error: 'SFR_IO_ADDR' was not declared in this scope
#define SDA_OUT (SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:721:22: note: in expansion of macro 'SDA_OUT'
[SDAOUT] "I" (SDA_OUT), [SCLOUT] "I" (SCL_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:247:26: note: suggested alternative: '_SFR_IO_ADDR'
#define SDA_OUT (SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:721:22: note: in expansion of macro 'SDA_OUT'
[SDAOUT] "I" (SDA_OUT), [SCLOUT] "I" (SCL_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:722:47: error: 'SDA_PIN' was not declared in this scope
[SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN));
^~~~~~~
In file included from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\io.h:99:0,
from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\pgmspace.h:90,
from C:\Users\WorkPC\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:28,
from C:\Users\WorkPC\AppData\Local\Temp\arduino-sketch-97DC7327E1C30D2D6F3AA606A26E2424\sketch\SmartBatteryHack.ino.cpp:1:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h: In function 'bool i2c_write(uint8_t)':
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:246:39: error: 'SCL_PORT' was not declared in this scope
#define SCL_DDR (_SFR_IO_ADDR(SCL_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:892:22: note: in expansion of macro 'SCL_DDR'
[SCLDDR] "I" (SCL_DDR), [SCLPIN] "I" (SCL_PIN), [SCLIN] "I" (SCL_IN),
^~~~~~~
In file included from C:\Users\WorkPC\Desktop\SmartBatteryHack-master\Arduino\SmartBatteryHack\SmartBatteryHack.ino:1:0:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:892:46: error: 'SCL_PIN' was not declared in this scope
[SCLDDR] "I" (SCL_DDR), [SCLPIN] "I" (SCL_PIN), [SCLIN] "I" (SCL_IN),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:247:38: error: 'SDA_PORT' was not declared in this scope
#define SDA_OUT (SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:893:21: note: in expansion of macro 'SDA_OUT'
[SDAOUT] "I" (SDA_OUT), [SCLOUT] "I" (SCL_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:247:26: error: 'SFR_IO_ADDR' was not declared in this scope
#define SDA_OUT (SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:893:21: note: in expansion of macro 'SDA_OUT'
[SDAOUT] "I" (SDA_OUT), [SCLOUT] "I" (SCL_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:247:26: note: suggested alternative: '_SFR_IO_ADDR'
#define SDA_OUT (SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:893:21: note: in expansion of macro 'SDA_OUT'
[SDAOUT] "I" (SDA_OUT), [SCLOUT] "I" (SCL_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:894:46: error: 'SDA_PIN' was not declared in this scope
[SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN), [SDAIN] "I" (SDA_IN));
^~~~~~~
In file included from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\io.h:99:0,
from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\pgmspace.h:90,
from C:\Users\WorkPC\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:28,
from C:\Users\WorkPC\AppData\Local\Temp\arduino-sketch-97DC7327E1C30D2D6F3AA606A26E2424\sketch\SmartBatteryHack.ino.cpp:1:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h: In function 'uint8_t i2c_read(bool)':
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:246:39: error: 'SCL_PORT' was not declared in this scope
#define SCL_DDR (_SFR_IO_ADDR(SCL_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:1030:22: note: in expansion of macro 'SCL_DDR'
[SCLDDR] "I" (SCL_DDR), [SCLPIN] "I" (SCL_PIN), [SCLIN] "I" (SCL_IN),
^~~~~~~
In file included from C:\Users\WorkPC\Desktop\SmartBatteryHack-master\Arduino\SmartBatteryHack\SmartBatteryHack.ino:1:0:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:1030:46: error: 'SCL_PIN' was not declared in this scope
[SCLDDR] "I" (SCL_DDR), [SCLPIN] "I" (SCL_PIN), [SCLIN] "I" (SCL_IN),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:247:38: error: 'SDA_PORT' was not declared in this scope
#define SDA_OUT (SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:1031:21: note: in expansion of macro 'SDA_OUT'
[SDAOUT] "I" (SDA_OUT), [SCLOUT] "I" (SCL_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:247:26: error: 'SFR_IO_ADDR' was not declared in this scope
#define SDA_OUT (SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:1031:21: note: in expansion of macro 'SDA_OUT'
[SDAOUT] "I" (SDA_OUT), [SCLOUT] "I" (SCL_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:247:26: note: suggested alternative: '_SFR_IO_ADDR'
#define SDA_OUT (SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:1031:21: note: in expansion of macro 'SDA_OUT'
[SDAOUT] "I" (SDA_OUT), [SCLOUT] "I" (SCL_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:1032:46: error: 'SDA_PIN' was not declared in this scope
[SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN), [SDAIN] "I" (SDA_IN)
^~~~~~~
exit status 1
Compilation error: exit status 1
The text was updated successfully, but these errors were encountered:
Hi i have some problems with the sketh for arduino mega 2560
The Library is added and still no luck of compiling the sketh
thats the log from IDE
In file included from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\io.h:99:0,
from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\pgmspace.h:90,
from C:\Users\WorkPC\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:28,
from C:\Users\WorkPC\AppData\Local\Temp\arduino-sketch-97DC7327E1C30D2D6F3AA606A26E2424\sketch\SmartBatteryHack.ino.cpp:1:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h: In function 'void i2c_wait_scl_high()':
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:250:35: error: 'SCL_PORT' was not declared in this scope
#define SCL_IN (_SFR_IO_ADDR(SCL_PORT) - 2)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:291:23: note: in expansion of macro 'SCL_IN'
: : [SCLIN] "I" (SCL_IN), [SCLPIN] "I" (SCL_PIN));
^~~~~~
In file included from C:\Users\WorkPC\Desktop\SmartBatteryHack-master\Arduino\SmartBatteryHack\SmartBatteryHack.ino:1:0:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:291:46: error: 'SCL_PIN' was not declared in this scope
: : [SCLIN] "I" (SCL_IN), [SCLPIN] "I" (SCL_PIN));
^~~~~~~
In file included from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\io.h:99:0,
from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\pgmspace.h:90,
from C:\Users\WorkPC\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:28,
from C:\Users\WorkPC\AppData\Local\Temp\arduino-sketch-97DC7327E1C30D2D6F3AA606A26E2424\sketch\SmartBatteryHack.ino.cpp:1:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h: In function 'bool i2c_init()':
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:246:39: error: 'SCL_PORT' was not declared in this scope
#define SCL_DDR (_SFR_IO_ADDR(SCL_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:398:23: note: in expansion of macro 'SCL_DDR'
[SCLDDR] "I" (SCL_DDR), [SCLPIN] "I" (SCL_PIN),
^~~~~~~
In file included from C:\Users\WorkPC\Desktop\SmartBatteryHack-master\Arduino\SmartBatteryHack\SmartBatteryHack.ino:1:0:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:398:47: error: 'SCL_PIN' was not declared in this scope
[SCLDDR] "I" (SCL_DDR), [SCLPIN] "I" (SCL_PIN),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:248:26: error: 'SFR_IO_ADDR' was not declared in this scope
#define SCL_OUT (SFR_IO_ADDR(SCL_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:399:44: note: in expansion of macro 'SCL_OUT'
[SCLIN] "I" (SCL_IN), [SCLOUT] "I" (SCL_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:248:26: note: suggested alternative: '_SFR_IO_ADDR'
#define SCL_OUT (SFR_IO_ADDR(SCL_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:399:44: note: in expansion of macro 'SCL_OUT'
[SCLIN] "I" (SCL_IN), [SCLOUT] "I" (SCL_OUT),
^~~~~~~
In file included from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\io.h:99:0,
from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\pgmspace.h:90,
from C:\Users\WorkPC\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:28,
from C:\Users\WorkPC\AppData\Local\Temp\arduino-sketch-97DC7327E1C30D2D6F3AA606A26E2424\sketch\SmartBatteryHack.ino.cpp:1:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:245:39: error: 'SDA_PORT' was not declared in this scope
#define SDA_DDR (_SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:400:23: note: in expansion of macro 'SDA_DDR'
[SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN),
^~~~~~~
In file included from C:\Users\WorkPC\Desktop\SmartBatteryHack-master\Arduino\SmartBatteryHack\SmartBatteryHack.ino:1:0:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:400:47: error: 'SDA_PIN' was not declared in this scope
[SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN),
^~~~~~~
In file included from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\io.h:99:0,
from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\pgmspace.h:90,
from C:\Users\WorkPC\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:28,
from C:\Users\WorkPC\AppData\Local\Temp\arduino-sketch-97DC7327E1C30D2D6F3AA606A26E2424\sketch\SmartBatteryHack.ino.cpp:1:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h: In function 'bool i2c_start(uint8_t)':
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:245:39: error: 'SDA_PORT' was not declared in this scope
#define SDA_DDR (_SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:470:25: note: in expansion of macro 'SDA_DDR'
: : [SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN),
^~~~~~~
In file included from C:\Users\WorkPC\Desktop\SmartBatteryHack-master\Arduino\SmartBatteryHack\SmartBatteryHack.ino:1:0:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:470:49: error: 'SDA_PIN' was not declared in this scope
: : [SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:247:26: error: 'SFR_IO_ADDR' was not declared in this scope
#define SDA_OUT (SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:471:22: note: in expansion of macro 'SDA_OUT'
[SDAOUT] "I" (SDA_OUT), [SCLOUT] "I" (SCL_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:247:26: note: suggested alternative: '_SFR_IO_ADDR'
#define SDA_OUT (SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:471:22: note: in expansion of macro 'SDA_OUT'
[SDAOUT] "I" (SDA_OUT), [SCLOUT] "I" (SCL_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:248:38: error: 'SCL_PORT' was not declared in this scope
#define SCL_OUT (SFR_IO_ADDR(SCL_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:471:46: note: in expansion of macro 'SCL_OUT'
[SDAOUT] "I" (SDA_OUT), [SCLOUT] "I" (SCL_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:472:43: error: 'SCL_PIN' was not declared in this scope
[SCLIN] "I" (SCL_IN),[SCLPIN] "I" (SCL_PIN));
^~~~~~~
In file included from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\io.h:99:0,
from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\pgmspace.h:90,
from C:\Users\WorkPC\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:28,
from C:\Users\WorkPC\AppData\Local\Temp\arduino-sketch-97DC7327E1C30D2D6F3AA606A26E2424\sketch\SmartBatteryHack.ino.cpp:1:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h: In function 'bool i2c_rep_start(uint8_t)':
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:246:39: error: 'SCL_PORT' was not declared in this scope
#define SCL_DDR (_SFR_IO_ADDR(SCL_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:535:25: note: in expansion of macro 'SCL_DDR'
: : [SCLDDR] "I" (SCL_DDR), [SCLPIN] "I" (SCL_PIN),
^~~~~~~
In file included from C:\Users\WorkPC\Desktop\SmartBatteryHack-master\Arduino\SmartBatteryHack\SmartBatteryHack.ino:1:0:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:535:49: error: 'SCL_PIN' was not declared in this scope
: : [SCLDDR] "I" (SCL_DDR), [SCLPIN] "I" (SCL_PIN),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:248:26: error: 'SFR_IO_ADDR' was not declared in this scope
#define SCL_OUT (SFR_IO_ADDR(SCL_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:536:44: note: in expansion of macro 'SCL_OUT'
[SCLIN] "I" (SCL_IN), [SCLOUT] "I" (SCL_OUT), [SDAOUT] "I" (SDA_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:248:26: note: suggested alternative: '_SFR_IO_ADDR'
#define SCL_OUT (SFR_IO_ADDR(SCL_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:536:44: note: in expansion of macro 'SCL_OUT'
[SCLIN] "I" (SCL_IN), [SCLOUT] "I" (SCL_OUT), [SDAOUT] "I" (SDA_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:247:38: error: 'SDA_PORT' was not declared in this scope
#define SDA_OUT (SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:536:68: note: in expansion of macro 'SDA_OUT'
[SCLIN] "I" (SCL_IN), [SCLOUT] "I" (SCL_OUT), [SDAOUT] "I" (SDA_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:537:47: error: 'SDA_PIN' was not declared in this scope
[SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN));
^~~~~~~
In file included from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\io.h:99:0,
from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\pgmspace.h:90,
from C:\Users\WorkPC\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:28,
from C:\Users\WorkPC\AppData\Local\Temp\arduino-sketch-97DC7327E1C30D2D6F3AA606A26E2424\sketch\SmartBatteryHack.ino.cpp:1:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h: In function 'bool i2c_start_wait(uint8_t)':
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:245:39: error: 'SDA_PORT' was not declared in this scope
#define SDA_DDR (_SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:651:24: note: in expansion of macro 'SDA_DDR'
: : [SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN), [SDAOUT] "I" (SDA_OUT),
^~~~~~~
In file included from C:\Users\WorkPC\Desktop\SmartBatteryHack-master\Arduino\SmartBatteryHack\SmartBatteryHack.ino:1:0:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:651:48: error: 'SDA_PIN' was not declared in this scope
: : [SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN), [SDAOUT] "I" (SDA_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:247:26: error: 'SFR_IO_ADDR' was not declared in this scope
#define SDA_OUT (SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:651:72: note: in expansion of macro 'SDA_OUT'
: : [SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN), [SDAOUT] "I" (SDA_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:247:26: note: suggested alternative: '_SFR_IO_ADDR'
#define SDA_OUT (SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:651:72: note: in expansion of macro 'SDA_OUT'
: : [SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN), [SDAOUT] "I" (SDA_OUT),
^~~~~~~
In file included from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\io.h:99:0,
from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\pgmspace.h:90,
from C:\Users\WorkPC\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:28,
from C:\Users\WorkPC\AppData\Local\Temp\arduino-sketch-97DC7327E1C30D2D6F3AA606A26E2424\sketch\SmartBatteryHack.ino.cpp:1:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:250:35: error: 'SCL_PORT' was not declared in this scope
#define SCL_IN (_SFR_IO_ADDR(SCL_PORT) - 2)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:652:20: note: in expansion of macro 'SCL_IN'
[SCLIN] "I" (SCL_IN), [SCLPIN] "I" (SCL_PIN),
^~~~~~
In file included from C:\Users\WorkPC\Desktop\SmartBatteryHack-master\Arduino\SmartBatteryHack\SmartBatteryHack.ino:1:0:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:652:43: error: 'SCL_PIN' was not declared in this scope
[SCLIN] "I" (SCL_IN), [SCLPIN] "I" (SCL_PIN),
^~~~~~~
In file included from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\io.h:99:0,
from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\pgmspace.h:90,
from C:\Users\WorkPC\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:28,
from C:\Users\WorkPC\AppData\Local\Temp\arduino-sketch-97DC7327E1C30D2D6F3AA606A26E2424\sketch\SmartBatteryHack.ino.cpp:1:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h: In function 'void i2c_stop()':
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:246:39: error: 'SCL_PORT' was not declared in this scope
#define SCL_DDR (_SFR_IO_ADDR(SCL_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:720:25: note: in expansion of macro 'SCL_DDR'
: : [SCLDDR] "I" (SCL_DDR), [SCLPIN] "I" (SCL_PIN), [SCLIN] "I" (SCL_IN),
^~~~~~~
In file included from C:\Users\WorkPC\Desktop\SmartBatteryHack-master\Arduino\SmartBatteryHack\SmartBatteryHack.ino:1:0:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:720:49: error: 'SCL_PIN' was not declared in this scope
: : [SCLDDR] "I" (SCL_DDR), [SCLPIN] "I" (SCL_PIN), [SCLIN] "I" (SCL_IN),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:247:38: error: 'SDA_PORT' was not declared in this scope
#define SDA_OUT (SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:721:22: note: in expansion of macro 'SDA_OUT'
[SDAOUT] "I" (SDA_OUT), [SCLOUT] "I" (SCL_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:247:26: error: 'SFR_IO_ADDR' was not declared in this scope
#define SDA_OUT (SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:721:22: note: in expansion of macro 'SDA_OUT'
[SDAOUT] "I" (SDA_OUT), [SCLOUT] "I" (SCL_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:247:26: note: suggested alternative: '_SFR_IO_ADDR'
#define SDA_OUT (SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:721:22: note: in expansion of macro 'SDA_OUT'
[SDAOUT] "I" (SDA_OUT), [SCLOUT] "I" (SCL_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:722:47: error: 'SDA_PIN' was not declared in this scope
[SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN));
^~~~~~~
In file included from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\io.h:99:0,
from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\pgmspace.h:90,
from C:\Users\WorkPC\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:28,
from C:\Users\WorkPC\AppData\Local\Temp\arduino-sketch-97DC7327E1C30D2D6F3AA606A26E2424\sketch\SmartBatteryHack.ino.cpp:1:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h: In function 'bool i2c_write(uint8_t)':
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:246:39: error: 'SCL_PORT' was not declared in this scope
#define SCL_DDR (_SFR_IO_ADDR(SCL_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:892:22: note: in expansion of macro 'SCL_DDR'
[SCLDDR] "I" (SCL_DDR), [SCLPIN] "I" (SCL_PIN), [SCLIN] "I" (SCL_IN),
^~~~~~~
In file included from C:\Users\WorkPC\Desktop\SmartBatteryHack-master\Arduino\SmartBatteryHack\SmartBatteryHack.ino:1:0:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:892:46: error: 'SCL_PIN' was not declared in this scope
[SCLDDR] "I" (SCL_DDR), [SCLPIN] "I" (SCL_PIN), [SCLIN] "I" (SCL_IN),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:247:38: error: 'SDA_PORT' was not declared in this scope
#define SDA_OUT (SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:893:21: note: in expansion of macro 'SDA_OUT'
[SDAOUT] "I" (SDA_OUT), [SCLOUT] "I" (SCL_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:247:26: error: 'SFR_IO_ADDR' was not declared in this scope
#define SDA_OUT (SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:893:21: note: in expansion of macro 'SDA_OUT'
[SDAOUT] "I" (SDA_OUT), [SCLOUT] "I" (SCL_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:247:26: note: suggested alternative: '_SFR_IO_ADDR'
#define SDA_OUT (SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:893:21: note: in expansion of macro 'SDA_OUT'
[SDAOUT] "I" (SDA_OUT), [SCLOUT] "I" (SCL_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:894:46: error: 'SDA_PIN' was not declared in this scope
[SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN), [SDAIN] "I" (SDA_IN));
^~~~~~~
In file included from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\io.h:99:0,
from c:\users\workpc\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\pgmspace.h:90,
from C:\Users\WorkPC\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:28,
from C:\Users\WorkPC\AppData\Local\Temp\arduino-sketch-97DC7327E1C30D2D6F3AA606A26E2424\sketch\SmartBatteryHack.ino.cpp:1:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h: In function 'uint8_t i2c_read(bool)':
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:246:39: error: 'SCL_PORT' was not declared in this scope
#define SCL_DDR (_SFR_IO_ADDR(SCL_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:1030:22: note: in expansion of macro 'SCL_DDR'
[SCLDDR] "I" (SCL_DDR), [SCLPIN] "I" (SCL_PIN), [SCLIN] "I" (SCL_IN),
^~~~~~~
In file included from C:\Users\WorkPC\Desktop\SmartBatteryHack-master\Arduino\SmartBatteryHack\SmartBatteryHack.ino:1:0:
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:1030:46: error: 'SCL_PIN' was not declared in this scope
[SCLDDR] "I" (SCL_DDR), [SCLPIN] "I" (SCL_PIN), [SCLIN] "I" (SCL_IN),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:247:38: error: 'SDA_PORT' was not declared in this scope
#define SDA_OUT (SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:1031:21: note: in expansion of macro 'SDA_OUT'
[SDAOUT] "I" (SDA_OUT), [SCLOUT] "I" (SCL_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:247:26: error: 'SFR_IO_ADDR' was not declared in this scope
#define SDA_OUT (SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:1031:21: note: in expansion of macro 'SDA_OUT'
[SDAOUT] "I" (SDA_OUT), [SCLOUT] "I" (SCL_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:247:26: note: suggested alternative: '_SFR_IO_ADDR'
#define SDA_OUT (SFR_IO_ADDR(SDA_PORT) - 1)
^
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:1031:21: note: in expansion of macro 'SDA_OUT'
[SDAOUT] "I" (SDA_OUT), [SCLOUT] "I" (SCL_OUT),
^~~~~~~
C:\Users\WorkPC\Documents\Arduino\libraries\SoftI2CMaster-master\src/SoftI2CMaster.h:1032:46: error: 'SDA_PIN' was not declared in this scope
[SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN), [SDAIN] "I" (SDA_IN)
^~~~~~~
exit status 1
Compilation error: exit status 1
The text was updated successfully, but these errors were encountered: