Skip to content

Commit

Permalink
reworked HID and ViSet classes to be more flexible for dynamic menu s…
Browse files Browse the repository at this point in the history
…ections
  • Loading branch information
vortigont committed May 12, 2024
1 parent 9ccd908 commit aeb2673
Show file tree
Hide file tree
Showing 8 changed files with 421 additions and 341 deletions.
2 changes: 1 addition & 1 deletion SolderingPen_ESP32S2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
#define TEMP_DEFAULT 220 // 默认温度
#define TEMP_SLEEP 120 // 休眠温度
#define TEMP_BOOST 50 // 升温步进
#define TEMP_STEP 10 // temperature change step / 旋转编码器温度变化步进
#define TEMP_STEP 5 // temperature change step / 旋转编码器温度变化步进
#define POWER_LIMIT_15 170 // 功率限制
#define POWER_LIMIT_20 255 // 功率限制
#define POWER_LIMIT_20_2 127 // 功率限制
Expand Down
2 changes: 2 additions & 0 deletions SolderingPen_ESP32S2/evtloop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ ESP_EVENT_DEFINE_BASE(IRON_SET_EVT);
ESP_EVENT_DEFINE_BASE(IRON_GET_EVT);
ESP_EVENT_DEFINE_BASE(IRON_NOTIFY);
ESP_EVENT_DEFINE_BASE(IRON_STATE);
ESP_EVENT_DEFINE_BASE(IRON_VISET);


namespace evt {

Expand Down
1 change: 1 addition & 0 deletions SolderingPen_ESP32S2/evtloop.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ ESP_EVENT_DECLARE_BASE(IRON_SET_EVT); // ESPIron setter Commands events ba
ESP_EVENT_DECLARE_BASE(IRON_GET_EVT); // ESPIron getter Commands events base (in reply to this command, an IRON_STATE_EVT could be generated)
ESP_EVENT_DECLARE_BASE(IRON_NOTIFY); // ESPIron notification events base (those events are published when some state or mode changes due to any commands or component's logic)
ESP_EVENT_DECLARE_BASE(IRON_STATE); // ESPIron State publishing events base (those events are published on IRON_GET_EVT requests on demand)
ESP_EVENT_DECLARE_BASE(IRON_VISET); // ESPIron VisualSet HID events

// cast enum to int
template <class E>
Expand Down
Loading

0 comments on commit aeb2673

Please sign in to comment.