led_tm1637.h
Go to the documentation of this file.
/* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#pragma once
enum led_tm1637_brightness_t {
LED_TM1637_1DIV16 = 0,
LED_TM1637_2DIV16 = 1,
LED_TM1637_4DIV16 = 2,
LED_TM1637_10DIV16 = 3,
LED_TM1637_11DIV16 = 4,
LED_TM1637_12DIV16 = 5,
LED_TM1637_13DIV16 = 6,
LED_TM1637_14DIV16 = 7,
};
void led_tm1637_setup(void);
bool led_tm1637_on(void);
bool led_tm1637_off(void);
bool led_tm1637_brightness(enum led_tm1637_brightness_t brightness);
bool led_tm1637_number(uint16_t number);
bool led_tm1637_time(uint8_t hours, uint8_t minutes);
bool led_tm1637_text(char* text);
led_tm1637_setup
void led_tm1637_setup(void)
setup communication with TM1637 IC
Definition: led_tm1637.c:166
led_tm1637_time
bool led_tm1637_time(uint8_t hours, uint8_t minutes)
display time
Definition: led_tm1637.c:299
led_tm1637_number
bool led_tm1637_number(uint16_t number)
display number
Definition: led_tm1637.c:288
led_tm1637_brightness_t
led_tm1637_brightness_t
display brightness levels
Definition: led_tm1637.h:26
led_tm1637_text
bool led_tm1637_text(char *text)
display text
Definition: led_tm1637.c:310
led_tm1637_brightness
bool led_tm1637_brightness(enum led_tm1637_brightness_t brightness)
set display brightness
Definition: led_tm1637.c:277
led_tm1637_off
bool led_tm1637_off(void)
switch display off
Definition: led_tm1637.c:267
led_tm1637_on
bool led_tm1637_on(void)
switch display on
Definition: led_tm1637.c:256