Edgar Ochoa
/
ProyectoNivel
Proyecto Nivel, Edgar Ochoa, Erik Garcia
Ochoa.h@18:d02a42c965a0, 2016-02-12 (annotated)
- Committer:
- verden32
- Date:
- Fri Feb 12 13:34:46 2016 +0000
- Revision:
- 18:d02a42c965a0
- Parent:
- 15:9bd3eb94c3d8
- Child:
- 19:740f78af2ece
definiendo colores
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
verden32 | 15:9bd3eb94c3d8 | 1 | #ifndef OCHOA |
verden32 | 15:9bd3eb94c3d8 | 2 | #define OCHOA |
verden32 | 14:867038a3f806 | 3 | |
verden32 | 14:867038a3f806 | 4 | #include "mbed.h" |
verden32 | 18:d02a42c965a0 | 5 | |
verden32 | 18:d02a42c965a0 | 6 | r = 1.0 - abs(data[0]/16500.0); |
verden32 | 18:d02a42c965a0 | 7 | g = 1.0 - abs(data[1]/16500.0); |
verden32 | 18:d02a42c965a0 | 8 | b = 1.0 - abs(data[2]/16500.0); |
verden32 | 18:d02a42c965a0 | 9 | |
verden32 | 18:d02a42c965a0 | 10 | |
verden32 | 18:d02a42c965a0 | 11 | pc.printf("%d,%d,%d,\n",data[0],data[1],data[2]); |
verden32 | 18:d02a42c965a0 | 12 | |
verden32 | 14:867038a3f806 | 13 | |
verden32 | 14:867038a3f806 | 14 | #endif |