Add oven PWM controller

This commit is contained in:
2020-05-10 23:13:03 +02:00
parent 4f05c084d9
commit 8d6c81441d
5 changed files with 67 additions and 1 deletions

View File

@@ -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" : "")));