|
META TOPICPARENT |
name="WebHome" |
%DASHBOARD{ section="banner" |
|
Defaults: Digital port pins D0 to D7 are push pull outputs, D8 to D15 are inputs with pull-up resistors.
|
|
< < | led1! ( n -- ) sets LED1 (blue)
led2! ( n -- ) sets LED2 (green)
led3! ( n -- ) sets LED3 (red)
led1@ ( -- n ) gets LED1 (blue)
led2@ ( -- n ) gets LED2 (green)
led3@ ( -- n ) gets LED3 (red) |
> > | rgbled! ( rgb -- ) sets the RGB led ($ff0000 red, $00ff00 green, $0000ff blue) |
|
switch1? ( -- n ) gets switch1, closed=TRUE
switch2? ( -- n ) gets switch2, closed=TRUE |
|
< < | switch3? ( -- n ) gets switch3, closed=TRUE |
|
dport! ( n -- ) sets the digital output port (D0=bit0 .. D15=bit15).
dport@ ( -- n ) gets the digital input/output port (D0=bit0 .. D15=bit15). |
|
CN1.1 |
D8 |
PD13 |
GPIO |
CN1.2 |
D9 |
PD15 |
GPIO/TIM1_CH2 |
CN1.3 |
D10 |
PA4 |
SPI1_NSS |
|
|
< < |
CN1.4 |
D11 |
PA7 |
SPI1_MOSI/TIM17_CH1 |
|
> > |
CN1.4 |
D11 |
PA7 |
SPI1_MOSI/TIM1_CH1N |
|
|
CN1.5 |
D12 |
PB4 |
SPI1_MISO |
CN1.6 |
D13 |
PA1 |
SPI1_SCK |
CN1.7 |
GND |
- |
Ground |
|
|
|
|
< < |
FLASH_IO0 |
PD5 |
QUADSPI_BK1_IO0 |
|
> > |
FLASH_IO0 |
PB9 |
QUADSPI_BK1_IO0 |
|
|
FLASH_IO1 |
PD5 |
QUADSPI_BK1_IO1 |
FLASH_IO2 |
PD6 |
QUADSPI_BK1_IO2 |
FLASH_IO3 |
PD7 |
QUADSPI_BK1_IO3 |
|
|
< < |
FLASH_NCS |
PA3 |
QUADSPI_BK1_SCLK |
|
> > |
FLASH_SCLK |
PA3 |
QUADSPI_BK1_SCLK |
|
|
SPI OLED Display
|
|
< < |
SPI_SCK, D13 |
PA1 |
SPI1_SCK |
SPI_MISO, D12 |
PB4 |
SPI1_MISO |
SPI_MOSI, D11 |
PA7 |
SPI1_MOSI |
|
> > |
D13 |
PA1 |
SPI1_SCK |
D12 |
PB4 |
SPI1_MISO |
D11 |
PA7 |
SPI1_MOSI |
|
|
OLED_CS |
PH0 |
SPI1_NSS |
OLED_RST |
PC8 |
Reset OLED |
OLED_DC |
PC9 |
Data/Control |
|