Add oven PWM controller
This commit is contained in:
@@ -236,6 +236,9 @@ int main()
|
||||
button = button_read_event();
|
||||
rot = rotary_encoder_get_abs_val();
|
||||
|
||||
oven_driver_set_power(rot > 100U ? 100U : rot);
|
||||
|
||||
|
||||
/* TODO: handle gui */
|
||||
snprintf(&disp[1][0], 17, "Rotary: %u", (unsigned int)rot);
|
||||
snprintf(&disp[2][0], 17, "Button: %s", (button == BUTTON_SHORT ? "SHORT" : (button == BUTTON_LONG ? "LONG" : "")));
|
||||
|
Reference in New Issue
Block a user