mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 23:48:11 +01:00
Merge branch 'dev' of https://github.com/esphome/esphome into custom_ble_server_111
This commit is contained in:
commit
188178f582
3 changed files with 4 additions and 41 deletions
|
@ -35,7 +35,7 @@ class BLEClientBase : public espbt::ESPBTClient, public Component {
|
||||||
void gap_event_handler(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *param) override;
|
void gap_event_handler(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *param) override;
|
||||||
void connect() override;
|
void connect() override;
|
||||||
esp_err_t pair();
|
esp_err_t pair();
|
||||||
void disconnect();
|
void disconnect() override;
|
||||||
void release_services();
|
void release_services();
|
||||||
|
|
||||||
bool connected() { return this->state_ == espbt::ClientState::ESTABLISHED; }
|
bool connected() { return this->state_ == espbt::ClientState::ESTABLISHED; }
|
||||||
|
|
|
@ -11,9 +11,9 @@
|
||||||
|
|
||||||
#ifdef USE_ESP32
|
#ifdef USE_ESP32
|
||||||
|
|
||||||
|
#include <esp_bt_defs.h>
|
||||||
#include <esp_gap_ble_api.h>
|
#include <esp_gap_ble_api.h>
|
||||||
#include <esp_gattc_api.h>
|
#include <esp_gattc_api.h>
|
||||||
#include <esp_bt_defs.h>
|
|
||||||
|
|
||||||
#include <freertos/FreeRTOS.h>
|
#include <freertos/FreeRTOS.h>
|
||||||
#include <freertos/semphr.h>
|
#include <freertos/semphr.h>
|
||||||
|
@ -172,6 +172,7 @@ class ESPBTClient : public ESPBTDeviceListener {
|
||||||
esp_ble_gattc_cb_param_t *param) = 0;
|
esp_ble_gattc_cb_param_t *param) = 0;
|
||||||
virtual void gap_event_handler(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *param) = 0;
|
virtual void gap_event_handler(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *param) = 0;
|
||||||
virtual void connect() = 0;
|
virtual void connect() = 0;
|
||||||
|
virtual void disconnect() = 0;
|
||||||
virtual void set_state(ClientState st) { this->state_ = st; }
|
virtual void set_state(ClientState st) { this->state_ = st; }
|
||||||
ClientState state() const { return state_; }
|
ClientState state() const { return state_; }
|
||||||
int app_id;
|
int app_id;
|
||||||
|
|
|
@ -4,56 +4,18 @@ touchscreen:
|
||||||
display: tft_display
|
display: tft_display
|
||||||
update_interval: 50ms
|
update_interval: 50ms
|
||||||
threshold: 1
|
threshold: 1
|
||||||
calibration:
|
|
||||||
x_max: 240
|
|
||||||
y_max: 320
|
|
||||||
|
|
||||||
font:
|
font:
|
||||||
- file: "$component_dir/roboto.ttf"
|
- file: "$component_dir/roboto.ttf"
|
||||||
id: roboto20
|
id: roboto20
|
||||||
size: 20
|
size: 20
|
||||||
extras:
|
|
||||||
- file: '$component_dir/materialdesignicons-webfont.ttf'
|
|
||||||
glyphs: [
|
|
||||||
"\U000F004B",
|
|
||||||
"\U0000f0ed",
|
|
||||||
"\U000F006E",
|
|
||||||
"\U000F012C",
|
|
||||||
"\U000F179B",
|
|
||||||
"\U000F0748",
|
|
||||||
"\U000F1A1B",
|
|
||||||
"\U000F02DC",
|
|
||||||
"\U000F0A02",
|
|
||||||
"\U000F035F",
|
|
||||||
"\U000F0156",
|
|
||||||
"\U000F0C5F",
|
|
||||||
"\U000f0084",
|
|
||||||
"\U000f0091",
|
|
||||||
]
|
|
||||||
- file: "$component_dir/helvetica.ttf"
|
- file: "$component_dir/helvetica.ttf"
|
||||||
id: helvetica20
|
id: helvetica20
|
||||||
- file: "$component_dir/roboto.ttf"
|
- file: "$component_dir/roboto.ttf"
|
||||||
id: roboto10
|
id: roboto10
|
||||||
size: 10
|
size: 10
|
||||||
bpp: 4
|
bpp: 4
|
||||||
extras:
|
|
||||||
- file: '$component_dir/materialdesignicons-webfont.ttf'
|
|
||||||
glyphs: [
|
|
||||||
"\U000F004B",
|
|
||||||
"\U0000f0ed",
|
|
||||||
"\U000F006E",
|
|
||||||
"\U000F012C",
|
|
||||||
"\U000F179B",
|
|
||||||
"\U000F0748",
|
|
||||||
"\U000F1A1B",
|
|
||||||
"\U000F02DC",
|
|
||||||
"\U000F0A02",
|
|
||||||
"\U000F035F",
|
|
||||||
"\U000F0156",
|
|
||||||
"\U000F0C5F",
|
|
||||||
"\U000f0084",
|
|
||||||
"\U000f0091",
|
|
||||||
]
|
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
- platform: lvgl
|
- platform: lvgl
|
||||||
|
|
Loading…
Reference in a new issue