My CircuitPython code for electronic business card Maker Badge.
CircuitPython for Maker Badge: https://circuitpython.org/board/maker_badge/
- 📝 Setting the color of individual LEDs:
if touch_1.value:
printm("Press button 1")
# Turn off the LED
led_matrix[0]("your_color")
led_matrix[1]("your_color")
led_matrix[2]("your_color")
led_matrix[3]("your_color")
led_matrix.show()
activate_gui_layer(container, screen1)
display.show(container)
display.refresh()ℹ️ define "your_color" in the program as needed
- 📝 The LEDs flashes when the button is pressed
# Define LED blink
def led_blink(pin, count):
for _ in range(count):
led_matrix.fill(("your_color"))
led_matrix.show()
time.sleep(0.25)
led_matrix.fill((led_off))
led_matrix.show()
time.sleep(0.25) if touch_1.value:
printm("Press button 1")
activate_gui_layer(container, screen1)
display.show(container)
display.refresh()
led_blink(board.D18, "number of blink")ℹ️ define "your_color" in the program as needed
Maker Badge is primarily meant to be a name tag on actions such as Maker Faire, where you want to simply tell someone your name, the name of your company or the company you work for. But it is also a full -fledged development board, on which you can prototyte your projects in CircuitPython, Micropython or Arduino.

