Track My Order
Frequently Asked Questions
International Shipping Info
Mon-Fri, 9am to 12pm and
1pm to 5pm U.S. Mountain Time:
Chat With Us
Ok, so the “Marquee” code doesn’t run, LEDs 0 & 4 light up, and that’s it. The “PingPong” code is exactly the same as “OneAtATime” code. I sort of see what you wanted there, but I’m not sure how to go about it. I guess, that’s what these kits are about. At least I got the first and second options to run.
Well, I solved my problem. The code string “for(index = 7; index >= 0; index = index –)” or “for(index = 7; index >= 0; index = index ++)” does not work. For the code to run the program properly the line MUST read “for(index = 7; index >= 0; index = index -1)” or “for(index = 7; index >= 0; index = index +1)”
I changed it and it runs fine. I’m not sure why it doesn’t like ++ (–) rather than +1 (-1).
I’m sorry but tech support does not usually monitor the comments. I’m glad to hear that you were able to get it working. It’s possible that there is something with the way the code compiles for the Arduino IDE version or there is a syntax error with for “index++” or “index–” [ https://www.arduino.cc/en/reference/increment ]. The way the code is written seems to increment or decrement index correctly. However, the old value is returned and saved for index .
We fixed the code => [ https://github.com/sparkfun/SIK-Guide-Code/pull/18#issue-218573532 ]! =)
I am working through the SIK experiments and have come across a problem in #4: Driving Multiple LEDs. I have the wiring correct, checked it 4 times, ran the code on both a RedBoard and an Arduino UNO and I get the same result. The LED on pin #2 lights up, but nothing else happens. I checked to see if each LED was wire properly, no shorts, etc, and all was OK. I am a code Newbie, but since my wiring is OK, it’s got to be the code, right? For some reason, it never gets past Pin 2 High (LED 0). I used the code from the SIK_Guide_Code_V3.3 and I also cut and paste it from this site.
If you've found a bug or have other constructive feedback for our tutorial authors, please send us your feedback!
Forgot your password?
No account? Register one!