This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "LPD8806.h" | |
#include "SPI.h" | |
// Example to control LPD8806-based RGB LED Modules in a strip | |
/*****************************************************************************/ | |
// Number of RGB LEDs in strand: | |
int nLEDs = 32; | |
// number that we will not be writing to |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// arc is defined by the inner radius | |
small = 1; | |
$fa = 4; | |
//$fs = 1; | |
segmentInnerRadius = 300; | |
segmentArc = 10; // degrees | |
segmentWidth = 40; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Picasa sometimes duplicates imports and it adds a -NNN | |
# suffix (older versions seemed to use -N). This code | |
# finds files with this naming scheme, and looks for the base | |
# file in the same dirctory. If it finds the base, and the | |
# base has the same length, same md5 hash, the duplicate | |
# is suggested for deletion. | |
# Output is a set of 'rm <filename>' commands that can |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <unistd.h> | |
#include <sys/types.h> | |
#include <netinet/in.h> | |
#include <net/if.h> | |
#include <sys/socket.h> | |
#include <sys/un.h> | |
#include <arpa/inet.h> | |
#include <errno.h> | |
#include <stdio.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gaugette.ssd1306 | |
from gaugette.fonts import arial_16 | |
from gaugette.fonts import arial_mono_15 | |
RESET_PIN = 15 | |
DC_PIN = 16 | |
buffer_width = 128 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <linux/i2c-dev.h> | |
#include <fcntl.h> | |
#include <string.h> | |
#include <sys/ioctl.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <unistd.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define PIN_VCC 3 | |
#define PIN_GND 4 | |
#define PIN_SENSE A0 | |
#define FORWARD 1 | |
#define REVERSE -1 | |
#define SAFE_DELAY 1000 | |
#define COUNT_DELAY 1000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Copyright (c) 2011 Guy Carpenter | |
*/ | |
#include <Arduino.h> | |
#include "Command.h" | |
#define CMDBUF_LEN 40 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This software uses a BSD license. | |
Copyright (c) 2010, Sean Cross / chumby industries & Limor Fried / adafruit industries (we are both industrious people, eh?) | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without | |
modification, are permitted provided that the following conditions | |
are met: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- bootlog.stock.tmp 2012-02-17 15:02:18.000000000 +1000 | |
+++ bootlog.2.6.28.tmp 2012-02-17 15:02:18.000000000 +1000 | |
@@ -5,37 +5,37 @@ | |
Skipping 3968 chunks | |
Jumping to address 0x40808000: | |
0x00000000 0f 00 a0 e1 08 00 40 e2 02 0a 40 e2 08 10 9f e5 |......@...@.....| | |
-0x00000010 00 00 81 e5 02 00 00 eb 25 05 00 eb 20 20 00 00 |........%... ..| | |
+0x00000010 00 00 81 e5 02 00 00 eb d8 04 00 eb 20 80 80 40 |............ ..@| | |
0x00000020 11 b1 11 c1 14 00 9f e5 14 10 9f e5 00 20 a0 e3 |............. ..| | |
0x00000030 04 20 80 e4 01 00 50 e1 fc ff ff 3a 0e f0 a0 e1 |. ....P....:....| |