mirror of
				https://github.com/kevinveenbirkenbach/physical-interface.git
				synced 2025-11-04 02:37:58 +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