added save_position command and button

This commit is contained in:
Rocka84
2024-06-04 22:59:24 +02:00
parent a083c17882
commit 7fc46c2670
4 changed files with 53 additions and 11 deletions

View File

@@ -16,6 +16,7 @@
#define BUTTON_POSITION2 4
#define BUTTON_POSITION3 5
#define BUTTON_POSITION4 6
#define BUTTON_SAVE_POSITION 7
#define NUMBER_HEIGHT 0
@@ -30,6 +31,8 @@ namespace esphome {
float physical_min = 0;
float physical_max = 0;
bool save_position_mode = false;
float byte2float(int high, int low);
bool bufferMessage(int data, unsigned int *buffer, int len);
void handleMessage(unsigned int *message);
@@ -55,6 +58,7 @@ namespace esphome {
void lower();
void stop();
void goto_position(int pos);
void save_position(int pos);
void goto_height(float height);
void request_physical_limits();