Add cutter code (cutter.cpp, cutter.hpp)

Add logic for cutter according to function diagram
Remove use of relay from vfd.cpp
Add pin for cutter switch to config
This commit is contained in:
jonny_ji7
2022-09-06 12:00:23 +02:00
parent 7eb06fe228
commit bb22fb340d
5 changed files with 179 additions and 2 deletions

View File

@@ -38,11 +38,9 @@ void vfd_setState(bool stateNew, vfd_direction_t directionNew){
gpio_set_level(GPIO_VFD_REV, 1);
break;
}
gpio_set_level(GPIO_RELAY, 1);
} else {
gpio_set_level(GPIO_VFD_FWD, 0);
gpio_set_level(GPIO_VFD_REV, 0);
gpio_set_level(GPIO_RELAY, 0);
}
}