Skip to content

Instantly share code, notes, and snippets.

@phhusson
Created June 7, 2025 17:04
Show Gist options
  • Select an option

  • Save phhusson/fef98c07026f8c894a05507dbde2ea5b to your computer and use it in GitHub Desktop.

Select an option

Save phhusson/fef98c07026f8c894a05507dbde2ea5b to your computer and use it in GitHub Desktop.

Revisions

  1. phhusson created this gist Jun 7, 2025.
    47 changes: 47 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,47 @@
    esphome:
    name: esp-ws2812b-64

    esp32:
    board: upesy_wroom
    framework:
    type: arduino

    captive_portal:

    light:
    - platform: fastled_clockless
    chipset: WS2812B
    pin: GPIO17
    num_leds: 64
    rgb_order: GRB
    name: "LED Matrix"
    id: led_matrix
    effects:
    - addressable_rainbow:
    - addressable_scan:
    - addressable_fireworks:
    - addressable_twinkle:
    - pulse:

    font:
    - file: 'web_ibm_bios.woff' # https://int10h.org/oldschool-pc-fonts/fontlist/woff/web_ibm_bios.woff
    id: font1
    size: 8
    bpp: 4
    glyphs: [
    "\u263a",
    "\u2665"
    ]
    - file: 'gfonts://Noto+Serif'
    id: font2
    size: 8

    display:
    - platform: addressable_light
    addressable_light_id: led_matrix
    width: 8
    height: 8
    lambda:
    !lambda |-
    auto YELLOW = Color(64, 64, 0);
    it.printf(0, 0, id(font1), YELLOW, "\u2665");