Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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
Generated on Fri Jul 22 2022 17:31:31 by
1.7.2