Module app:userport - Userport utility

Userport utility. This provides a basic userport control facility. Usage:

userport <device> read [start [end]]
userport <device> dir <port> <in|out|tristate>
userport <device> set <port> <value>
userport <device> pwm <port> <period> <thigh>
userport <device> demo

Note that demo mode flashes output lines randomly, so is unlikely to work nicely unless the specified device's analogue and digital output ports are connected to lights/LEDs.

Index

Declarations