ppilcd.c (145210) | ppilcd.c (250460) |
---|---|
1/* 2 * Control LCD module hung off parallel port using the 3 * ppi 'geek port' interface. 4 * | 1/* 2 * Control LCD module hung off parallel port using the 3 * ppi 'geek port' interface. 4 * |
5 * $FreeBSD: head/share/examples/ppi/ppilcd.c 145210 2005-04-17 21:55:00Z iedowse $ | 5 * $FreeBSD: head/share/examples/ppi/ppilcd.c 250460 2013-05-10 16:41:26Z eadler $ |
6 */ 7 8#include <stdio.h> 9#include <stdlib.h> 10#include <string.h> 11#include <ctype.h> 12#include <fcntl.h> 13#include <unistd.h> --- 250 unchanged lines hidden (view full) --- 264 * \ 265 * | 266 * GND O------o----------------O Module pin 1 267 * 268 * The ground line should also be connected to the parallel port, on 269 * one of the ground pins (eg. pin 25). 270 * 271 * Note that the pinning on some LCD modules has the odd and even pins | 6 */ 7 8#include <stdio.h> 9#include <stdlib.h> 10#include <string.h> 11#include <ctype.h> 12#include <fcntl.h> 13#include <unistd.h> --- 250 unchanged lines hidden (view full) --- 264 * \ 265 * | 266 * GND O------o----------------O Module pin 1 267 * 268 * The ground line should also be connected to the parallel port, on 269 * one of the ground pins (eg. pin 25). 270 * 271 * Note that the pinning on some LCD modules has the odd and even pins |
272 * arranged as though reversed; check carefully before conecting a module | 272 * arranged as though reversed; check carefully before connecting a module |
273 * as it is possible to toast the HD44780 if the power is reversed. 274 */ 275 276static int hd_fd; 277static u_int8_t hd_cbits; 278static int hd_lines = 2; 279static int hd_blink = 0; 280static int hd_cursor = 0; --- 158 unchanged lines hidden --- | 273 * as it is possible to toast the HD44780 if the power is reversed. 274 */ 275 276static int hd_fd; 277static u_int8_t hd_cbits; 278static int hd_lines = 2; 279static int hd_blink = 0; 280static int hd_cursor = 0; --- 158 unchanged lines hidden --- |