From 36a11f69ea1a31e6c727addb42def87f0341520a Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Sat, 22 Jun 2019 22:43:33 -0700 Subject: [PATCH] index: add page on spi id Signed-off-by: Sean Cross --- index.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 35b2ca6..9694876 100644 --- a/index.html +++ b/index.html @@ -453,6 +453,16 @@ $ dfu-util -D new-image.dfu # Load new program
+

Read SPI ID

+

+                                >>> spi = fomu.spi()
+                                >>> hex(spi.id())
+                                '0xc2152815'
+                                >>>
+                        
+
+ +

Memory-Mapped Registers

#define CSR_VERSION_MAJOR_ADDR 0xe0007000
 #define CSR_VERSION_MINOR_ADDR 0xe0007004
@@ -464,7 +474,7 @@ $ dfu-util -D new-image.dfu    # Load new program
-

RGB LEDD reference

+

RGB LED Driver reference

ICE40 LEDD registers
>>> rgb.write_raw(0b0001, 255)
 >>> rgb.write_raw(0b1010, 14)