![]() | LEGO Mindstorms EV3 |
//
subcall Read3PNxtDumbInputDevice // void Read3PNxtDumbInputDevice(Value,hName,Layer,Port)
{ //
IO_F Value //
IO_16 hName //
IO_8 Layer //
IO_8 Port //
//
DATA32 Data32 //
// {
INPUT_DEVICE(READY_RAW,Layer,Port,1,0,1,Data32) // INPUT_DEVICE(READY_RAW,Layer,Port,Type,Mode,DataSets,Data32)
DIV32(Data32,4,Data32) // calculate value specific for sensor
MOVE32_F(Data32,Value) // Value = Data32
STRINGS(DUPLICATE,'HT-FORCE',@hName) // hName = "HT-FORCE"
} // }
//