Skip to content

Instantly share code, notes, and snippets.

/*
Original code come from Adafruit GPS logger shield kit - v1.1
http://www.adafruit.com/products/98
http://www.ladyada.net/make/gpsshield/download.html
All of this example Arduino code is Public Domain. Enjoy!
http://en.wikipedia.org/wiki/GNU_General_Public_License
Modified by DWHacks for use with U-blox PCI-5S.
Info about U-blox PCI-5S here: http://emerythacks.blogspot.ca/2013/01/u-blox-pci-5s-cheap-gps-module-for-your.html
Info about DWHacks: dwhacks.blogspot.com
@dwhacks
dwhacks / gpsdw
Last active December 22, 2015 16:29
#include <TinyGPS.h>
#include <SD.h>
/* This sample code demonstrates the normal use of a TinyGPS object. */
TinyGPS gps;
/* On Teensy, the UART (real serial port) is always best to use. */
/* Unlike Arduino, there's no need to use NewSoftSerial because */
/* the "Serial" object uses the USB port, leaving the UART free. */
/*not working*/
#include <TinyGPS.h>
#include <SD.h>
/* This sample code demonstrates the normal use of a TinyGPS object. */
TinyGPS gps;
/* On Teensy, the UART (real serial port) is always best to use. */
@dwhacks
dwhacks / ATtiny13a_LEDfirefly_4_8MHz.ino
Created September 13, 2013 12:22
4Mhz_LED_Firefly.ino
/*
* LED Firefly by http://dwhacks.blogspot.ca/ using attiny 13a @4.8MHz
* inspired by http://www.seanet.com/~karllunt/fireflyLED.html
* using core13 for Arduino http://sourceforge.net/projects/ard-core13/
*/
#include <avr/sleep.h>
#include <avr/wdt.h>
#ifndef cbi
@dwhacks
dwhacks / style.css
Created December 19, 2013 03:50
dwhacksstyles
/*
Theme Name: Twenty Fourteen
Theme URI: http://wordpress.org/themes/twentyfourteen
Author: the WordPress team
Author URI: http://wordpress.org/
Description: In 2014, our default theme lets you create a responsive magazine website with a sleek, modern design. Feature your favorite homepage content in either a grid or a slider. Use the three widget areas to customize your website, and change your content's layout with a full-width page template and a contributor page to show off your authors. Creating a magazine website with WordPress has never been easier.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: black, green, white, light, dark, two-columns, three-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, ac
@dwhacks
dwhacks / gist:8499803
Created January 19, 2014 02:45
cgminer
-I 15 -g 1 -w 128 --thread-concurrency 6400
@dwhacks
dwhacks / gist:8553072
Last active January 4, 2016 02:09
fade
/*Fade Up*/
for(byte i=1; i<100; i++) {
byte on = i;
byte off = 100-on;
for( byte a=0; a<100; a++ ) {
digitalWrite(led, HIGH);
delayMicroseconds(on);
digitalWrite(led, LOW);
delayMicroseconds(off);
}
int redPin = 1;
int greenPin = 4;
int bluePin = 0;
void setup()
{
pinMode(redPin, OUTPUT);
pinMode(greenPin, OUTPUT);
pinMode(bluePin, OUTPUT);
}
@dwhacks
dwhacks / BlocDrop.ino
Created January 24, 2014 18:21
blocdrop
/*
BLOC DROP: A strangely familiar falling block game
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
by David Randall Stokes (gamby@logicalzero.com) 9/05/2012
THIS IS STILL A WORK-IN-PROGRESS. The game is playable, but
the scoring doesn't work correctly.
*/
@dwhacks
dwhacks / BlocDrop.ino
Created January 25, 2014 00:50
fixedblocdrop
/*
BLOC DROP: A strangely familiar falling block game
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
by David Randall Stokes (gamby@logicalzero.com) 9/05/2012
THIS IS STILL A WORK-IN-PROGRESS. The game is playable, but
the scoring doesn't work correctly.
*/