indicator

This commit is contained in:
2024-09-27 17:28:15 +03:00
parent d088948a1d
commit e4cc2cecf5
6 changed files with 265 additions and 74 deletions

View File

@ -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;