goddamit idk it will be repository

This commit is contained in:
2024-03-01 18:31:24 +07:00
commit 9b30e597e9
15 changed files with 2710 additions and 0 deletions

9
src/promises/index.js Normal file
View File

@@ -0,0 +1,9 @@
function digitalRead (board, pin) {
return new Promise((resolve, reject) => {
board.digitalRead(pin, (val) => {
resolve(val);
});
});
}
module.exports = { digitalRead };