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
// 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 | |
// |
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
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 |
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
<!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*/ |
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
default_bitclock = 10; |
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
const byte ledPin = 13; // the number of the LED pin | |
const byte fadeLed = 11; | |
// Variables will change : | |
int ledState = LOW; // ledState used to set the LED | |
// Generally, you shuould use "unsigned long" for variables that hold time | |
// The value will quickly become too large for an int to store |
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
// see http://people.ece.cornell.edu/land/courses/ece4760/labs/s2012/Sched1GCC644.c | |
// see http://people.ece.cornell.edu/land/courses/ece4760/Timers/index.html | |
//********************************************************** | |
//timer 0 compare ISR | |
ISR (TIMER0_COMPA_vect) | |
{ | |
// Called every millis | |
// 75 cycles in |
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
/* | |
Shift Register Example | |
for 74HC595 shift register | |
*/ | |
//Pin connected to latch pin (ST_CP) of 74HC595 | |
const int latchPin = 13; | |
//Pin connected to clock pin (SH_CP) of 74HC595 | |
const int clockPin = 12; | |
////Pin connected to Data in (DS) of 74HC595 |
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 F_CPU 16000000L | |
#include <avr/io.h> | |
#include <util/delay.h> | |
#define PIN_DATA PB0 // DS | |
#define PIN_CLOCK PB1 // SH_CP | |
#define PIN_LATCH PB2 // ST_CP | |
// From Android.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
/* | |
* main.c | |
* ATmega328p port manipulation | |
*/ | |
/******************************************************************************** | |
Includes | |
********************************************************************************/ | |
#include <avr/io.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
/* | |
* main.c | |
* | |
* Created on: 19 Jan 2014 | |
* Author: peter | |
*/ | |
//#define F_CPU 16000000L | |
#include <avr/io.h> | |
#include <util/delay.h> |
NewerOlder