Add StartFullEnergy method to HeatingPad API

This commit is contained in:
zhangyisong 2026-07-15 11:18:21 +08:00
parent 1e6d6b9b30
commit f425f0acab
2 changed files with 5 additions and 0 deletions

View File

@ -32,6 +32,10 @@ public:
s_active = true;
}
static auto StartFullEnergy() -> void {
pwm_set_pulse_dt(&s_pwm_spec, s_pwm_spec.period);
}
static auto Stop() -> void {
s_active = false;
k_timer_stop(&s_timer);

View File

@ -48,6 +48,7 @@ auto main(void) -> int {
// auto wdt = app::WatchDogConfig{};
StatusLed::Flash(1s);
ther::Com::Init();
ther::HeatingPad::StartFullEnergy();
// ther::HeatingPad::Start(sensor_value{42, 0});
sensor_trigger tri{.type = SENSOR_TRIG_DATA_READY,
.chan = SENSOR_CHAN_AMBIENT_TEMP};