Skip to content

Instantly share code, notes, and snippets.

gigawatts

Block or report user

Report or block gigawatts

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gigawatts
gigawatts / moved
Last active Apr 24, 2019
Cyphercon 4
View moved
Moved to https://github.com/gigawatts/cyphercon4
@gigawatts
gigawatts / thot8_rgb.ino
Created May 8, 2017
thotcon 0x8 badge RGB demo
View thot8_rgb.ino
// RGB demo on the Thotcon 0x8 badge
// Board type: Arduino Leonardo
#include "FastLED.h"
#define NUM_LEDS 4
#define DATA_PIN 11
// Define the array of leds
CRGB leds[NUM_LEDS];
View extract_mpm_version.sh
#!/bin/bash
## Extract version from MPM hex or img update file
## Run with no arguments for usage
function hex2string () {
I=0
while [ $I -lt ${#1} ];
do
echo -en "\x"${1:$I:2}
let "I += 2"
View mpm lock key codes.txt
# xmodmap
xmodmap: up to 4 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x69)
mod1 Alt_L (0x40), Alt_R (0x6c), Meta_L (0xcd)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf)
@gigawatts
gigawatts / ppm2mph.ino
Last active Oct 13, 2015
Arduino PPM to MPH sketch
View ppm2mph.ino
// PPM MPH readout for Futaba BTTF remote
// Using a Seeed Studio 4-Digit 7 segment display (Part Number: LED05291P)
#include "TM1637.h"
#define CLK 2 //pins definitions for TM1637 and can be changed to other ports
#define DIO 3
TM1637 tm1637(CLK,DIO);
#define chantotal 1 //How many channels on your radio?
#define chanthr 1 // Which channel should we listen to?
@gigawatts
gigawatts / hackaday-logo
Created Oct 29, 2013
The Hackaday.com logo made with 6 custom characters
View hackaday-logo
You can’t perform that action at this time.