mxyxbb / MAX7219_MATRIX_STM32_HAL_sp_purpose

MAX7219 driver using stm32f407vet6 cubeMX hal, and specially designed for the 第七届工程训练大赛-物流机器人

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Thanks https://github.com/bitbank2/MAX7219

I made some modification based on that lib.

For my personal function, write your main.c like this

//include header files
#include "MAX7219/max7219.h"
#include "MAX7219/max7219_matrix.h"

//init MAX7219
MAX7219_MatrixInit(&hspi1, MAX7219_CS_GPIO_Port, MAX7219_CS_Pin);
MAX7219_MatrixUpdate();

//prepare the numbers you want to show
uint8_t colororder[]={1,3,2,3,2,1};
//use MAX7219_mywrite(uint8_t *numstr) to flush the buffer
MAX7219_mywrite(colororder);
//use MAX7219_MatrixUpdate() to display the numbers
MAX7219_MatrixUpdate();

image-20210224144132459

About

MAX7219 driver using stm32f407vet6 cubeMX hal, and specially designed for the 第七届工程训练大赛-物流机器人


Languages

Language:C 100.0%