Skip to content

Commit

Permalink
Add MAX7219 SPI display driver library + example and small SPI librar…
Browse files Browse the repository at this point in the history
…y fixes
  • Loading branch information
alexhorner committed Oct 4, 2023
1 parent efd5699 commit 2b79ef3
Show file tree
Hide file tree
Showing 7 changed files with 1,019 additions and 1 deletion.
10 changes: 10 additions & 0 deletions examples/spi_max7219/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
all : flash

TARGET:=spi_max7219

include ../../ch32v003fun/ch32v003fun.mk

flash : cv_flash
clean : cv_clean


9 changes: 9 additions & 0 deletions examples/spi_max7219/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# MAX7219 8 digit 7 segment display demo

This example for the max7219_spi_driver and max7219_spi_driver_extended library demonstrates controlling a MAX7219 or MAX7221 based display over SPI.

It demonstrates basic and advanced text writing, and at least one example of every single available display function in some capacity.

---

The MAX7219 and MAX7221 chipsets are used in many 8 character 7 segment and 8x8 single colour dot matrix displays which can be purchased premade on eBay and Aliexpress for a few £/$. The abundance of these displays makes them a great companion for small projects requiring a display output that is more capable than single LEDs but not as complex as something like an LCD.
6 changes: 6 additions & 0 deletions examples/spi_max7219/funconfig.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef _FUNCONFIG_H
#define _FUNCONFIG_H

#define CH32V003 1

#endif
Loading

0 comments on commit 2b79ef3

Please sign in to comment.