Hardware Reference
In-Depth Information
function readRange () {
b . analogRead ( 'P9_33' , printStatus );
}
function printStatus ( x ) {
console . log ( 'x.value = ' + x . value );
console . log ( 'Distance= ' + x . value * 1.8 / 0.0064 );
}
Search WWH ::




Custom Search