Hi @Gordon, i need help on software debouncing a pin for setwatch.
for ex, i have 2 pucks, in one puck i will have this code :- setWatch(senderase,D1, { edge:"rising",debounce:50, repeat: true });
i want to debounce this pin in code in another puck, i will use NRF uart to send command. here is another puck code:-
function send(cmd){ NRF.requestDevice({ filters: [{ namePrefix: 'Puck.js' }] }).then(function(device) { require("ble_simple_uart").write(device, cmd, function() { print('Done!'); }); }); }
i tried with digitalpulse,but no use how to debounce that pin in first puck , any api is there?
please help me to solve this issue
@afrid started
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.
Hi @Gordon,
i need help on software debouncing a pin for setwatch.
for ex, i have 2 pucks, in one puck i will have this code :-
setWatch(senderase,D1, { edge:"rising",debounce:50, repeat: true });
i want to debounce this pin in code in another puck, i will use NRF uart to send command.
here is another puck code:-
i tried with digitalpulse,but no use
how to debounce that pin in first puck , any api is there?
please help me to solve this issue