introduction of "device_pool"
This commit is contained in:
parent
62386efa4d
commit
8e24963605
15 changed files with 38 additions and 17 deletions
|
@ -147,6 +147,7 @@ build_src_filter =
|
|||
+<*>
|
||||
+<../hardware/ESP32/*>
|
||||
;+<../hardware/ESP32/lib/ESP32-BLE-Keyboard/*>
|
||||
-<devices_pool/*>
|
||||
|
||||
; use this if you are using Ubuntu or WSL2 (64 bit compiler)
|
||||
[env:linux_64bit]
|
||||
|
@ -178,6 +179,7 @@ build_flags =
|
|||
build_src_filter =
|
||||
+<*>
|
||||
+<../hardware/windows_linux/*>
|
||||
-<devices_pool/*>
|
||||
|
||||
; use this if you are using Windows MSYS2 MINGW64 (64 bit compiler)
|
||||
[env:windows_64bit]
|
||||
|
|
8
Platformio/src/devices_pool/README
Normal file
8
Platformio/src/devices_pool/README
Normal file
|
@ -0,0 +1,8 @@
|
|||
|
||||
This directory is intended for a pool of devices already contributed by the community of OMOTE.
|
||||
Files in this directory won't get compiled by default.
|
||||
|
||||
If you want to use one of these devices, then
|
||||
- copy the corresponding device folder from "/src/devices_pool/..." to "/src/devices/..."
|
||||
- add the corresponding call to "register_device_*()" into 'src/main.cpp' (and include the device header file in "src/mail.cpp" as well)
|
||||
- start using the commands defined by the device, e.g. by putting them in the hardware key map of "scene__default.cpp" or of a specific scene
|
|
@ -4,20 +4,26 @@
|
|||
// init hardware and hardware loop
|
||||
#include "applicationInternal/hardware/hardwarePresenter.h"
|
||||
// register devices and their commands
|
||||
// special
|
||||
#include "devices/misc/device_specialCommands.h"
|
||||
#include "devices/TV/device_samsungTV/device_samsungTV.h"
|
||||
#include "devices/TV/device_lgTV/device_lgTV.h"
|
||||
#include "devices/mediaPlayer/device_shield/device_shield.h"
|
||||
#include "devices/AVreceiver/device_lgsoundbar/device_lgsoundbar.h"
|
||||
#include "devices/mediaPlayer/device_lgbluray/device_lgbluray.h"
|
||||
#include "devices/mediaPlayer/device_samsungbluray/device_samsungbluray.h"
|
||||
#include "devices/AVreceiver/device_yamahaAmp/device_yamahaAmp.h"
|
||||
#include "devices/AVreceiver/device_denonAvr/device_denonAvr.h"
|
||||
#include "devices/mediaPlayer/device_appleTV/device_appleTV.h"
|
||||
#include "applicationInternal/commandHandler.h"
|
||||
// keyboards
|
||||
#include "devices/keyboard/device_keyboard_mqtt/device_keyboard_mqtt.h"
|
||||
#include "devices/keyboard/device_keyboard_ble/device_keyboard_ble.h"
|
||||
// TV
|
||||
#include "devices/TV/device_samsungTV/device_samsungTV.h"
|
||||
//#include "devices/TV/device_lgTV/device_lgTV.h"
|
||||
// AV receiver
|
||||
#include "devices/AVreceiver/device_yamahaAmp/device_yamahaAmp.h"
|
||||
//#include "devices/AVreceiver/device_denonAvr/device_denonAvr.h"
|
||||
//#include "devices/AVreceiver/device_lgsoundbar/device_lgsoundbar.h"
|
||||
// media player
|
||||
#include "devices/mediaPlayer/device_appleTV/device_appleTV.h"
|
||||
//#include "devices/mediaPlayer/device_lgbluray/device_lgbluray.h"
|
||||
//#include "devices/mediaPlayer/device_samsungbluray/device_samsungbluray.h"
|
||||
//#include "devices/mediaPlayer/device_shield/device_shield.h"
|
||||
// misc
|
||||
#include "devices/misc/device_smarthome/device_smarthome.h"
|
||||
#include "applicationInternal/commandHandler.h"
|
||||
// register gui and keys
|
||||
#include "applicationInternal/gui/guiBase.h"
|
||||
#include "applicationInternal/gui/guiRegistry.h"
|
||||
|
@ -73,16 +79,21 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
// register commands for the devices
|
||||
register_specialCommands();
|
||||
// TV
|
||||
register_device_samsungTV();
|
||||
// register_device_lgTV();
|
||||
// AV receiver
|
||||
register_device_yamahaAmp();
|
||||
register_device_denonAvr();
|
||||
register_device_smarthome();
|
||||
//register_device_denonAvr();
|
||||
//register_device_lgsoundbar();
|
||||
// media player
|
||||
register_device_appleTV();
|
||||
register_device_lgTV();
|
||||
register_device_lgsoundbar();
|
||||
register_device_lgbluray();
|
||||
register_device_samsungbluray();
|
||||
register_device_shield();
|
||||
//register_device_lgbluray();
|
||||
//register_device_samsungbluray();
|
||||
//register_device_shield();
|
||||
// misc
|
||||
register_device_smarthome();
|
||||
|
||||
#if (ENABLE_KEYBOARD_MQTT == 1)
|
||||
register_device_keyboard_mqtt();
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue