arduino / arduino-examples

Arduino IDE bundled examples
Creative Commons Zero v1.0 Universal
90 stars 41 forks source link

the content of the example file ReadASCIIString.ino feels odd to me. #35

Open mj2068 opened 3 years ago

mj2068 commented 3 years ago

file: examples/04.Communication/ReadASCIIString/ReadASCIIString.ino ` /* ... It parses them into ints, and uses those to fade an RGB LED. Circuit: Common-Cathode RGB LED wired like so:

the implementation of this example file feels odd to me. i mean the circuit wiring instruction part in the starting comment describes using a Common-Cathode RGB LED, i think people would assume the actual code implementation will be using a Common-Cathode RGB LED as well, but no, the code is actually for a Common-Anode RGB LED, plus the prior comment line confirms the starting comment. don't you feel odd about this? i think we should be consistent comments and code. (at least for me, this took some time to fully figure out the logic of the flow and understand what was going on... idk, maybe it's just me being dumb... :p )