How to use the digitalRead function from bindings
Find comprehensive JavaScript bindings.digitalRead code examples handpicked from public code repositorys.
18 19 20 21 22 23 24 25 26
get version() { return rpiplc.version; } analogRead(pinName) { return rpiplc.analogRead(this.hw[pinName]); } analogWrite(pinName, value) { rpiplc.analogWrite(this.hw[pinName], value); } delay(value) { rpiplc.delay(value); } digitalRead(pinName) { return rpiplc.digitalRead(this.hw[pinName]); } digitalWrite(pinName, value) { rpiplc.digitalWrite(this.hw[pinName], value); } pinMode(pinName, mode) { rpiplc.pinMode(this.hw[pinName], mode); } }
1
0
0
+ 19 other calls in file
GitHub: leeyunjai/wpi-node
21 22 23 24 25 26 27 28 29 30 31 32
$.digitalWrite = (p, v) =>{ _wpi.digitalWrite(p, v) } $.digitalRead = (p) => { return _wpi.digitalRead(p) } $.pwmSetMode = (m) => { _wpi.pmwSetMode(m)
0
1
0
bindings.createKey is the most popular function in bindings (8616 examples)