-
Notifications
You must be signed in to change notification settings - Fork 37
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
Troubles in teensy3 code #1
Comments
Hello @konan23 , INTERNAL and IRQ_PORTA are part of the PJRC Teensy addition to the Arduino environment. Have you included support for the Teensy in your Arduino application? And have you selected "Teensy 3.2/3.1" as your board type? |
Thanks for your reply and after trying to fix something, I still have error about multiple definition. I searched that error come from the overlap between 2 library i2c_t3 and Wire. I tried to deactivate Wire library in source code and header file but it doesn't work. Here is my error message
Could you give me some advice to fix them. Thank you so much! |
I'm sorry, I'm not sure I have much to offer you. My LeptonSDKEmb32OEM.cpp file includes i2c_t3. Maybe something else is including either i2c_t3 or wire and there is a collision. All I can suggest is to look at every file and see if you can find a way multiple files are being included. |
Thank you for your help. I will try some cases and hope that it will work. I will give you feedback when I completed it. |
Finally, I debugged it successfully. The new version of Adafruit_GFX_Library contains Adafruit_GrayOLED file and it uses Wire.h to communication so when I compile the code, the program will call it too. Just delete the header and source files of Adafruit_GrayOLED, the program will run. @danjulio you can close this issue :))) |
Glad to hear you fixed it! |
Hi @danjulio ,
I have some troubles in your teensy3 code. I tried to verify lep_test5 and had errors
lep_test5:265: error: 'IRQ_PORTA' was not declared in this scope SPI.notUsingInterrupt(IRQ_PORTA);
controls:85: error: 'INTERNAL' was not declared in this scope analogReference(INTERNAL);
I couldn't find IRQ_PORTA and INTERNAL variables was declared or have instruction about them. Could you solve it pls. Thank you!
The text was updated successfully, but these errors were encountered: