User Tools

Site Tools


en:ec_metr

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:ec_metr [2014/03/11 01:30]
admin [Schema]
en:ec_metr [2018/01/29 10:12] (current)
Line 284: Line 284:
 freqlow+= pulseIn(pin,​ LOW); freqlow+= pulseIn(pin,​ LOW);
 } }
-//frequency = 1000000 / ( (freqhigh / FREQSAMPLES) + (freqlow / FREQSAMPLES) ​); +frequency = 1000000 / ( (freqhigh / FREQSAMPLES) + (freqlow / FREQSAMPLES) );
-frequency=(freqhigh / FREQSAMPLES) + (freqlow / FREQSAMPLES);+
 digitalWrite(EC_enable,​ LOW); digitalWrite(EC_enable,​ LOW);
 return frequency; return frequency;
en/ec_metr.txt · Last modified: 2018/01/29 10:12 (external edit)