added initial skeleton files
git-svn-id: svn://anubis/misc/parport-2x20vfd@109 bd8a9e45-a331-0410-811e-c64571078777
This commit is contained in:
parent
88fc42a8cc
commit
6e90883872
8
Makefile
Normal file
8
Makefile
Normal file
@ -0,0 +1,8 @@
|
||||
|
||||
TARGET := driver
|
||||
SRCS := $(wildcard *.cc)
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(SRCS)
|
||||
$(CXX) -o $@ $(CXXFLAGS) $(LDFLAGS) $^
|
43
VFD.h
Normal file
43
VFD.h
Normal file
@ -0,0 +1,43 @@
|
||||
|
||||
/*
|
||||
* Author: Josh Holtrop
|
||||
* Date: 2009-05-03
|
||||
*
|
||||
* This module provides a C++ object-oriented interface to a
|
||||
* Noritake itron Vacuum Fluorescent Display model CU20025ECPB-W1J
|
||||
* that my friend Mike Zwagerman let me borrow.
|
||||
*
|
||||
* It is connected to my PC's parallel port as follows:
|
||||
* CN1 Pin Parallel Port Pin
|
||||
* Gnd 1 18 Ground
|
||||
* RS 4 2 Data0
|
||||
* R/|W| 5 3 Data1
|
||||
* E 6 4 Data2
|
||||
* DB4 11 5 Data3
|
||||
* DB5 12 6 Data4
|
||||
* DB6 13 7 Data5
|
||||
* DB7 14 8 Data6
|
||||
*
|
||||
* Additionally, CN1 pin 1 (ground) is connected to an independent 5 volt
|
||||
* power supply's ground, and CN1 pin 2 (Vcc) is connected to the
|
||||
* independent power supply's +5V line.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef VFD_H
|
||||
#define VFD_H VFD_H
|
||||
|
||||
class VFD
|
||||
{
|
||||
public:
|
||||
static const unsigned char RW_WRITE = 0;
|
||||
static const unsigned char RW_READ = 1;
|
||||
static const unsigned char E_ENABLE = 0;
|
||||
static const unsigned char E_DISABLE = 1;
|
||||
static const unsigned char RS_COMMAND = 0;
|
||||
static const unsigned char RS_DATA = 1;
|
||||
|
||||
protected:
|
||||
};
|
||||
|
||||
#endif
|
Loading…
x
Reference in New Issue
Block a user