New project

Dependencies:   mbed TextLCD

Track.h

Committer:
KwamsC
Date:
2018-06-25
Revision:
30:63a8a5cefc6b
Parent:
21:31647d80614f

File content as of revision 30:63a8a5cefc6b:

#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