Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:iot:examples:current [2018/12/27 12:53]
127.0.0.1 external edit
en:iot:examples:current [2019/02/02 14:52] (current)
rim.puks
Line 45: Line 45:
     iot.setup();​     iot.setup();​
  
-    emon1.current(ADC_PIN,​ iot.cfg->​get<​double>​("​stc"​)); ​            // Current: input pin, calibration. +    ​//emon1.current(ADC_PIN,​ iot.cfg->​get<​double>​("​stc"​)); ​            // Current: input pin, calibration. 
-    adcSampleCount = iot.cfg->​get<​uint16_t>​("​samples"​);​+    ​emon1.current(ADC_PIN,​ 30);  
 +    //adcSampleCount = iot.cfg->​get<​uint16_t>​("​samples"​)
 +    adcSampleCount = 1500;
  
     adcTicker.attach(0.5,​ setAdcFlag);​     adcTicker.attach(0.5,​ setAdcFlag);​
en/iot/examples/current.txt · Last modified: 2019/02/02 14:52 by rim.puks
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0