Skip to content

Instantly share code, notes, and snippets.

@theapi
theapi / blink_fade.ino
Created June 12, 2014 08:56
Blink Fade without delay
@theapi
theapi / .avrduderc
Created August 4, 2014 22:19
Setting for Arduino IDE to slow down the USBASP programmer for the ATTINY85 at 1mhz
default_bitclock = 10;
@theapi
theapi / reset.php
Created September 23, 2014 18:13
Reset button for MythTv
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or
g/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Reset XBMC</title>
<link rel="shortcut icon" href="/reset_xbmc.ico">
<style>
input#reset{
width:200px; /*same as the height*/
@theapi
theapi / boards.txt
Last active August 29, 2015 14:17
ATmega328 on a breadboard (8 MHz internal clock)
atmega328bb.name=ATmega328 on a breadboard (8 MHz internal clock)
atmega328bb.upload.protocol=stk500
atmega328bb.upload.maximum_size=30720
atmega328bb.upload.speed=57600
atmega328bb.bootloader.low_fuses=0xE2
atmega328bb.bootloader.high_fuses=0xDA
atmega328bb.bootloader.extended_fuses=0x05
atmega328bb.bootloader.path=arduino:atmega
atmega328bb.bootloader.file=ATmegaBOOT_168_atmega328_pro_8MHz.hex
// spi.c
//
// Example program for bcm2835 library
// Shows how to interface with SPI to transfer a byte to and from an SPI device
//
// After installing bcm2835, you can build this
// with something like:
// gcc -o spi spi.c -l bcm2835
// sudo ./spi
//