Skip to content

Instantly share code, notes, and snippets.

View PhirePhly's full-sized avatar

Kenneth Finnegan PhirePhly

View GitHub Profile
@PhirePhly
PhirePhly / LCDClock.c
Created February 6, 2011 21:04
Low Power LCD Clock - MSP430G2231
// Low-power LCD Clock
// Kenneth Finnegan, 2011
// http://kennethfinnegan.blogspot.com/
#include "msp430G2231.h"
// Pin Assignments
#define MOSI 0
#define SCK 1
@PhirePhly
PhirePhly / timerA.c
Created February 20, 2011 20:18
Experiment with both CC registers for Timer A on the MSP430G2231
#include <msp430g2211.h>
#define LED_0 BIT0
#define LED_1 BIT6
#define LED_OUT P1OUT
#define LED_DIR P1DIR
@PhirePhly
PhirePhly / NixieTemp.c
Created April 15, 2011 06:32
Nixie Tube based thermometer
// Kenneth Finnegan, 2011
// kennethfinnegan.blogspot.com
//
// Nixie Thermometer
// Reads DS1631 I2C thermometer and displays on
// three 74141 decoded Nixie tubes connected
// directly to the ATTiny2313 I/O ports
//
// Pinout on ATTiny2313
// Digit 1: PB[0-3]
@PhirePhly
PhirePhly / IR_Rcvr.c
Created April 26, 2011 23:17
MSP430 IR Serial Demo
// Simple IR Receiver
// Kenneth Finnegan, 2011
// kennethfinnegan.blogspot.com
//
// Pinout:
// P1.[0..7] - Common anode 7 segment display w/ decimal
// P2.5 - 38kHz IR receiver
#include <msp430g2252.h>
@PhirePhly
PhirePhly / 0004f2175b35.cfg
Created May 27, 2011 02:42
Polycom IP Config files
<?xml version="1.0" standalone="yes"?>
<!-- Make one of these for each phone, changing only the first .cfg file with per-phone settings. -->
<APPLICATION APP_FILE_PATH="sip.ld" CONFIG_FILES="x7653.cfg, sipserver.cfg"
MISC_FILES="" LOG_FILE_DIRECTORY="/log" OVERRIDES_DIRECTORY="/overrides" CONTACTS_DIRECTORY="/contacts"/>
@PhirePhly
PhirePhly / D01.txt
Created September 16, 2011 03:12
FastPort Model 3100CXPlus
%!PS-Adobe-3.0
/TopOfPage 10.75 72 mul def
/LeftMargin 0.3 72 mul def
0.1 setgray
3 setlinewidth
10 730 moveto
570 730 lineto
10 727 moveto
570 727 lineto
10 730 lineto
MillPWR Text File
FormatVersion = 3.0
DimensionUnits = INCH
FeedRateUnits = INCH
AngleFormat = DEGREES
Steps = 011
StepOver = 0
NumberOfCycles = TRUE
@PhirePhly
PhirePhly / numitron.c
Created December 9, 2011 06:38
Simple counting proof of concept of a Numitron tube
// Kenneth Finnegan, 2011 - kennethfinnegan.blogspot.com
// Numitron Proof of Concept
#include <avr/io.h> // this contains all the IO port definitions
#include <util/delay.h>
// This function basically wastes time
void delay_ms(long int ms) {
for( ; ms > 0; ms--) {
_delay_ms( 1);
@PhirePhly
PhirePhly / morningreport.sh
Created January 15, 2012 06:16
A simple example of how to use cron and bash to generate prowl notifications
#!/bin/sh
# Kenneth Finnegan, 2012
# kennethfinnegan.blogspot.com
# Posts growl notifications to iOS device using prowl & curl
#
# To have run by cron at 8:30 daily, add the following to your crontab
# 30 8 * * * /mnt/storage/scripts/morningreport.sh
#!/bin/sh
# Kenneth Finnegan, 2012
# kennethfinnegan.blogspot.com
# Posts growp notifications to iOS device using prowl
# without using curl or POST feature of wget
# Particularly targeted at WRT54G routers
# Depends on http://gimi.name/snippets/uploads/urlencode.sed
# Which is just a giant list of sed commands to encode to hex