sarahghp / p5bots

Use your microcontroller with p5.js
GNU Lesser General Public License v2.1
199 stars 45 forks source link

Add documentation to pullup mode #26

Open veillette opened 6 years ago

veillette commented 6 years ago

Using the arduino ide, it is possible to set the mode of a pin to INPUT, OUTPUT and INPUT_PULLUP. This last mode allows the client to use the high impedance of the internal pins to measure the voltage across it.

P5bot documentation doesn't not refer to the input_pullup mode but it is possible to use this mode using the standard firmata and pinmode

var pin= b.pin(pinNumber,'DIGITAL', 'PULLUP');