Skip to content

Contoh penerapan led matrix 8x8 untuk board esp32 menggunakan micropython

Notifications You must be signed in to change notification settings

0d3ng/esp32-led-matrix

Repository files navigation

esp32-led-matrix

Contoh penerapan led matrix 8x8 untuk board esp32 menggunakan micropython

Format fritzing dapat didapatkan di sini

Wiring

ESP32 max7219 8x8 LED Matrix
5V VCC
GND GND
D2 MOSI DIN
D5 CS CS
D4 SCK CLK

Langkah-langkah installasi

  1. pip install --upgrade micropy-cli
  2. micropy stubs search esp32
    MicroPy  Searching Stub Repositories...
    
    MicroPy  Results for esp32:
    MicroPy  esp32-micropython-1.10.0
    MicroPy  esp32-micropython-1.11.0
    MicroPy  esp32-micropython-1.12.0 (Installed)
    MicroPy  esp32-micropython-1.9.4
    MicroPy  esp32-pycopy-1.11.0
    MicroPy  esp3
    
  3. micropy stubs add <NAME_STUB>, misalkan esp32-micropython-1.12.0 yang akan digunakan berarti micropy stubs add esp32-micropython-1.12.0
  4. micropy init
  5. micropy install <PACKAGE_NAMES>, optional ketika ingin install paket yang dibutuhkan. misalkan install paket picoweb, micropy install picoweb

Contoh code

from machine import Pin, SPI
import max7219, utime

spi = SPI(1, baudrate=10000000, polarity=1, phase=0, sck=Pin(4), mosi=Pin(2))
d = max7219.Max7219(32, 8, spi, Pin(5), False)
d.brightness(5)
d.text("^_^",0,0)
d.show()
utime.sleep(3)

while True:
    d.marquee("Politeknik Negeri Malang...")
    d.marquee("Jos...")

Pada file pymakr.conf, silakan ganti "address": "/dev/tty.SLAB_USBtoUART" dengan port yang digunakan untuk controller Anda. Jika menggunakan windows cek di device manager terdeteksi di port mana.

About

Contoh penerapan led matrix 8x8 untuk board esp32 menggunakan micropython

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages