Skip to content

NetCzech/maker-badge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

My CircuitPython code for electronic business card Maker Badge.


https://github.com/NetCzech/maker-badge/blob/3e36630f7859b08d106f8034f60413f942338f33/_makerPict/CircuitPython__logo.png


CircuitPython for Maker Badge:        https://circuitpython.org/board/maker_badge/


More edits main.py:

  1. 📝 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

   

  1. 📝 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:

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.

https://github.com/NetCzech/maker-badge/blob/20c657af727cb02ffeea53f4066178e163fabe98/_makerPict/maker_badge.jpg


GitHub:       https://github.com/makerfaireczech/maker_badge

www:           https://www.makermarket.cz

Buy:             https://www.makermarket.cz/maker-badge/


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages