pi-tm1638
1.0
TM1638 library for Raspberry Pi
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
tm1638.h
Go to the documentation of this file.
1
85
#ifndef _TM1638_H_
86
#define _TM1638_H_
87
96
typedef
struct
tm1638_tag
tm1638
;
97
101
typedef
tm1638
*
tm1638_p
;
102
118
tm1638_p
tm1638_alloc
(uint8_t
data
, uint8_t
clock
, uint8_t
strobe
);
119
125
void
tm1638_free
(
tm1638_p
*t);
126
134
void
tm1638_enable
(
tm1638_p
t,
bool
enable
);
135
143
void
tm1638_set_intensity
(
tm1638_p
t, uint8_t
intensity
);
144
153
void
tm1638_set_7seg_raw
(
const
tm1638_p
t, uint8_t digit, uint8_t n);
154
163
void
tm1638_set_7seg_text
(
const
tm1638_p
t,
const
char
*str, uint8_t dots);
164
173
void
tm1638_set_led
(
const
tm1638_p
t, uint8_t led, uint8_t cols);
174
186
void
tm1638_set_8leds
(
const
tm1638_p
t, uint8_t red, uint8_t green);
187
194
void
tm1638_send_cls
(
const
tm1638_p
t);
195
204
uint8_t
tm1638_font
(
char
c);
205
217
uint32_t
tm1638_read_buttons
(
const
tm1638_p
t);
218
227
uint8_t
tm1638_read_8buttons
(
const
tm1638_p
t);
228
229
#endif
src
tm1638.h
Generated on Sun Aug 12 2012 01:08:37 for pi-tm1638 by
1.8.1.1