Why not help your students work towards their fitness goals by integrating coding into gym class?

The sample program shown below was designed to randomly select and display an exercise for students to complete. When the micro:bit detects a shake, it will pick a random number from 0 through 7. It will then display the number of repetitions and name of the exercise on the LED array corresponding to the number that was randomly selected.

Try shaking up your gym class by having students code their own fitness challenges!

If you’d like to remix or tinker with this sample program in the MakeCode editor, check out this link: https://makecode.microbit.org/_dmx44dJy55b3

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s