Lines Matching +full:manual +full:- +full:strobe

43 #define MAX_DRVOPT	10	/* maximum driver-specific options */
62 " 1 1-line display (default 2)",
108 while ((ch = getopt(argc, argv, "Dd:f:o:v")) != -1) { in main()
129 argc -= optind; in main()
146 debug(1, "Driver selected for %s", driver->l_name); in main()
147 driver->l_prepare(devname, drvopts); in main()
148 atexit(driver->l_finish); in main()
169 … fprintf(stderr, "usage: %s [-v] [-d drivername] [-f device] [-o options] [args...]\n", progname); in usage()
170 fprintf(stderr, " -D Increase debugging\n"); in usage()
171 fprintf(stderr, " -f Specify device, default is '%s'\n", DEFAULT_DEVICE); in usage()
172 fprintf(stderr, " -d Specify driver, one of:\n"); in usage()
174 fprintf(stderr, " %-10s (%s)%s\n", in usage()
182 fprintf(stderr, " -o Specify driver option string\n"); in usage()
203 driver->l_command(CMD_BKSP); in do_char()
206 driver->l_command(CMD_CLR); in do_char()
209 driver->l_command(CMD_NL); in do_char()
212 driver->l_command(CMD_CR); in do_char()
215 driver->l_command(CMD_RESET); in do_char()
218 driver->l_command(CMD_HOME); in do_char()
221 driver->l_putc('\\'); in do_char()
224 driver->l_command(ch); in do_char()
233 driver->l_putc(ch); in do_char()
241 * to be found on one- and two-line alphanumeric LCDs.
246 * --------------------------------
247 * Strobe (1) Enable (6)
248 * Data (2-9) Data (7-14)
255 * VCC (+5V) O------o-------o--------O Module pin 2
257 * / ---
258 * \ --- 1uF
259 * / | -
260 * \ <-----o--------O Module pin 3
264 * GND O------o----------------O Module pin 1
296 debug(3, "%s -> 0x%02x", (type == HD_COMMAND) ? "cmd " : "data", data); in hd44780_output()
297 hd_sctrl(type | HD_WRITE | STROBE); /* set direction, address */ in hd44780_output()
300 hd_sctrl(type | HD_WRITE | STROBE); /* lower E */ in hd44780_output()
308 hd_sctrl(type | HD_READ | STROBE); /* set direction, address */ in hd44780_input()
311 hd_sctrl(type | HD_READ | STROBE); /* lower E */ in hd44780_input()
313 debug(3, "0x%02x -> %s", val, (type == HD_COMMAND) ? "cmd " : "data"); in hd44780_input()
322 if ((hd_fd = open(devname, O_RDWR, 0)) == -1) in hd44780_prepare()
341 errx(EX_USAGE, "hd44780: unknown option code '%c'", *(cp-1)); in hd44780_prepare()
348 hd_cbits &= ~(STROBE | SELECTIN | AUTOFEED); /* set strobe, RS, R/W low */ in hd44780_prepare()
350 hd_sctrl(STROBE); in hd44780_prepare()
367 case CMD_RESET: /* full manual reset and reconfigure as per datasheet */ in hd44780_command()
410 /* XXX will not work in 4-line mode, or where readback fails */ in hd44780_command()