Warning
This page is located in archive.

Lab 04

Exercise Objectives

  • Introduce SPI communication
  • Use external library to communicate with MAX7219 8×8 LED matrix driver

Documents and materials

Tasks

  1. Upload library into RPi Pico
  2. Try simple communication over SPI bus
  3. Try methods from the library to create more advanced display actions (animation, etc.)
  4. Optional: use both matrix display and matrix keyboard to display pressed key

Code

import max7219
from machine import Pin, SPI
 
spi = SPI(1)
 
display = max7219.Matrix8x8(spi, Pin('X5'), 1)
display.text('1',0,0,1)
display.show()

courses/be2m37mam/labs/04.txt · Last modified: 2024/10/31 13:59 by viteks