comparison lcdtest/commands.c @ 12:5eaf832d57d0

lcdtest program started, skeleton compiles
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 06 Apr 2018 06:15:11 +0000
parents
children 238a77db4134
comparison
equal deleted inserted replaced
11:03017bfeb3ce 12:5eaf832d57d0
1 #include <stdio.h>
2 #include <stdlib.h>
3
4 cmd_wi(argc, argv)
5 char **argv;
6 {
7 write_ir(strtoul(argv[1], 0, 16));
8 return(0);
9 }
10
11 cmd_wd(argc, argv)
12 char **argv;
13 {
14 write_dr(strtoul(argv[1], 0, 16));
15 return(0);
16 }
17
18 cmd_wr(argc, argv)
19 char **argv;
20 {
21 write_ir(strtoul(argv[1], 0, 16));
22 write_dr(strtoul(argv[2], 0, 16));
23 return(0);
24 }