MAX7219/MAX7221 dirver + example
This commit is contained in:
parent
c21f70366f
commit
87b4befd87
6 changed files with 383 additions and 0 deletions
36
extras/max7219/max7219_priv.h
Normal file
36
extras/max7219/max7219_priv.h
Normal file
|
@ -0,0 +1,36 @@
|
|||
/*
|
||||
* Driver for MAX7219/MAX7221
|
||||
* Serially Interfaced, 8-Digit LED Display Drivers
|
||||
*
|
||||
* Part of esp-open-rtos
|
||||
* Copyright (C) 2017 Ruslan V. Uss <unclerus@gmail.com>
|
||||
* BSD Licensed as described in the file LICENSE
|
||||
*/
|
||||
#ifndef EXTRAS_MAX7219_PRIV_H_
|
||||
#define EXTRAS_MAX7219_PRIV_H_
|
||||
|
||||
static const uint8_t font_7seg[] = {
|
||||
/* ' ' ! " # $ % & ' ( ) */
|
||||
0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x02, 0x4e, 0x78,
|
||||
/* * + , - . / 0 1 2 3 */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7e, 0x30, 0x6d, 0x79,
|
||||
/* 4 5 6 7 8 9 : ; < = */
|
||||
0x33, 0x5b, 0x5f, 0x70, 0x7f, 0x7b, 0x00, 0x00, 0x0d, 0x09,
|
||||
/* > ? @ A B C D E F G */
|
||||
0x19, 0x65, 0x00, 0x77, 0x1f, 0x4e, 0x3d, 0x4f, 0x47, 0x5e,
|
||||
/* H I J K L M N O P Q */
|
||||
0x37, 0x06, 0x38, 0x57, 0x0e, 0x76, 0x15, 0x1d, 0x67, 0x73,
|
||||
/* R S T U V W X Y Z [ */
|
||||
0x05, 0x5b, 0x0f, 0x1c, 0x3e, 0x2a, 0x49, 0x3b, 0x6d, 0x4e,
|
||||
/* \ ] ^ _ ` a b c d e */
|
||||
0x00, 0x78, 0x00, 0x08, 0x02, 0x77, 0x1f, 0x4e, 0x3d, 0x4f,
|
||||
/* f g h i j k l m n o */
|
||||
0x47, 0x5e, 0x37, 0x06, 0x38, 0x57, 0x0e, 0x76, 0x15, 0x1d,
|
||||
/* p q r s t u v w x y */
|
||||
0x67, 0x73, 0x05, 0x5b, 0x0f, 0x1c, 0x3e, 0x2a, 0x49, 0x3b,
|
||||
/* z { | } ~ */
|
||||
0x6d, 0x4e, 0x06, 0x78, 0x00
|
||||
};
|
||||
|
||||
|
||||
#endif /* EXTRAS_MAX7219_PRIV_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue