Skip to content

Instantly share code, notes, and snippets.

View mcauser's full-sized avatar

Mike Causer mcauser

View GitHub Profile
@mcauser
mcauser / .ssh config
Created January 20, 2014 02:30
.ssh config
ServerAliveInterval 60
ServerAliveCountMax 60
@mcauser
mcauser / gist:02442041c1b0987976b9
Created September 13, 2014 02:05
raspi - spidev_test.c
/*
* SPI testing utility (using spidev driver)
*
* Copyright (c) 2007 MontaVista Software, Inc.
* Copyright (c) 2007 Anton Vorontsov <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License.
*
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
@mcauser
mcauser / Loot
Created March 2, 2015 22:54
Loot
1x Grove - 125KHz RFID Reader
2x Grove - 3-Axis Digital Accelerometer(±1.5g)
2x Grove - 3-Axis Digital Accelerometer(±16g)
1x Grove - 315MHz Simple RF Link Kit
1x Grove - 433MHz Simple RF Link Kit
2x Grove - Button
2x Grove - Buzzer
2x Grove - 4-Digit Display
1x Grove - Dry-Reed Relay
1x Grove - Electricity Sensor
@mcauser
mcauser / seeeduino-mega-timeout-sketch.ino
Created July 28, 2015 13:25
seeeduino mega timeout sketch
/* ====== ESP8266 Demo ======
* Print out analog values
* (Updated Dec 14, 2014)
* ==========================
*
* Change SSID and PASS to match your WiFi settings.
* The IP address is displayed to soft serial upon successful connection.
*
* Ray Wang @ Rayshobby LLC
* http://rayshobby.net/?p=9734
@mcauser
mcauser / seeeduino-mega-timeout-log.txt
Created July 28, 2015 13:27
seeeduino mega timeout log
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/mega /var/folders/69/jl49sp2n22d2c1sm2pb3_v340000gn/T/build7698589463435088303.tmp/sketch_jul11a.cpp -o /var/folders/69/jl49sp2n22d2c1sm2pb3_v340000gn/T/build7698589463435088303.tmp/sketch_jul11a.cpp.o
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc -c -g -x assembler-with-cpp -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/mega /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/
@mcauser
mcauser / seeeduino-mega-timeout-problem.txt
Last active August 29, 2015 14:26
seeeduino mega timeout problem
Seeeduino Mega Timeout Problem
I have a sketch that fails to upload successfully each and every time.
Other simple sketches work fine.
Setup
* Arduino IDE 1.6.5
* Installed Seeeduino boards: https://raw.githubusercontent.com/Seeed-Studio/Seeeduino-Boards/master/package_seeeduino_index.json
* Show verbose output during compilation and upload
* Mac OS X Yosemite 10.10.2
* Seeeduino Mega connected to iMac via Mini-USB
@mcauser
mcauser / gist:aa81a8247d26adcabb4c
Created September 16, 2015 04:30
annoying crons
crontab -l | { cat; echo "* * * * * say it is now \$(date '+\%l \%M \%p')"; } | crontab -
@mcauser
mcauser / frozen.c
Created May 12, 2016 15:50
micropython/micropython - /esp8266/build/frozen.c with .DS_Store in /esp8266/scripts
#include <stdint.h>
const char mp_frozen_str_names[] = {
".DS_St\0"
"_boot\0"
"flashbdev\0"
"hd44780\0"
"i2c_lcd\0"
"i2c_lcd_test\0"
"inisetup\0"
"neopixel\0"
Quad version of the WS2812B RGB SHIELD