Skip to content

I2C example does not compile #350

Closed
Closed
@jerabaul29

Description

@jerabaul29

The I2C example (in Arduino IDE, File > Example > Apollo3 > I2C) does not compile for me using the RedBoard Artemis board:

I2C:65:15: error: 'D25' was not declared in this scope
 #define mySDA D25
               ^~~
/home/jrlab/.arduino15/packages/SparkFun/hardware/apollo3/2.0.5/libraries/Apollo3/examples/I2C/I2C.ino:67:16: note: in expansion of macro 'mySDA'
 MbedI2C myWire(mySDA, mySCL);
                ^~~~~
/home/jrlab/.arduino15/packages/SparkFun/hardware/apollo3/2.0.5/libraries/Apollo3/examples/I2C/I2C.ino:65:15: note: suggested alternative: 'D21'
 #define mySDA D25
               ^~~
/home/jrlab/.arduino15/packages/SparkFun/hardware/apollo3/2.0.5/libraries/Apollo3/examples/I2C/I2C.ino:67:16: note: in expansion of macro 'mySDA'
 MbedI2C myWire(mySDA, mySCL);
                ^~~~~
I2C:66:15: error: 'D27' was not declared in this scope
 #define mySCL D27
               ^~~
/home/jrlab/.arduino15/packages/SparkFun/hardware/apollo3/2.0.5/libraries/Apollo3/examples/I2C/I2C.ino:67:23: note: in expansion of macro 'mySCL'
 MbedI2C myWire(mySDA, mySCL);
                       ^~~~~
/home/jrlab/.arduino15/packages/SparkFun/hardware/apollo3/2.0.5/libraries/Apollo3/examples/I2C/I2C.ino:66:15: note: suggested alternative: 'D21'
 #define mySCL D27
               ^~~
/home/jrlab/.arduino15/packages/SparkFun/hardware/apollo3/2.0.5/libraries/Apollo3/examples/I2C/I2C.ino:67:23: note: in expansion of macro 'mySCL'
 MbedI2C myWire(mySDA, mySCL);
                       ^~~~~
Using library Wire at version 2.0.0 in folder: /home/jrlab/.arduino15/packages/SparkFun/hardware/apollo3/2.0.5/libraries/Wire 
exit status 1
'D25' was not declared in this scope

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions