projects
/
challenge-bot
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
642345f
)
notes for phase0 aka traffic lights
author
daniel watson
<ozzloy@gmail.com>
Sat, 26 Oct 2013 23:32:22 +0000
(16:32 -0700)
committer
daniel watson
<ozzloy@gmail.com>
Sat, 26 Oct 2013 23:32:22 +0000
(16:32 -0700)
phase0/phase0.ino
patch
|
blob
|
blame
|
history
diff --git
a/phase0/phase0.ino
b/phase0/phase0.ino
index 523ca5f5cec8e32dc0b1df41bc1ebb403a7aaf80..feb0caac8f4cc186184f8b2081fbae289f180f9c 100644
(file)
--- a/
phase0/phase0.ino
+++ b/
phase0/phase0.ino
@@
-12,6
+12,11
@@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+
+/*
+ * traffic lights
+ */
+
int red0 = 12;
int yellow0 = 11;
int green0 = 10;
int red0 = 12;
int yellow0 = 11;
int green0 = 10;
@@
-48,7
+53,7
@@
void off(int pinToTurnOff) {
}
void onsOffs(int* pinsToTurnOn, int numberOfPinsToTurnOn,
}
void onsOffs(int* pinsToTurnOn, int numberOfPinsToTurnOn,
-
int* pinsToTurnOff, int numberOfPinsToTurnOff){
+ int* pinsToTurnOff, int numberOfPinsToTurnOff){
// generic index used for arrays of pins to turn on or off
int index;
// turn off pins in pinsToTurnOff
// generic index used for arrays of pins to turn on or off
int index;
// turn off pins in pinsToTurnOff