# Energy Ring

Shake your hand to power HaloCode. As HaloCode is "charging", more LEDs will light up

![](https://2169521322-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpakronics-education%2F-Lpg0r0jyU3XQdgAmqp8%2F-Lpg6_aHdnxAqK_g_StU%2F0.png?generation=1569476991997586\&alt=media)

1\. Choose Variables block, and click "Make a Variable". Name the variable "n"

![](https://2169521322-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpakronics-education%2F-Lpg0r0jyU3XQdgAmqp8%2F-Lpg6_aIKUEqqHMWSrnF%2F1.gif?generation=1569476992057741\&alt=media)

2\. Add an Events block when button is pressed, a Lighting block light off LED (), and a Variables block set (n) to (). Input "1"

![](https://2169521322-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpakronics-education%2F-Lpg0r0jyU3XQdgAmqp8%2F-Lpg6_aJSXOEFXcFTEyi%2F2.gif?generation=1569476992021169\&alt=media)

3\. Add a Control block if () then (), an Operators block () > (), and a Sensing block shaking strength. Input "20"

![](https://2169521322-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpakronics-education%2F-Lpg0r0jyU3XQdgAmqp8%2F-Lpg6_aKmiRN_ls4U4wI%2F3.gif?generation=1569476992051398\&alt=media)

4\. Add a Lighting block light up LED () with color R()G()B(), two Variables block n and change (n) by (1), a Control block wait () secs. Input "0.2"

![](https://2169521322-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpakronics-education%2F-Lpg0r0jyU3XQdgAmqp8%2F-Lpg6_aLHM-Y72_NvLta%2F4.gif?generation=1569476992014486\&alt=media)

5\. Add a Control block repeat until (), an Operators block () = (), a Variables block n. Input "12"

![](https://2169521322-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpakronics-education%2F-Lpg0r0jyU3XQdgAmqp8%2F-Lpg6_aMhUuztMsXSkL0%2F5.gif?generation=1569476991997561\&alt=media)

6\. Add a Lighting block all LEDs light up (). Set the color to blue

![](https://2169521322-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpakronics-education%2F-Lpg0r0jyU3XQdgAmqp8%2F-Lpg6_aN19ecq7l8jFnT%2F6.gif?generation=1569476992018923\&alt=media)

7\. Toggle on Upload mode.
