Jasmine Karlsson / Mbed 2 deprecated train_rail

Dependencies:   mbed TextLCD

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Track.h Source File

Track.h

00001 #ifndef Track_H
00002 #define Track_H
00003 
00004 #include "mbed.h"
00005 #include "TextLCD.h"
00006 #include "MCP23017.h"
00007 #include "DigitalOut.h"
00008 
00009 #include <iostream>
00010 
00011 using namespace std;
00012 
00013 class Track
00014 {
00015     public:
00016         Track();
00017         virtual ~Track();
00018         void DCC_send_command(unsigned int address, unsigned int inst, unsigned int repeat_count);
00019 
00020     protected:
00021     /*----------------------------------------------------------------------------
00022     Pin definitions
00023     *----------------------------------------------------------------------------*/
00024     DigitalOut trackpin;      // train track
00025     TextLCD lcd; // lcd
00026     
00027     DigitalOut myled1;
00028     
00029     unsigned int address;
00030     unsigned int inst;
00031 
00032 };
00033 
00034 #endif // TRAIN_H