added commenting, removed deprecated functions
[cortex-from-scratch] / include / drivers / tm1637.h
1 #ifndef __TM1637_H
2 #define __TM1637_H
3
4 #define DOT     true
5 #define NODOT   false
6
7 /* HELPER SUBROUTINES DECLARATIONS */
8 static void start_condition();
9 static void stop_condition();
10 static int ack_recv();
11 static int ack10_recv();
12 static int idle();
13 static void delay();
14
15 extern void tm1637_init();
16 extern int set_grid(uint8_t offset, char value, bool dot);
17 extern int set_display(bool on, uint8_t degree);
18
19 extern void tm1637_example();
20
21 #endif