There is only one Magic Button function that allows you to change the effect of a button press and only under a specific circumstance. A single button press function is available when the Jewelbot is unplugged and doesn't have any friends to show. This function will allow you to code up a really cool effect and show it off to your friends, while keeping all the friendship functionality.
You can use the function below independently and add LEDs, LED Animations, or Buzzers inside.
The function is called an event, because it is triggered by an interaction on the device. Events are ways you can trigger things to happen after you do something else, in this case after pressing the button.
This function happens when you hit your button one time.