mirror of
				https://github.com/kevinveenbirkenbach/physical-interface.git
				synced 2025-10-31 16:59:07 +00:00 
			
		
		
		
	Added calculation of volt input
This commit is contained in:
		| @@ -144,7 +144,8 @@ String getJsonPir(void){ | ||||
| } | ||||
|  | ||||
| String getJsonLdr(void){ | ||||
|   return "{\"relative\":\""+String(analogRead (pin_ldr))+"\"}"; | ||||
|   float volt = 5.0 /1024.0 * analogRead (pin_ldr); | ||||
|   return "{\"input_volt\":\""+String(volt)+"\"}"; | ||||
| } | ||||
|  | ||||
| String getJsonIrLastRecieved(void){ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user