CuVoodoo STM32F1 firmware template
led_tm1637.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  LED_TM1637_1DIV16 = 0,
28  LED_TM1637_2DIV16 = 1,
29  LED_TM1637_4DIV16 = 2,
30  LED_TM1637_10DIV16 = 3,
31  LED_TM1637_11DIV16 = 4,
32  LED_TM1637_12DIV16 = 5,
33  LED_TM1637_13DIV16 = 6,
34  LED_TM1637_14DIV16 = 7,
35 };
36 
39 void led_tm1637_setup(void);
43 bool led_tm1637_on(void);
47 bool led_tm1637_off(void);
57 bool led_tm1637_number(uint16_t number);
64 bool led_tm1637_time(uint8_t hours, uint8_t minutes);
70 bool led_tm1637_text(char* text);
71 
void led_tm1637_setup(void)
setup communication with TM1637 IC
Definition: led_tm1637.c:166
bool led_tm1637_time(uint8_t hours, uint8_t minutes)
display time
Definition: led_tm1637.c:299
bool led_tm1637_number(uint16_t number)
display number
Definition: led_tm1637.c:288
led_tm1637_brightness_t
display brightness levels
Definition: led_tm1637.h:26
bool led_tm1637_text(char *text)
display text
Definition: led_tm1637.c:310
bool led_tm1637_brightness(enum led_tm1637_brightness_t brightness)
set display brightness
Definition: led_tm1637.c:277
bool led_tm1637_off(void)
switch display off
Definition: led_tm1637.c:267
bool led_tm1637_on(void)
switch display on
Definition: led_tm1637.c:256