This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| mkvmerge -o output.mkv --forced-track 0:no -d 0 -A -S -T --no-global-tags --no-chapters input.264 --track-order 0:0 |
This file contains hidden or 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
| #!/bin/sh | |
| # apt-get install inotify-tools | |
| # apt-get install mkvtoolnix | |
| WATCHED_DIR="/mnt/sda1/cctv/videos" | |
| echo "Watching directory: $WATCHED_DIR for new files" | |
| inotifywait -m -q -e create -r "$WATCHED_DIR" --format "%w%f" | | |
| while read file |
This file contains hidden or 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
| <?php | |
| /** | |
| * @file | |
| * drush command. | |
| */ | |
| /** | |
| * Implementation of hook_drush_command(). | |
| * |
This file contains hidden or 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 | |
| # Thanks to http://www.youtube.com/watch?v=Dc16mKFA7Fo | |
| import time | |
| import RPi.GPIO as GPIO | |
| GPIO.setmode(GPIO.BOARD) | |
| ControlPin = [18,22,24,26] |
OlderNewer