Skip to content
Update API authored by Vince Mulhollon's avatar Vince Mulhollon
......@@ -3,6 +3,15 @@
## \*seesaw:i2c-address\*
If you have multiple seesaw devices in a project, you can change the mutable global variable \*seesaw:i2c-address\* between running functions to change the currently selected seesaw device.
Example for an Adafruit #3657 breakout board:
<pre>
(defvar *seesaw:i2c-address* #x49)
</pre>
Example for an Adafruit #802 TFTv2 LCD board:
<pre>
(defvar *seesaw:i2c-address* #x2e)
</pre>
## seesaw:digital-direction
Set direction and pullup/down mode of a pin. Parameters:
<pre>
......@@ -62,6 +71,22 @@ Example:
</pre>
Would software reset the seesaw device.
## seesaw:options-read
Returns a list of compiled seesaw options
Example:
<pre>
(seesaw:options-read)
</pre>
Returns this list from a seesaw breakout board:
<pre>
(gpio sercom adc dac dap touch)
</pre>
Returns this list from an adafruit tft-v2 board:
<pre>
(fix this)
</pre>
## seesaw:pwm
Set a pin to output a PWM signal.
Percentages have convenience quotes.
......
......