Skip to content

Update and Fix SIK_circuit04_multipleLEDs.ino #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 31, 2017

Conversation

bboyho
Copy link
Contributor

@bboyho bboyho commented Mar 31, 2017

-Change description of PingPong() on line 47 to make it more clear what the function is doing.
-Removed code between lines 105-110 oneOnAtATime() since it was exactly the same as the PingPong(). The way the function written did not seem work as intended.
-Change description on line 49 and 145 for marquee().
-Changed syntax for incrementing and decrementing [ https://www.arduino.cc/en/reference/increment ] because the code was not working as expected where code uses:

index = index++

and

index = index--

This currently returns the old index value and saves it in index. If it was just index++ of index--, it would have been fine since index value updates when incrementing/decrementing.

-We will need to go through the tutorials for a few SIKs and update the code.

bboyho added 2 commits March 31, 2017 11:26
-Change description of PingPong() on line 47 to make it more clear what the function is doing.
-Removed code between lines 105-110 oneOnAtATime() since it was exactly the same as the PingPong(). The way the function written did not seem work as intended.
-Change description on line 49 and 145 for marquee().
-Changed syntax for incrementing and decrementing [ https://www.arduino.cc/en/reference/increment ] because the code was not working as expected where code uses:

    index = index ++

and

    index = index--

This currently returns the old index value and saves it in index. If it was just index++ of index--, it would have been fine since index value updates when incrementing/decrementing.

-We will need to go through the tutorials for a few SIKs and update the code.
Update and Fix SIK_circuit04_multipleLEDs.ino
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants