sarahghp / p5bots

Use your microcontroller with p5.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add documentation to pullup mode

veillette opened this issue · comments

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');