Skip to content
Update API authored by Vince Mulhollon's avatar Vince Mulhollon
...@@ -3,6 +3,15 @@ ...@@ -3,6 +3,15 @@
## \*seesaw:i2c-address\* ## \*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. 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 ## seesaw:digital-direction
Set direction and pullup/down mode of a pin. Parameters: Set direction and pullup/down mode of a pin. Parameters:
<pre> <pre>
...@@ -62,6 +71,22 @@ Example: ...@@ -62,6 +71,22 @@ Example:
</pre> </pre>
Would software reset the seesaw device. 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 ## seesaw:pwm
Set a pin to output a PWM signal. Set a pin to output a PWM signal.
Percentages have convenience quotes. Percentages have convenience quotes.
... ...
......