Button | Hex |
---|---|
Power | BD807F |
Up-Cup | BD0AF5 |
Down-Cup | BD8A75 |
Previous | BD1AE5 |
Next | BDEA15 |
Play/pause | BDFA05 |
Source | BD20DF |
Up | BDD02F |
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> | |
// same version as dronebot 433 video | |
#include <RH_ASK.h> | |
#include <SPI.h> | |
RH_ASK rf_driver; | |
void setup() { | |
rf_driver.init(); | |
Serial.begin(9600); |
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> | |
// version 6 | |
#include <ArduinoJson.h> | |
// same version as dronebot 433 video | |
#include <RH_ASK.h> | |
#include <SPI.h> | |
RH_ASK rf_driver; | |
void setup() { |
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
Array.from(document.querySelectorAll('[aria-label="Toggle diff contents"]')).forEach(el => el.click()) |
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
function addScript(src) { | |
const s = document.createElement('script'); | |
s.setAttribute('src', src); | |
document.body.appendChild(s); | |
} | |
document.querySelector('pre') && addScript('https://zvakanaka.github.io/console-log/console-log.js'); | |
setTimeout(() => { | |
const el = document.querySelector('pre'); | |
if (el) { | |
const cl = document.createElement('console-log'); |
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 <Keyboard.h> | |
using namespace std; | |
// you MUST install ArduinoSTL library by Mike Matera | |
#define KEY_DELAY 200 | |
// pins 2, 3, 4, 5, 6, 7, 8, 9, 10, 16 | |
#define KEY0 2 | |
#define KEY2 3 | |
#define KEY3 4 | |
#define KEY4 5 |
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 <Wire.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_SSD1306.h> | |
#include <stdbool.h> | |
#include "uRTCLib.h" | |
#define SCREEN_WIDTH 128 // OLED display width, in pixels | |
#define SCREEN_HEIGHT 64 // OLED display height, in pixels |
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 <ESP8266WiFi.h> | |
#include <PubSubClient.h>// Download and install this library first from: https://www.arduinolibraries.info/libraries/pub-sub-client | |
#include <WiFiClient.h> | |
#include <Servo.h> | |
#define SSID_NAME "" // Your Wifi Network name | |
#define SSID_PASSWORD "" // Your Wifi network password | |
#define MQTT_BROKER "smartnest.cz" // Broker host | |
#define MQTT_PORT 1883 // Broker port | |
#define MQTT_USERNAME "" // Username from Smartnest |