Skip to content

Instantly share code, notes, and snippets.

View xxv's full-sized avatar
😻
🌯💖

Steve Pomeroy xxv

😻
🌯💖
View GitHub Profile
@pdp7
pdp7 / HS18 badge: magic 8 ball micropython app.py
Created October 2, 2018 02:28
Steve Pomeroy (xxv) wrote a day ago I put together a quick sample app to try out the cap touch buttons and e-paper display. It's just a magic 8-ball :-) https://xxv.so/0x0558caab I installed it by turning the badge to FTP mode, uploading it to the apps directory, then power-cycling the device.
import gxgde0213b1
import font16
import font12
import urandom
phrases = ["It is certain.", "It is decidedly so.", "Without a doubt.", "Yes - definitely.", "You may rely on it.", "As I see it, yes.", "Most likely.", "Outlook good.", "Yes.", "Signs point to yes.", "Reply hazy, try again", "Ask again later.", "Better not tell you now.", "Cannot predict now.", "Concentrate and ask again.", "Don't count on it.", "My reply is no.", "My sources say no.", "Outlook not so good.", "Very doubtful."]
epd.clear_frame(fb)
epd.set_rotate(gxgde0213b1.ROTATE_270)
@mbostock
mbostock / .block
Last active June 1, 2020 04:23
AlbersUSA + PR
license: gpl-3.0
redirect: https://observablehq.com/@d3/u-s-map-with-puerto-rico