Cubic Hand project for EECS 249A course.
Dependencies: MMA8451Q TSI cc3000_hostdriver_mbedsocket NVIC_set_all_priorities mbed Multi_WS2811
led.cpp@2:45b90e8d7d82, 2014-12-05 (annotated)
- Committer:
- joseoyola
- Date:
- Fri Dec 05 20:59:10 2014 +0000
- Revision:
- 2:45b90e8d7d82
- Child:
- 5:41f28ce7f5a9
Added led.cpp and some defines to main.h
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
joseoyola | 2:45b90e8d7d82 | 1 | /* |
joseoyola | 2:45b90e8d7d82 | 2 | * LED Cube library |
joseoyola | 2:45b90e8d7d82 | 3 | * by Jose Oyola and Robert Bui |
joseoyola | 2:45b90e8d7d82 | 4 | * UC Berkeley 2014 |
joseoyola | 2:45b90e8d7d82 | 5 | */ |
joseoyola | 2:45b90e8d7d82 | 6 | |
joseoyola | 2:45b90e8d7d82 | 7 | #include "main.h" |
joseoyola | 2:45b90e8d7d82 | 8 | #include "mbed.h" |
joseoyola | 2:45b90e8d7d82 | 9 | |
joseoyola | 2:45b90e8d7d82 | 10 | |
joseoyola | 2:45b90e8d7d82 | 11 | void move(deltaX, deltaY, deltaZ) { |
joseoyola | 2:45b90e8d7d82 | 12 | if(pos[Y] == 0 || pos[Z] == 9) { |
joseoyola | 2:45b90e8d7d82 | 13 | } |