Jasmine Karlsson
/
train_rail
New project
Track.h
- Committer:
- jasminealice
- Date:
- 2018-06-12
- Revision:
- 21:31647d80614f
- Parent:
- 20:32ba0a5f2d02
- Child:
- 30:63a8a5cefc6b
File content as of revision 21:31647d80614f:
#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(int repeat_count); 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