Skip to content

scottmac-dev/zig-stm32-bare-metal

Repository files navigation

zig-stm32-bare-metal

A collection of bare metal zig on STM32 MCU examples

STM32-NUCELO-F302R8

Hardware Details

Examples

  • blinky: blink green LD2 led on devboard in constant cycle
  • toggle led: toggle green LD2 led with blue B1 USER button and print state via UART
  • systick: blink green LD2 led on devboard using Cortex-M SysTick peripheral instead of primitive noop loop
  • button count w\ interrupt: pressing B1 USER button triggers EXTI interrupt and increments a counter, counter tally is transmitted over UART
  • pulse modulation mg996r servo sweep: sweep MG996R servo motor across full range using TIM1 hardware PWM, no CPU involvement once configured
  • i2c-lcd: transmit data to print/display on a LCD screen over i2c
  • max3010-photodetector: read heart rate sensor data from max30101 breakout board over I2c and display in python visualizer

Other hardware referenced

About

A collection of bare metal zig on STM32 MCU examples

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors