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
[ | |
{ | |
"name": "ISO TKL Tenkeyless", | |
"author": "http://www.keyboard-layout-editor.com/#/gists/741ec1a626b0bf0e5df8df2bdc9813d1" | |
}, | |
[ | |
"Esc", | |
{ | |
"x": 1 | |
}, |
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
[ | |
{ | |
"name": "ISO 105", | |
"author": "http://www.keyboard-layout-editor.com/#/gists/b65198692403cf9752ac7da364cb96c3" | |
}, | |
[ | |
"Esc", | |
{ | |
"x": 1 | |
}, |
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
[ | |
{ | |
"name": "ANSI 104", | |
"author": "http://www.keyboard-layout-editor.com/#/gists/9bf9eea417665d2f24edbab0bb87bb04" | |
}, | |
[ | |
"Esc", | |
{ | |
"x": 1 | |
}, |
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
[ | |
{ | |
"name": "ANSI TKL Tenkeyless", | |
"author": "http://www.keyboard-layout-editor.com/#/gists/3c0d9098a34f1381fb34f21fb115e93a" | |
}, | |
[ | |
"Esc", | |
{ | |
"x": 1 | |
}, |
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
[ | |
{ | |
"name": "Planck", | |
"author": "http://www.keyboard-layout-editor.com/#/gists/0ab43ed5647a133cc5b0415ba9e02665" | |
}, | |
[ | |
{ | |
"a": 7 | |
}, | |
"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
// Mostly copied from http://randomnerdtutorials.com | |
// New stuff is the on/off logic | |
#include <ESP8266WiFi.h> | |
const char* ssid = "..."; | |
const char* password = "..."; | |
const char* resource_on = "/trigger/[IFTTT_APPLET_ID_TO_TURN_ON]/with/key/xxxxxxx"; | |
const char* resource_off = "/trigger/[IFTTT_APPLET_ID_TO_TURN_OFF]/with/key/xxxxxxx"; | |
const char* server = "maker.ifttt.com"; |
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 <BLEAddress.h> | |
#include <BLEDevice.h> | |
#include <BLEUtils.h> | |
#include <BLEScan.h> | |
#include <BLEAdvertisedDevice.h> | |
#include <U8x8lib.h> | |
int scanTime = 15; | |
// https://thejeshgn.com/2017/06/20/reverse-engineering-itag-bluetooth-low-energy-button/ |
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
import binascii | |
from bluepy import btle | |
from bluepy.btle import DefaultDelegate | |
class MyDelegate(btle.DefaultDelegate): | |
def __init__(self, params): | |
btle.DefaultDelegate.__init__(self) | |
def handleNotification(self, cHandle, data): | |
print "SOMETHING HAPPENED %s" % (binascii.hexlify(data)) |
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
# First, go get the stock firmware from the [TP-Link site](https://static.tp-link.com/2018/201803/20180316/Archer%20C9(US)_V3_171215.zip). | |
# Then unzip it and cd into the resulting directory. | |
$ ls -l | |
total 14956 | |
-rw-r--r-- 1 miket miket 14820016 Dec 15 2017 c9v4_eu-us-ca_up_1-3-1-20171215rel35219.bin | |
-rw-r--r-- 1 miket miket 112046 Sep 14 2015 'GPL License Terms.pdf' | |
-rw-r--r-- 1 miket miket 373590 Oct 14 2016 'How to upgrade TP-LINK Wireless AC Router.pdf' | |
$ binwalk c9v4_eu-us-ca_up_1-3-1-20171215rel35219.bin |
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 <WEMOS_SHT3X.h> | |
#include "Adafruit_MQTT.h" | |
#include "Adafruit_MQTT_Client.h" | |
/************************* WiFi Access Point *********************************/ | |
#define WLAN_SSID "my-ssid" | |
#define WLAN_PASS "my-wifi-password" |