Comments: SIK Experiment Guide for Arduino - V3.3
Looking for answers to technical questions?
We welcome your comments and suggestions below. However, if you are looking for solutions to technical questions please see our Technical Assistance page.
If you've found an issue with this tutorial content, please send us your feedback!
-------------------- Tech Support Tips/Troubleshooting/Common Issues --------------------
GitHub Repo Compile Error
If you are using the example code from the GitHub repository for circuit 14 [ https://github.com/sparkfun/SIK-Guide-Code/blob/v33/SIK_circuit14_shiftRegister/SIK_circuit14_shiftRegister.ino#L90 ], there is a missing curly bracket
{
on line 90. Unfortunately, we are not able to correct the code since we released v4.0. We were unable to resolve the issue [ https://github.com/sparkfun/SIK-Guide-Code/issues/23 ]. This is a note for those are still using the example code.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.
Thanks