Hello everyone
sorry if I do not extend (the English is not my forte)
not know the cause but the "HC-SR04" does not work with 1.70 or 1.71 espruino 27th Sep in stm32f3discovery. espruino 1.71 significantly improves the fault persists, tested the code and it works in ministm32_32
Test code
var sensor = require("HC-SR04").connect(A0,A1,function(dist) {
console.log(dist+" cm away");
});
setInterval(function() {
sensor.trigger(); // send pulse
}, 500);
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hello everyone
sorry if I do not extend (the English is not my forte)
not know the cause but the "HC-SR04" does not work with 1.70 or 1.71 espruino 27th Sep in stm32f3discovery. espruino 1.71 significantly improves the fault persists, tested the code and it works in ministm32_32
Test code
var sensor = require("HC-SR04").connect(A0,A1,function(dist) {
console.log(dist+" cm away");
});
setInterval(function() {
sensor.trigger(); // send pulse
}, 500);