Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Robert C Edwards robertcedwards

🎯
Focusing
View GitHub Profile
@robertcedwards
robertcedwards / gist:8700184
Last active Aug 29, 2015
Channel A Data sent via transmitter for outlets. On/off for 3 devices, All on, All off
View gist:8700184
Device 1:
On:10001000001001000000010100
Off:01001000001001000000010100
Device 2:
On:10001000001000100000010100
Off:01001000001000100000010100
Device 3:
On:10001000001001100000010100
View gist:8700244
Device 1:
Received 35754004 / 26bit Protocol: 1
Received 18976788 / 26bit Protocol: 1
Device 2:
Received 35751956 / 26bit Protocol: 1
Received 18974740 / 26bit Protocol: 1
Device 3:
Received 35756052 / 26bit Protocol: 1
View gist:8700266
Device 1:
Received 35819540 / 26bit Protocol: 1
Received 19042324 / 26bit Protocol: 1
Device 2:
Received 35817492 / 26bit Protocol: 1
Received 19040276 / 26bit Protocol: 1
Device 3:
Received 35821588 / 26bit Protocol: 1
@robertcedwards
robertcedwards / gist:9204339
Created Feb 25, 2014
Ninja Block 434 motion sensor read #1
View gist:9204339
Decimal: 5592405 (24Bit)
Binary: 010101010101010101010101
Tri-State: FFFFFFFFFFFF
PulseLength: 508 microseconds
Protocol: 1
Raw data: 15764,500,1532,1516,516,500,1532,1516,516,504,1528,1516,516,500,1532,1516,516,500,1532,1516,516,500,1532,1516,516,500,1532,1516,516,500,1532,1516,516,500,1532,1516,516,500,1536,1512,516,500,1536,1512,516,500,1536,1512,516,
View install_ntp_BBB.sh
opkg update
opkg list|grep ntp
opkg install ntp
date
@robertcedwards
robertcedwards / serial_mqtt.py
Created Apr 7, 2014
Smashed the serial echo demo from PyBBIO into the MQTT BBB example from Mosquitto…boom, serial to MQTT on the BBB
View serial_mqtt.py
# serial_echo.py - Alexander Hiam - 4/15/12
#
# Prints all incoming data on Serial2 and echos it back.
#
# Serial2 TX = pin 21 on P9 header
# Serial2 RX = pin 22 on P9 header
#
# This example is in the public domain
from bbio import *
View .bash_profile
### Aliases
# Open specified files in Sublime Text
# "s ." will open the current directory in Sublime
alias s='open -a "Sublime Text"'
# Color LS
colorflag="-G"
alias ls="command ls ${colorflag}"
alias l="ls -lF ${colorflag}" # all files, in long format
View gist:10813939
source: .
destination: ./_site
plugins: ./_plugins
layouts: ./_layouts
include: ['.htaccess']
exclude: []
keep_files: ['.git','.svn']
gems: []
timezone: nil
encoding: nil
@robertcedwards
robertcedwards / gist:11061467
Created Apr 18, 2014
Audio option for Kinobo
View gist:11061467
options snd-usb-audio index=0
View gist:8f4c692bae6f59eb23de
sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction