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
| /** | |
| silvio paganini | s2paganini.com | |
| @silviopaganini | |
| **/ | |
| const int pins[] = {11, 10, 9, 6, 5, 3}; | |
| int SIZE = 6; | |
| void setup() | |
| { |
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 <Servo.h> | |
| Servo servo; | |
| int btnPin = 2; | |
| int lightPins[] = {3, 5, 6}; | |
| int serPin = 11; | |
| int pos = 0; | |
| void setup() |
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
| package cacilds | |
| { | |
| import cacilds.workers.WorkerEnterFrame; | |
| import flash.display.Sprite; | |
| import flash.events.Event; | |
| import flash.system.MessageChannel; | |
| import flash.system.Worker; | |
| import flash.system.WorkerDomain; | |
| /** |
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
| Main.as | |
| function init() : void | |
| { | |
| // Set the Workers Manager the swf bytes | |
| Workr.bytesMain = loaderInfo.bytes; | |
| // initiate the singleton | |
| workr = Workr.getInstance(); |
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
| /* | |
| USAGE: | |
| img = new SSAsset( | |
| { | |
| fullSize : [512, 512] | |
| x : 0, | |
| y : 0, | |
| width : 100, |
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
| class DistortImage | |
| _w : null | |
| _h : null | |
| _hseg : null | |
| _vseg : null | |
| _p : null | |
| _tri : null | |
| _xMin : null | |
| _xMax : null |
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
| ### | |
| silvio paganini | s2paganini | @silviopaganini | |
| Thanks to https://github.com/jashkenas | |
| ### | |
| ### -------------- INIT VARS -------------- ### |
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/bash | |
| # clean up any old HTML | |
| for a in `ls -a *.html` | |
| do | |
| rm $a | |
| done | |
| # create array with the images | |
| array=( $( ls -a *.png *.jpg ) ) |
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
| #define REDPIN 5 | |
| #define GREENPIN 6 | |
| #define BLUEPIN 3 | |
| #define GOAL_REPEAT 20 // how many times to flash when someone scores | |
| #define DETECT_RIGHT A0 | |
| #define DETECT_LEFT A1 | |
| boolean goal; |
OlderNewer