aboutsummaryrefslogtreecommitdiffstats
path: root/demos/modules/tdisp/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/modules/tdisp/main.c')
-rw-r--r--demos/modules/tdisp/main.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/demos/modules/tdisp/main.c b/demos/modules/tdisp/main.c
index bf6f6c46..face28c1 100644
--- a/demos/modules/tdisp/main.c
+++ b/demos/modules/tdisp/main.c
@@ -25,21 +25,12 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "ch.h"
-#include "hal.h"
#include "gfx.h"
int main(void) {
uint8_t charmap[8];
- halInit();
- chSysInit();
-
- tdispInit();
-
- /* reset cursor position and clear the screen */
- tdispHome();
- tdispClear();
+ gfxInit();
/* set cursor position and draw single characters */
tdispSetCursor(4, 0);
@@ -68,7 +59,7 @@ int main(void) {
tdispDrawChar(0);
while(TRUE) {
- chThdSleepMilliseconds(250);
+ gfxSleepMilliseconds(250);
}
}