![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
FRDM-K64F + Application Shield + Grove Sensors(Sunlight, Water, PIR motion)
Dependencies: C12832 SI1145 mbed-rtos mbed
Fork of FRDM_ApplicationShield_GroveSensors by
Diff: main.cpp
- Revision:
- 1:0690e7540e7e
- Parent:
- 0:17dc00c7db2b
- Child:
- 2:f7710077a4b5
--- a/main.cpp Thu Oct 20 10:30:07 2016 +0000 +++ b/main.cpp Thu Oct 20 10:35:45 2016 +0000 @@ -70,6 +70,7 @@ IR = sensor.getIR(); UV = sensor.getUV(); UV_real = UV/100; + if(0<=UV_real && UV_real<=2.9){ risk = "Low"; }else if(3<=UV_real && UV_real<=5.9){