examples/

directory
v0.0.0-...-168ccc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2021 License: BSD-3-Clause

README

This directory contains examples for the following STM32 development boards:

core746i: WaveShare Core746I, website

WaveShare Core746I

emw3162: MXCHIP EMW3162 (STM32F205RGT6 + BCM43362), website

EMW3162

f030-demo-board: STM32F030 demo board, website

STM32F030 demo board

f4-discovery: STM32F4-Discovery, website

STM32F4-Discovery

l1-discovery: STM32L1-Discovery, website

STM32F4-Discovery

minidev: STM32 Mini Development Board (aka "Blue Pill")

STM32 Mini Development Board

nucleo-f303re: NUCLEO-F303RE, website

NUCLEO-F303RE

nucleo-f411re: NUCLEO-F411RE, website

NUCLEO-F411RE

nucleo-l476rg: NUCLEO-L476RG, website

NUCLEO-L476RG

port103r: WaveShare Port103R, website

WaveShare Port103R

wifimcu: WiFiMCU/EMW3165 (STM32F411CEY6 + BCM43362), website

WiFiMCH

Directories

Path Synopsis
core746i
blinky
This example blinks two LEDs that need to be connected to PH3, PH5 pins.
This example blinks two LEDs that need to be connected to PH3, PH5 pins.
helloworld
This example writes "Hello world!" string to default debug port, in this case to ITM stimulus port 0.
This example writes "Hello world!" string to default debug port, in this case to ITM stimulus port 0.
emw3162
f030-demo-board
demo
This example demonstrates some feutures of Go language: gorutines, channels, empty interface and type switch.
This example demonstrates some feutures of Go language: gorutines, channels, empty interface and type switch.
f4-discovery
chan+isr
This example shows how to use channels to divide interrupt handler into two parts: fast part - that runs in interrupt context and slow part - that runs in thread context.
This example shows how to use channels to divide interrupt handler into two parts: fast part - that runs in interrupt context and slow part - that runs in thread context.
chanrng
This example shows random behavior of select statement.
This example shows random behavior of select statement.
dma
This example tests different ways of coping memory.
This example tests different ways of coping memory.
event
This example shows how to use rtos.EventFlag for communication between interrupt handler and thread.
This example shows how to use rtos.EventFlag for communication between interrupt handler and thread.
fmt
ft800
This example demonstrates usage of FTDI EVE based displays.
This example demonstrates usage of FTDI EVE based displays.
ft811
This example demonstrates usage of FTDI EVE2 based displays.
This example demonstrates usage of FTDI EVE2 based displays.
helloworld
This example writes "Hello world!" string to default debug port, in this case to ITM stimulus port 0.
This example writes "Hello world!" string to default debug port, in this case to ITM stimulus port 0.
ili9341
This is test program that shows how to communicate with ILI9341 controller using raw SPI (without any display library).
This is test program that shows how to communicate with ILI9341 controller using raw SPI (without any display library).
onewire
This example shows how to use USART as 1-wire master.
This example shows how to use USART as 1-wire master.
select+at
This example shows how to use rtos.At function to implement deadline/timeout for communication with channels.
This example shows how to use rtos.At function to implement deadline/timeout for communication with channels.
systick
This example shows how to write bare metal application that does not use tasker and rely at limited runtime initialisation (MaxTasks == 0).
This example shows how to write bare metal application that does not use tasker and rely at limited runtime initialisation (MaxTasks == 0).
us100
Connct US-100 Tx and Rx pins respectively to Discovery's PA2 (USART2_TX), PA3 (USART2_RX) pins (Tx-Tx, Rx-Rx).
Connct US-100 Tx and Rx pins respectively to Discovery's PA2 (USART2_TX), PA3 (USART2_RX) pins (Tx-Tx, Rx-Rx).
usart
This example shows how to use USART as serial console.
This example shows how to use USART as serial console.
ws2812
Simple WS2812 example.
Simple WS2812 example.
l1-discovery
chan+isr
This example shows how to use channels to divide interrupt handler into two parts: fast part - that runs in interrupt context and slow part - that runs in thread context.
This example shows how to use channels to divide interrupt handler into two parts: fast part - that runs in interrupt context and slow part - that runs in thread context.
dma
This example shows how to use DMA for memory to memory transfers.
This example shows how to use DMA for memory to memory transfers.
heating
Control of power (water heater, house heating system).
Control of power (water heater, house heating system).
rtc
systick
This example shows how to manually setup interrupt table when you don't use runtime initialisation (MaxTasks == 0) and how to write purely interrupt driven application.
This example shows how to manually setup interrupt table when you don't use runtime initialisation (MaxTasks == 0) and how to write purely interrupt driven application.
usart
This example shows how to use USART as serial console.
This example shows how to use USART as serial console.
usartraw
This example shows how to use raw UART without interrupts (pulling).
This example shows how to use raw UART without interrupts (pulling).
minidev
nrfrc
This is example of nRF24L01 based RC transmiter.
This is example of nRF24L01 based RC transmiter.
nucleo-f303re
ft800
This example demonstrates usage of FTDI EVE based displays.
This example demonstrates usage of FTDI EVE based displays.
ft811
This example demonstrates usage of FTDI EVE based displays.
This example demonstrates usage of FTDI EVE based displays.
nucleo-f411re
dma
This example tests different ways of coping memory.
This example tests different ways of coping memory.
eeprom-i2c
Example of communication to 24C0x EEPROM.
Example of communication to 24C0x EEPROM.
fmt
ft800
This example demonstrates usage of FTDI EVE based displays.
This example demonstrates usage of FTDI EVE based displays.
ft811
This example demonstrates usage of FTDI EVE based displays.
This example demonstrates usage of FTDI EVE based displays.
hd44780
This example shows how to use PCF8574T + HD44780 combo.
This example shows how to use PCF8574T + HD44780 combo.
i2c
This example blinks leds connected to pins P4, P5, P6, P7 of PCF8574T. Button can be connected to other pins and its state observed on SWO.
This example blinks leds connected to pins P4, P5, P6, P7 of PCF8574T. Button can be connected to other pins and its state observed on SWO.
onewire
This example shows how to use USART as 1-wire master.
This example shows how to use USART as 1-wire master.
rcservo
This is example of nRF24L01 based remote servo.
This is example of nRF24L01 based remote servo.
reflect
Reflection test.
Reflection test.
rtc
sdmc
Warning! This example destroys all data on your SD card.
Warning! This example destroys all data on your SD card.
sdmc-raw
Warning! This example destroys all data on your SD card.
Warning! This example destroys all data on your SD card.
usart
This example shows how to use USART as serial console.
This example shows how to use USART as serial console.
ws2812
Simple WS2812 example.
Simple WS2812 example.
nucleo-l476rg
dma
This example tests different ways of coping memory.
This example tests different ways of coping memory.
ft800
This example demonstrates usage of FTDI EVE based displays.
This example demonstrates usage of FTDI EVE based displays.
ft811
This example demonstrates usage of FTDI EVE2 based displays.
This example demonstrates usage of FTDI EVE2 based displays.
helloworld
This example writes "Hello world!" string to default debug port, in this case to ITM stimulus port 0.
This example writes "Hello world!" string to default debug port, in this case to ITM stimulus port 0.
usart
This example shows how to use USART as serial console.
This example shows how to use USART as serial console.
port103r
chan+isr
This example shows how to use channels to divide interrupt handler into two parts: fast part - that runs in interrupt context and slow part - that runs in thread context.
This example shows how to use channels to divide interrupt handler into two parts: fast part - that runs in interrupt context and slow part - that runs in thread context.
dma
This example shows how to use DMA for memory to memory transfers.
This example shows how to use DMA for memory to memory transfers.
epaper
WaveShare 1.54inch e-Paper Module (B) / Good Dispay GxGDEW0154Z04
WaveShare 1.54inch e-Paper Module (B) / Good Dispay GxGDEW0154Z04
hd44780
This example shows how to use PCF8574T + HD44780 combo.
This example shows how to use PCF8574T + HD44780 combo.
i2c
This example blinks leds connected to pins P4, P5, P6, P7 of PCF8574T. Button can be connected to other pins and its state observed on SWO.
This example blinks leds connected to pins P4, P5, P6, P7 of PCF8574T. Button can be connected to other pins and its state observed on SWO.
pwm
semihosting
This example shows low-level method of semihosting I/O. The debug/semihosting package provides simple file interface that can be used in real cases.
This example shows low-level method of semihosting I/O. The debug/semihosting package provides simple file interface that can be used in real cases.
wifimcu

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL