rewrite register function, code formatting
[cortex-from-scratch] / include / drivers / tm1637.h
index 4ad572a..e537cdf 100644 (file)
@@ -1,8 +1,16 @@
 #ifndef __TM1637_H
 #define __TM1637_H
 
+/* HELPER SUBROUTINES DECLARATIONS */
+static void start_condition();
+static void stop_condition();
+static int ack_recv();
+static int ack10_recv();
+static int idle();
+
 extern void tm1637_init();
-extern void tm1637_start();
-extern void tm1637_stop();
+extern int set_grid(uint8_t offset, char value, bool dot);
+extern int set_display(bool on, uint8_t degree);
+extern void tm1637_example();
 
 #endif