Moved to https://github.com/sivar2311/platform-espressif32-versions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Required libraries and their dependencies: | |
| * | |
| * SinricPro (https://github.com/sinricpro/esp8266-esp32-sdk) | |
| * -> WebSockets (https://github.com/Links2004/arduinoWebSockets) | |
| * -> ArduinoJson (https://github.com/bblanchon/ArduinoJson) | |
| * | |
| * ESP32-NimBLE-Keyboard (https://github.com/sivar2311/ESP32-NimBLE-Keyboard) | |
| * -> NimBLE-Arduino (https://github.com/h2zero/NimBLE-Arduino) | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <Arduino.h> | |
| #include <map> | |
| using KbdLayout = std::map<uint8_t, uint8_t>; | |
| // standard US layout | |
| #define SHIFT 0x80 | |
| KbdLayout std_layout{ | |
| {0x08, 0x2a}, // BS Backspace | |
| {0x09, 0x2b}, // TAB Tab |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <Arduino.h> | |
| #include <ESP8266WiFi.h> | |
| #include <SinricPro.h> | |
| #include <SinricProLight.h> | |
| #include <map> | |
| #define WIFI_SSID "YOUR-WIFI-SSID" | |
| #define WIFI_PASS "YOUR-WIFI-PASS" | |
| #define APP_KEY "YOUR-APPKEY" // Should look like "de0bxxxx-1x3x-4x3x-ax2x-5dabxxxxxxxx" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <Arduino.h> | |
| #include "MotorEncoder.h" | |
| MotorEncoder::MotorEncoder(int motorPinA, int MotorPinB, int encoderPin) | |
| : motorPinA(motorPinA) | |
| , motorPinB(motorPinB) | |
| , encoderPin(encoderPin) { | |
| pinMode(motorPinA, OUTPUT); | |
| pinMode(motorPinB, OUTPUT); | |
| pinMode(encoderPin, INPUT); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifndef _BLEDEVICECOUNTER_H_ | |
| #define _BLEDEVICECOUNTER_H_ | |
| #include <SinricProDevice.h> | |
| #include <Capabilities/RangeController.h> | |
| class BLEDeviceCounter | |
| : public SinricProDevice | |
| , public RangeController<BLEDeviceCounter> { | |
| friend class RangeController<BLEDeviceCounter>; |
OlderNewer