Skip to content

Instantly share code, notes, and snippets.

@ddrager
ddrager / ring_power_display.ino
Created April 18, 2019 01:08
Wired up a neopixel "ring" LED light to a esp8266 with oled readout. This code grabs data from my local HomeAssistant server, and displays it on the oled display, as well as changing the ring's color depending on home energy usage. It was a cool little project to hack together!
// ring_power_display.ino
//
// Libraries needed:
// Time.h & TimeLib.h: https://github.com/PaulStoffregen/Time
// Timezone.h: https://github.com/JChristensen/Timezone
// SSD1306.h & SSD1306Wire.h: https://github.com/squix78/esp8266-oled-ssd1306
// NTPClient.h: https://github.com/arduino-libraries/NTPClient
// ESP8266WiFi.h & WifiUDP.h: https://github.com/ekstrand/ESP8266wifi
@ddrager
ddrager / gesture.json
Created February 6, 2019 09:21
Deepin Linux Touchpad Config - Including 3 tap for middle button click. /usr/share/dde-daemon/gesture.json
[
{
"Name": "tap",
"Direction": "none",
"Fingers": 3,
"Action": {
"Type": "commandline",
"Action": "xdotool click 2"
}
},

Keybase proof

I hereby claim:

  • I am ddrager on github.
  • I am ddrager (https://keybase.io/ddrager) on keybase.
  • I have a public key whose fingerprint is F4B7 1682 363E 8BF7 4C70 67DE 776D B09E 91F9 42BD

To claim this, I am signing this object: