Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void sendAPDS9301Data(){
- static unsigned long outLoopTimer = 0;
- if (millis() - outLoopTimer >= 1000){
- outLoopTimer = millis();
- //LUX =apds.readCH0Level();
- uint16_t data[2]={apds.readCH0Level(), apds.readCH1Level()};
- float lux;
- memcpy(&lux,data,4);
- Serial.print("Luminous flux: ");
- Serial.println(apds.readCH0Level(),6);
- Serial.println(lux);
- Serial.println("=================");
- sendZBData("Luminosidad", "APDS9301", millis(),lux, analogRead(A1), readVcc());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement