Desktop Station gateway software for mbed
Dependents: DSGatewayMBED_Nucleo DSGatewayMBED_Nucleo_Step128
This library provides to control DCC and Marklin Motorola 2 locomtoives and turnouts via DCC/MM2 Shield. Please check our wiki site(http://desktopstation.net/wiki/).
Diff: DSGatewayMBED.h
- Revision:
- 1:39249e22e9f5
- Parent:
- 0:96eb8cc345dc
--- a/DSGatewayMBED.h Sat Jan 17 01:48:50 2015 +0000 +++ b/DSGatewayMBED.h Fri Jan 23 22:28:51 2015 +0000 @@ -61,6 +61,7 @@ byte lowByte(short int low); byte highByte(short int high); +unsigned char reverseByte(unsigned char inByte); /* Defined functions */ class DSGatewayLib @@ -81,8 +82,8 @@ bool IsPower(); - bool SetPower(boolean power); - bool SetPowerEx(boolean power); + bool SetPower(byte power); + bool SetPowerEx(byte power); bool SetLocoSpeed(word address, int inSpeed); bool SetLocoSpeedEx(word address, int inSpeed, int inProtcol); bool SetLocoFunction(word address, unsigned char inFunction, unsigned char inPower);