Snap4Arduino, a little more programming
Now, let’s get the LED blinking!
TASK: Do program below
1. Have another control block: ”Forever” and put it under ”when clicked”.
2. Move the ”Set digital pin” that you already have, inside ”forever”
3. Add Control block: ”wait 1 secs” under ”Set digital pin”
4. Click ”set digital pin” block with left mouse button —> ”Duplicate”. You should now get those two blocks.
5. Change the value of another ”Set digital pin” value to ”off” (click the slider).
Your program should look like this:

Click the ”When clicked” block and start the program. Change the values inside ”wait” block, for example 0.5 or 0.05.
Congratulations! Your first excercise is done! 🥳
TASK: Do program below
1. Have another control block: ”Forever” and put it under ”when clicked”.
2. Move the ”Set digital pin” that you already have, inside ”forever”
3. Add Control block: ”wait 1 secs” under ”Set digital pin”
4. Click ”set digital pin” block with left mouse button —> ”Duplicate”. You should now get those two blocks.
5. Change the value of another ”Set digital pin” value to ”off” (click the slider).
Your program should look like this:

Click the ”When clicked” block and start the program. Change the values inside ”wait” block, for example 0.5 or 0.05.
Congratulations! Your first excercise is done! 🥳