Skip to content
Added support for pin names to seesawGPIORead authored by Vince Mulhollon's avatar Vince Mulhollon
......@@ -2,13 +2,27 @@
## ulisp-seesaw implemented API
seesawGPIODirection.lisp - Set direction and pullup/down mode of a pin. example: (seesawGPIODirection 'PA10 'InputPullUp).
seesawI2CAddr.lisp - All installations require this to configure the chip I2C addrs
seesawReset.lisp - Software reset the seesaw chip - (seesawReset) does what you'd expect it to do.
seesawPWM.lisp - Set a pin to output a PWM signal - (seesawPWM 'PA04 #x7f) would set an adafruit backlight to half brightness
seesawGPIODirection.lisp - Set direction and pullup/down mode of a pin. Example:
<pre>
(seesawGPIODirection 'PA10 'InputPullUp)
</pre>
seesawGPIORead.lisp - Reads a bit from GPIO. Note, you should set the pin direction to input, before reading. Example:
<pre>
(seesawGPIORead 'PA10)
</pre>
seesawI2CAddr.lisp - All installations require this variable to be defined to configure the chip I2C addrs
seesawReset.lisp - Software reset the seesaw chip. Example:
<pre>
(seesawReset)
</pre>
seesawPWM.lisp - Set a pin to output a PWM signal. Example, to set an Adafruit (tm) TFTv2 backlight to half brightness:
<pre>
(seesawPWM 'PA04 #x7f)
</pre>
## CircuitPython seesaw API
......
......