heater too

This commit is contained in:
Matthew Kennedy 2020-12-15 15:00:11 -08:00
parent fb66c03ac7
commit 495819659d
2 changed files with 7 additions and 0 deletions

View File

@ -12,6 +12,10 @@
// 400khz / 1024 = 390hz PWM
Pwm heaterPwm(PWMD1, 0, 400'000, 1024);
uint16_t GetHeaterDuty() {
return heaterPwm.GetLastDuty();
}
enum class HeaterState
{
Preheat,

View File

@ -1,4 +1,7 @@
#pragma once
#include <cstdint>
void StartHeaterControl();
bool IsRunningClosedLoop();
uint16_t GetHeaterDuty();