Forum Rule: Always post complete source code & details to reproduce any issue!
-
Senior Member
-
This is amazing you also are not using the AVR port are you? Also are you using the arduino.h?
-
Senior Member
Didah does use Arduino.h, digitalRead(), analogWrite(), etc. Most of the AVR/Arduino stuff is collected in a single file and my code doesn't use interrupts (not directly anyway), so it would be easy to replace the AVR stuff, but why? Arduino has three parts: a library, a very simple template that replaces the classic C/C++ main(), and a light-weight IDE.
Paul's AVR/Arduino library is handy for this application. I don't see any advantage in trying to do better than his very expert code.
The Arduino (or Processing) setup() and loop() functions are harmless. Sure I could write my own main() but such a tiny bit of syntactic sugar really doesn't matter after you've written a few programs. And if it makes this code more inviting to a new programmer, that would be great.
A full-featured IDE would be nice, but I've used Emacs for so long I've got most of what I need there. When I needed to reorganize the code, I ran it through Doxygen to get call graphs. It's 5000 source lines. Not much code. Not hard to navigate or reorganize. Maybe at some point I'll install Eclipse. It's definitely nice when it works, but a pain to setup.
-
I just didnt see them is all I have no issues with anyone using the code Paul created I just thought I noticed something off (because I didnt see the relations to arduino.h)
I like what you have done! Keep up the great work :-)
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules