Edgar Ochoa
/
ProyectoNivel
Proyecto Nivel, Edgar Ochoa, Erik Garcia
versionerik.h@17:11ceb54a2e7d, 2016-02-12 (annotated)
- Committer:
- through
- Date:
- Fri Feb 12 13:35:53 2016 +0000
- Revision:
- 17:11ceb54a2e7d
- Parent:
- 16:7e0223097f77
- Child:
- 22:de1ab79df237
version erik 2
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
through | 10:76ab6531ba6f | 1 | #ifndef versionerik |
through | 10:76ab6531ba6f | 2 | #define versionerik |
through | 10:76ab6531ba6f | 3 | #include "mbed.h" |
through | 10:76ab6531ba6f | 4 | |
through | 17:11ceb54a2e7d | 5 | void erik_nivel(){ |
through | 17:11ceb54a2e7d | 6 | |
through | 17:11ceb54a2e7d | 7 | r = 1.0 - abs(data[0]/16500.0); |
through | 17:11ceb54a2e7d | 8 | g = 1.0 - abs(data[1]/16500.0); |
through | 17:11ceb54a2e7d | 9 | b = 1.0 - abs(data[2]/16500.0); |
through | 17:11ceb54a2e7d | 10 | |
through | 16:7e0223097f77 | 11 | |
through | 17:11ceb54a2e7d | 12 | pc.printf("%d,%d,%d,\n",data[0],data[1],data[2]); |
through | 17:11ceb54a2e7d | 13 | |
through | 17:11ceb54a2e7d | 14 | wait(0.4); |
through | 17:11ceb54a2e7d | 15 | |
through | 17:11ceb54a2e7d | 16 | if(){ |
through | 17:11ceb54a2e7d | 17 | |
through | 17:11ceb54a2e7d | 18 | |
through | 17:11ceb54a2e7d | 19 | } |
through | 16:7e0223097f77 | 20 | } |
through | 16:7e0223097f77 | 21 | |
through | 10:76ab6531ba6f | 22 | #endif |