Skip to content

I2C example does not compile #350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jerabaul29 opened this issue Feb 12, 2021 · 2 comments
Closed

I2C example does not compile #350

jerabaul29 opened this issue Feb 12, 2021 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@jerabaul29
Copy link

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

@mjaffee1997
Copy link

Try SDA on pin 14 and SCL on pin 15 (looking at the schematic). In any case, I haven't had any luck using the I2C pins on-board. Breaking out the QWIIC SDA and SCL pins works ok. These are configured differently in the core so one might be working while the other is not?

@ghost ghost assigned Wenn0101 Feb 26, 2021
@ghost ghost added the bug Something isn't working label Feb 26, 2021
@ghost ghost added this to the v2.1.0 milestone Mar 2, 2021
@Wenn0101 Wenn0101 modified the milestones: v2.1.0, v2.0.6 Mar 16, 2021
@Wenn0101
Copy link
Contributor

Scheduled for v2.0.6, see #368 to preview release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants