Raise Your Hand to Make Halocode Smile

 

When Halocode is placed "arrow-up", the LED ring will light up and make a smile.

1.png

 

Toggle on Upload mode

Click to toggle on Upload mode

2.gif

 

Program

 

1. Drag an Events block when Halocode starts up to the Scripts area, and then add a Control block forever

3.gif

 

2. Add a Control block if () then () else, and a Sensing block Halocode is ()?. Choose "arrow-up"

4.gif

 

3. Add a Lighting block show (), and draw a smiling face

5.gif

 

3. Add another Lighting block show ()

6.gif

 

4. Upload the program

Download code


Was this article helpful?
0 out of 1 found this helpful

Comments

0 comments

Please sign in to leave a comment.