added initial skeleton files

git-svn-id: svn://anubis/misc/parport-2x20vfd@109 bd8a9e45-a331-0410-811e-c64571078777
This commit is contained in:
josh 2009-05-03 19:57:50 +00:00
parent 88fc42a8cc
commit 6e90883872
4 changed files with 66 additions and 0 deletions

8
Makefile Normal file
View File

@ -0,0 +1,8 @@
TARGET := driver
SRCS := $(wildcard *.cc)
all: $(TARGET)
$(TARGET): $(SRCS)
$(CXX) -o $@ $(CXXFLAGS) $(LDFLAGS) $^

3
VFD.cc Normal file
View File

@ -0,0 +1,3 @@
#include "VFD.h"

43
VFD.h Normal file
View 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

12
driver.cc Normal file
View File

@ -0,0 +1,12 @@
#include <iostream>
using namespace std;
#include "VFD.h"
int main(int argc, char ** argv)
{
cout << "Working on VFD module" << endl;
return 0;
}