Display Binary Number Using LED Ring @msmakecode @teachmecs
A neat project from Rosemary Bianchi (Twitter @teachmecs) uses Microsoft MakeCode and the Adafruit Circuit Playground Express learning board. Her code displays a binary value of a number between 0 and 1023 using the 10 LEDs in the LED Ring enabling the Circuit Playground to display large numbers precisely. If the decimal number is not within range, it will blink red instead of showing the binary number.
Rather than just a program, this is a MakeCode extension. Create a new project in Adafruit MakeCode and add this extension via Extensions in the Advanced menu.
You need to enter the project URL https://github.com/teachmecs/BinaryLEDs, hit return and then select the Binary LEDs package.
You can see more about the project on GitHub.
Interested in MakeCode? See the Adafruit Learning System guide on MakeCode.