mirror of
https://github.com/DashyFox/StackSport.git
synced 2025-06-28 13:19:41 +00:00
indicator
This commit is contained in:
@ -110,16 +110,16 @@ void IR_CMD_Clear() {
|
||||
inputInProgerss = 0;
|
||||
digitInputInProgerss = 0;
|
||||
inputParam = NULL_NumberParam;
|
||||
SetShiftReg_inline(0, 0xff, 0);
|
||||
// SetShiftReg_inline(0, 0xff, 0);
|
||||
}
|
||||
|
||||
void IR_ParamEnter() {
|
||||
SetShiftReg_inline(0x03, 0, 0);
|
||||
// SetShiftReg_inline(0x03, 0, 0);
|
||||
if (0 <= data.command && data.command <= 9) {
|
||||
if (digitInputInProgerss) {
|
||||
inputParam = inputParam * 10; // dec shift << 1
|
||||
inputParam += (data.command + 1) % 10;
|
||||
SetShiftReg_inline(0xF0, 0, 0);
|
||||
// SetShiftReg_inline(0xF0, 0, 0);
|
||||
} else {
|
||||
inputParam = (data.command + 1) % 10;
|
||||
}
|
||||
@ -132,7 +132,7 @@ void IR_ParamEnter() {
|
||||
if(inputParam != NULL_NumberParam){
|
||||
print("Enter: ");
|
||||
printNumber(inputParam);
|
||||
SetShiftReg_inline(0, 0, inputParam);
|
||||
// SetShiftReg_inline(0, 0, inputParam);
|
||||
onParamEnter();
|
||||
}
|
||||
inputParam = NULL_NumberParam;
|
||||
|
Reference in New Issue
Block a user