1 /*
2  * Copyright (C) 2015-2021 Alibaba Group Holding Limited
3  */
4 
5 #if AOS_COMP_CLI
6 #include "aos/cli.h"
7 #endif
8 
9 #include "sh1106.h"
10 
example_sh1106_init(int argc,char ** argv)11 static void example_sh1106_init(int argc, char **argv)
12 {
13     printf("sh1106 init test begin ...\r\n");
14     sh1106_init();
15     printf("sh1106 init test end !!!\r\n");
16     return;
17 }
18 
example_sh1106_display(int argc,char ** argv)19 static void example_sh1106_display(int argc, char **argv)
20 {
21     printf("sh1106 display test begin ...\r\n");
22     sh1106_show_string(6, 12 * 0, "Welcome to sh1106!", 12, 1);
23     sh1106_show_string(24, (12 + 4) * 1, "This is Haas!", 12, 1);
24     sh1106_show_string(24, (12 + 4) * 2, "2000-01-01 00:01", 12, 1);
25     sh1106_show_string(24, (12 + 4) * 3, "T:30^C H:70%", 12, 1);
26     printf("sh1106 display test end !!!\r\n");
27     return;
28 }
29 
30 #if AOS_COMP_CLI
31 /* reg args: fun, cmd, description*/
32 ALIOS_CLI_CMD_REGISTER(example_sh1106_init, sh1106_init, sh1106 init test example)
33 ALIOS_CLI_CMD_REGISTER(example_sh1106_display, sh1106_display, sh1106 display test example)
34 #endif
35