Comments: SIK Experiment Guide for Arduino - V3.3

Pages

Comments 4 comments

  • UD_Dave / last year / 1

    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.

  • UD_Dave / last year / 1

    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).

  • UD_Dave / last year / 1

    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


If you've found a bug or have other constructive feedback for our tutorial authors, please send us your feedback!