Arduino board support for MyStorm BlackIce
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
libraries
variants/BlackIce
README.md
boards.txt
platform.txt

README.md

Arduino board support for myStorm BlackIce (STM32L4 + ICE40 FPGA)

Pin assignments for digitalRead/digitalWrite

Arduino Pins BlackIce Usage
0-7 DIGITAL1 1-8
8-13 DIGITAL2 1-6
14-19 (AN0-AN5) ANALOG 1-6
20-23 DIGITAL3 1-4
also Switches (S2,S1)
24-25 (SDA,SCL) DIGITAL2 9-10
26 LED1
also ICE40 (SS)
27-29 LED2-LED4
40-41 SPI Mux (S,OE)
42-43 ICE40 (CRST,DONE)
44-45 Buttons (S3,S4)
46 LED5 (SL1)

analogRead is supported on pins AN0-AN5.

analogWrite is supported as PWM on pins 3, 4, 6, 11, 12, 18 19, and as 12-bit DAC on pins 5, 9.

Serial ports

Name Connections RX,TX
Serial USB (middle connector)
Serial1 CH340 USB (corner connector)
also RPI 8,10
also ICE40 88,85 (PMOD1 3,4)
Serial2 ICE40 82,81
Serial3 DIGITAL1 1,0

SPI

Name Connections MOSI,MISO,SCK
SPI ICE40 config 68,67,70
SPI1 DIGITAL2 4,5,6
SPI2 DIGITAL3 4,3,2
also ICE40 37,38,39

Note: SPI pins are shared with onboard LEDs and PMOD14 (if mux OE=S=0). SPI2 pins are shared with onboard Switches S1-S2, and SD card.

I2C

Name Connections SCL,SDA
Wire DIGITAL2 10,9
also RPI 5,3
Wire1 DIGITAL2 6,5
Wire2 ICE40 79,67

Credits

This package is an extension to Thomas Roell's grumpyoldpizza package, which provides the STM32L4 core.