mirror of
https://github.com/ElVit/esphome_components.git
synced 2026-10-18 04:34:48 +02:00
made some functions public
This commit is contained in:
@@ -1,23 +1,5 @@
|
||||
#include "maidsite_desk.h"
|
||||
|
||||
#define BUTTON_UNIT "unit"
|
||||
#define BUTTON_STEP_UP "step_up"
|
||||
#define BUTTON_STEP_DOWN "step_down"
|
||||
#define BUTTON_STOP "stop"
|
||||
#define BUTTON_GOTO_MAX "goto_max"
|
||||
#define BUTTON_GOTO_MIN "goto_min"
|
||||
#define BUTTON_GOTO_M1 "goto_m1"
|
||||
#define BUTTON_GOTO_M2 "goto_m2"
|
||||
#define BUTTON_GOTO_M3 "goto_m3"
|
||||
#define BUTTON_GOTO_M4 "goto_m4"
|
||||
#define BUTTON_SAVE_M1 "save_m1"
|
||||
#define BUTTON_SAVE_M2 "save_m2"
|
||||
#define BUTTON_SAVE_M3 "save_m3"
|
||||
#define BUTTON_SAVE_M4 "save_m4"
|
||||
|
||||
#define NUMBER_HEIGHT_ABS "height_abs"
|
||||
#define NUMBER_HEIGHT_PCT "height_pct"
|
||||
|
||||
|
||||
namespace esphome
|
||||
{
|
||||
|
||||
@@ -64,11 +64,21 @@ namespace esphome
|
||||
|
||||
void button_press_action(button::Button* object);
|
||||
void number_control(number::Number* object, float value);
|
||||
|
||||
void request_physical_limits();
|
||||
void request_limits();
|
||||
void request_settings();
|
||||
void request_move_to();
|
||||
|
||||
void step_up();
|
||||
void step_down();
|
||||
void stop();
|
||||
void goto_height(float height);
|
||||
void goto_min_position();
|
||||
void goto_max_position();
|
||||
void goto_mem_position(int pos);
|
||||
void save_mem_position(int pos);
|
||||
|
||||
protected:
|
||||
void decode_response(std::vector<uint8_t> message);
|
||||
void send_simple_command(unsigned char cmd);
|
||||
@@ -76,15 +86,6 @@ namespace esphome
|
||||
float byte2float(int high, int low);
|
||||
void log_uart_hex(std::string prefix, std::vector<uint8_t> bytes, uint8_t separator);
|
||||
|
||||
void step_up();
|
||||
void step_down();
|
||||
void stop();
|
||||
void goto_mem_position(int pos);
|
||||
void save_mem_position(int pos);
|
||||
void goto_height(float height);
|
||||
void goto_max_position();
|
||||
void goto_min_position();
|
||||
|
||||
private:
|
||||
std::vector<uint8_t> response_message_;
|
||||
std::vector<uint8_t> request_message_;
|
||||
|
||||
Reference in New Issue
Block a user