You are using staging server - a separate instance of the ESP Component Registry that allows you to try distribution tools and processes without affecting the real registry.
This sample demonstrates how to initialize the driver with one MAX7219 / MAX7221 device, configure one MAX7219 / MAX7221 device to decode digits with either Code-B or DIrect Addressing and display symbols.The sample demonstrates how to decode a digit with COde-B and another digit with Direct Addressing.
This sample demonstrates the following capabilities:
spi_bus_initialize()
,led_driver_max7219_init()
,led_driver_max7219_configure_chain_scan_limit()
,led_driver_max7219_configure_chain_decode()
. This sample configures even digits as 'COde-B' deocde and odd digits as 'Direct Addressing',led_driver_max7219_set_digits()
,led_driver_max7219_set_digit()
,led_driver_max7219_set_chain_mode()
,led_driver_max7219_free()
.To make the most out of the sample, the following hardware setup is recommended:
In max7219_7221_decode.c
, configure CS_LOAD_PIN
(/CS
), CLK_PIN
(CLK
) and DIN_PIN
(MOSI
) adequately for your hardware setup:
C
const gpio_num_t CS_LOAD_PIN = GPIO_NUM_19;
const gpio_num_t CLK_PIN = GPIO_NUM_18;
const gpio_num_t DIN_PIN = GPIO_NUM_16;
Build and flash an ESP32 device. Ensure you have a working connection to UART as the sample emits various information via ESP_LOGxxx.
To create a project from this example, run:
idf.py create-project-from-example "gilleszunino/max7219_7221=1.0.2:max7219_7221_decode"