New project

Dependencies:   mbed TextLCD

Track.h

Committer:
jasminealice
Date:
2018-06-28
Revision:
31:9d973398554f
Parent:
30:63a8a5cefc6b

File content as of revision 31:9d973398554f:

#ifndef Track_H
#define Track_H

#include "mbed.h"
#include "TextLCD.h"
#include "MCP23017.h"
#include "DigitalOut.h"

#include <iostream>

using namespace std;

class Track
{
    public:
        Track();
        virtual ~Track();
        void DCC_send_command(unsigned int address, unsigned int inst, unsigned int repeat_count);

    protected:
    /*----------------------------------------------------------------------------
    Pin definitions
    *----------------------------------------------------------------------------*/
    DigitalOut trackpin;      // train track
    TextLCD lcd; // lcd
    
    DigitalOut myled1;
    
    unsigned int address;
    unsigned int inst;

};

#endif // TRAIN_H