CuVoodoo STM32F1 firmware template
led_max7219.h
Go to the documentation of this file.
1 /* This program is free software: you can redistribute it and/or modify
2  * it under the terms of the GNU General Public License as published by
3  * the Free Software Foundation, either version 3 of the License, or
4  * (at your option) any later version.
5  *
6  * This program is distributed in the hope that it will be useful,
7  * but WITHOUT ANY WARRANTY; without even the implied warranty of
8  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9  * GNU General Public License for more details.
10  *
11  * You should have received a copy of the GNU General Public License
12  * along with this program. If not, see <http://www.gnu.org/licenses/>.
13  *
14  */
22 #pragma once
23 
27 void led_max7219_setup(uint8_t displays);
32 void led_max7219_nop(uint8_t display);
36 void led_max7219_on(uint8_t display);
40 void led_max7219_off(uint8_t display);
45 void led_max7219_test(bool test, uint8_t display);
51 void led_max7219_intensity(uint8_t intensity, uint8_t digits, uint8_t display);
58 bool led_max7219_text(char* text, uint8_t display);
64 void led_max7219_number(uint32_t number, uint8_t dots, uint8_t display);
void led_max7219_on(uint8_t display)
switch display on
Definition: led_max7219.c:209
void led_max7219_setup(uint8_t displays)
setup communication with MAX7219 IC
Definition: led_max7219.c:186
bool led_max7219_text(char *text, uint8_t display)
display text
Definition: led_max7219.c:240
void led_max7219_test(bool test, uint8_t display)
switch display in test or normal operation mode
Definition: led_max7219.c:219
void led_max7219_off(uint8_t display)
switch display off
Definition: led_max7219.c:214
void led_max7219_number(uint32_t number, uint8_t dots, uint8_t display)
display number
Definition: led_max7219.c:254
void led_max7219_intensity(uint8_t intensity, uint8_t digits, uint8_t display)
set display intensity
Definition: led_max7219.c:228
void led_max7219_nop(uint8_t display)
do nothing (no operation)