mirror of
https://github.com/esphome/esphome.git
synced 2025-01-07 13:21:44 +01:00
start of demo espnow component
This commit is contained in:
parent
de5519bcaa
commit
0c9ebe8054
3 changed files with 44 additions and 0 deletions
0
esphome/components/espnow_demo/__init__.py
Normal file
0
esphome/components/espnow_demo/__init__.py
Normal file
23
esphome/components/espnow_demo/espnow_demo.cpp
Normal file
23
esphome/components/espnow_demo/espnow_demo.cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
#include "espnow_demo.h"
|
||||
|
||||
#pragma once
|
||||
|
||||
#if defined(USE_ESP32)
|
||||
|
||||
#include "esphome/core/automation.h"
|
||||
#include "esphome/core/component.h"
|
||||
#include "esphome/core/helpers.h"
|
||||
#include <esp_now.h>
|
||||
|
||||
#include <array>
|
||||
#include <memory>
|
||||
#include <queue>
|
||||
#include <vector>
|
||||
#include <mutex>
|
||||
#include <map>
|
||||
|
||||
namespace esphome {
|
||||
namespace espnow {} // namespace espnow
|
||||
} // namespace esphome
|
||||
|
||||
#endif
|
21
esphome/components/espnow_demo/espnow_demo.h
Normal file
21
esphome/components/espnow_demo/espnow_demo.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
#pragma once
|
||||
|
||||
#if defined(USE_ESP32)
|
||||
|
||||
#include "esphome/core/automation.h"
|
||||
#include "esphome/core/component.h"
|
||||
#include "esphome/core/helpers.h"
|
||||
#include <esp_now.h>
|
||||
|
||||
#include <array>
|
||||
#include <memory>
|
||||
#include <queue>
|
||||
#include <vector>
|
||||
#include <mutex>
|
||||
#include <map>
|
||||
|
||||
namespace esphome {
|
||||
namespace espnow {} // namespace espnow
|
||||
} // namespace esphome
|
||||
|
||||
#endif
|
Loading…
Reference in a new issue