When a happy face is detected, the LED ring of HaloCode will light up, and make a smiling face.
Add a sprite
1. Delete default sprite Panda
2. Add a new sprite, Empty button14
3. Change the color, and size of the button.
4. In the Blocks Area, click "+ extension" to add Cognitive Services (AI) blocks
5. Drag an Events blockto the Scripts Area. Add an AI block
6. Add a Control block, an AI block , and an Events block . Create a new piece of message named "laugh"
7. Check the box of AI blockto display the value on stage
HaloCode makes a smiling face
8. Add an Events block, and a Lighting block . Draw a smiling face
9. Add a Control block, and a Lighting block