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
| # Tweeting Letterbox | |
| # by James Medd | |
| # November 2012 (original version) | |
| # http://jamesmedd.co.uk/ | |
| #!/usr/bin/python | |
| import picamera | |
| import RPi.GPIO as GPIO | |
| import sys |
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
| #include "DigiKeyboard.h" | |
| int tilt = 0; | |
| int leftUp = 1; | |
| int rightDown = 2; | |
| void setup() { | |
| pinMode(tilt, INPUT); | |
| pinMode(leftUp, INPUT); | |
| pinMode(rightDown, INPUT); |
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
| #include "UnoJoy.h" | |
| int up = 2; | |
| int down = 3; | |
| int left = 4; | |
| int right = 5; | |
| int ab = 6; | |
| int slct = 7; //setting this pin HIGH/LOW reads A/B and Start/C | |
| int startc = 8; |
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
| Verifying that +jamesmedd is my blockchain ID. https://onename.com/jamesmedd |
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
| /* | |
| 1) DEMINIFY THE BIG LINE OF JAVASCRIPT THAT IS THE TWINE ENGINE | |
| 2) FIND 'function d()' | |
| 3) BETWEEN 'window.clearInterval(a)' and 'if (c.onComplete)' paste this line | |
| */ | |
| document.getElementsByTagName('a')[0].focus(); |
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
| var t; | |
| function idleOut() { | |
| window.location = 'index.html'; | |
| } | |
| function resetTimer() { | |
| console.log("Reset"); | |
| clearTimeout(t); | |
| t = setTimeout(idleOut, 10000) | |
| } | |
| document.onmousemove = resetTimer; |
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
| #include <Bounce2.h> | |
| #include "MIDIUSB.h" | |
| int numButtons = 8; | |
| int lowButton = 2; | |
| int buttonPin = 3; | |
| Bounce bouncer[8] = { | |
| Bounce(2, 5), | |
| Bounce(3, 5), |
OlderNewer