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.
Diff: main.cpp
- Revision:
- 51:badef9fc202f
- Parent:
- 50:ee4398ee44be
- Child:
- 52:c08495446f87
--- a/main.cpp Wed Jun 20 10:04:42 2018 +0000 +++ b/main.cpp Wed Jun 20 10:08:20 2018 +0000 @@ -264,7 +264,9 @@ //01DCSSSS for speed, D is direction (fwd=1 and rev=0), C is speed(SSSSC) LSB const unsigned int DCCinst_forward = 0x68; //forward half speed -const unsigned int DCCinst_forward_slow = 0x66; //forward half speed +const unsigned int DCCinst_forward_slow = 0x66; //forward slow speed (step 9) +const unsigned int DCCinst_forward_fast = 0x6C; //Forward fast speed (step 22) +const unsigned int DCCinst_forward_full = 0x6F; //Forward full speed const unsigned int DCCinst_reverse = 0x48; //reverse half speed const unsigned int DCCinst_stop = 0x50; //stop the train