-
Notifications
You must be signed in to change notification settings - Fork 161
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
Arduino DUE ARM Platform #13
Comments
You could try simply removing the AVR includes. This is what I did for the ESP8266 and it works. You can get my fork to see the #IF to remove the includes for the ESP. If you get a new #IF worked out that works for DUE as well, you can submit a pull request to my fork - this original fork isn't being maintained. I also recommend to switch to my fork as I have fixed a number of bugs. |
I fixed the conditional in the soligen2010 fork for the AVR includes but it it failed with other errors (sei() and cli() not defined) so there are obviously other issues. I have never used a Due, so I cant really do any more. If you get it figured out, please submit pull requests to the soligen2010 fork. |
The soligen2010 fork now compiles on the Due. I don't have a Due so I cant test it, but I think it will work. |
Hello, I have tried it. But unfortunatelly, i get an Compile Error! After installing the "TimerDue" libary from here: https://github.com/ivanseidel/DueTimer
it compiles without any errors! I uploaded the code to the Due. Maybe this should be written in the example sketch or included with #ifndef automaticly? Thank you for your support! |
I would be happy to accept a pull request for an update to the example. Also as a note, the ESP8266 example compiles for the Due - it works without a timer and works fine as long as the loop() function is not too slow. |
I also tried to work with ClickEncoder on the DUE. It worked perfect on the Mega.
I found this in the ClickEncoder.h:
It seems, that the WiringPinMode is somhow missing? What can I do? edit: |
What I think is happening is that the STM23duino and Due are both arm chips, but need different typedefs. This line was added to support STM32duino, but must have broke the Due becasue it needs the second typedef. What we need is another conditional compile #if specifically for the Due. If you can find out what the pre-compiler variable is for the Due, should be easy to change the #if. |
After a Little Research I found: For all Arduino Due compatible boards: (found in file sam3.h. More info there.) If you just want to define Due (by leaving out compatible boards):
(It's defined in variant.h file of Arduino Due) I hope, this is what you wanted. |
just uploaded a fix. Please try it out |
Sorry for that stupid question: I can't find a new/updated file. Where is it? |
Its the soligen2010 fork. I was assuming that is what you are using. As 0xpit doesn't pay much attention to this library, there is no way to update the original |
Now it's clear.... It works! Your trick did the job. Thank you! |
Hello, I'm also getting: 'class TimerOne' has no member named 'initialize' Please help. Thank you |
Hello,
i tried to compile the clickEncoder Lib for Arduino DUE Arm Board.
Unfortunatelly, i get some compile errors.
This is the log:
`C:\Users\Daniel\Documents\Arduino\libraries\encoder-master/ClickEncoder.h:18:20: fatal error: avr/io.h: No such file or directory
#include <avr/io.h> `
Is there any sollution for this? I think avr.io is the wrong define for the registers of the DUE?
Thank you!
Regards Danie
The text was updated successfully, but these errors were encountered: