Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Changes
Page history
Update API
authored
Jan 25, 2020
by
Vince Mulhollon
Hide whitespace changes
Inline
Side-by-side
API.md
View page @
771c2018
...
...
@@ -49,6 +49,32 @@ Example:
</pre>
Would light the active-high LED on the adafruit seesaw breakout board, assuming PA27 had previously been set to output.
## seesaw:eeprom-read
Return a decimal byte stored at an eeprom address.
An example that writes decimal 99 to eeprom address 0x00, reads it, overwrites with decimal 11, and reads that:
<pre>
(seesaw:eeprom-write #x00 99)
(seesaw:eeprom-read #x00)
99
(seesaw:eeprom-write #x00 11)
(seesaw:eeprom-read #x00)
11
</pre>
## seesaw:eeprom-write
Writes a decimal byte to an eeprom address.
An example that writes decimal 99 to eeprom address 0x00, reads it, overwrites with decimal 11, and reads that:
<pre>
(seesaw:eeprom-write #x00 99)
(seesaw:eeprom-read #x00)
99
(seesaw:eeprom-write #x00 11)
(seesaw:eeprom-read #x00)
11
</pre>
## seesaw:id-read
Read the hardware ID of the chip, which should always be 0x55 aka 85 decimal. Parameters:
<pre>
...
...
...
...