more switches enables
This commit is contained in:
14
src/hmi.cpp
14
src/hmi.cpp
@ -81,14 +81,14 @@ public:
|
||||
|
||||
|
||||
SwitchPort intensitySwitch = SwitchPort2(BIT1);
|
||||
//SwitchPort onTimeSwitch = SwitchPort2(BIT2);
|
||||
//SwitchPort offTimeSwitch = SwitchPort2(BIT3);
|
||||
SwitchPort onTimeSwitch = SwitchPort2(BIT2);
|
||||
SwitchPort offTimeSwitch = SwitchPort2(BIT3);
|
||||
//SwitchPort modeSwitch = SwitchPort2(BIT4);
|
||||
|
||||
int16_t intensity = 0;
|
||||
uint16_t maxIntensity = 0;
|
||||
uint16_t intensityStep = 0;
|
||||
const uint16_t intensityStepCnt = 8;
|
||||
const uint16_t intensityStepCnt = 16;
|
||||
|
||||
|
||||
void hmiInit() {
|
||||
@ -108,4 +108,12 @@ void hmiExec() {
|
||||
debugWrite(intensity);
|
||||
engineSetPwmValue(intensity);
|
||||
}
|
||||
|
||||
if (onTimeSwitch.get()) {
|
||||
engineIncOnTime();
|
||||
}
|
||||
|
||||
if (offTimeSwitch.get()) {
|
||||
engineIncOffTime();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user