sensor UV VEML6070, y magnetometro GY 273
Diff: SENSOR.cpp
- Revision:
- 2:d8487cc76ee2
- Parent:
- 1:f6f0d3ae86c9
diff -r f6f0d3ae86c9 -r d8487cc76ee2 SENSOR.cpp --- a/SENSOR.cpp Fri Jun 08 21:35:21 2018 +0000 +++ b/SENSOR.cpp Tue Jun 26 15:12:33 2018 +0000 @@ -19,7 +19,7 @@ wait_ms(200); // configuracion del magnetometro //cmd[0]=mag_IDENT_A; - /* + cmd[0]=Read(mag_IDENT_A); printf("...%d...",cmd[0]); int iden=cmd[0]; @@ -36,7 +36,7 @@ printf("magnetometro listo\n"); // } - */ + //****************************************************************************************************** } uint16_t SENSOR::getUV() @@ -51,7 +51,7 @@ return uvi; } -/* + char SENSOR::Read(char data) { char tx = data; @@ -98,4 +98,3 @@ magz |=cmd[0]; return magz; } -*/ \ No newline at end of file