Skip to content

enderslash1010/STM32F103RB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STM32F103RB

Repo for bare-metal programming with STM32 (No use of the STM32 HAL), using the STM32F103RB (Nucleo) board

Blinky

Classic blinky. Blinks the on-board LED (LD2) on and off.

Blinky with Interrupt

Building upon blinky, the on-board LED is held on for a recognizable amount of time, around 2.5x blinks of time, when the on-board button (B1) is pressed. If the button is pressed while in this hold state, it does not add to the amount of time the LED is on. After exiting the hold state, the LED resumes blinking on and off.

SPI and PCD8544

Controls a Nokia 5110 screen by sending commands to it using the SPI communication protocol. This particular program displays "Hello World!" with hearts on both sides of the text. The implemented library for the screen includes support for toggling the backlight, writing strings, and drawing an image (48x84 size bitmap).

I2C and LCD

Drives a HD44780U LCD screen with an attached I2C backpack module. This program displays "Hello World!" with three hearts on the next line. The HD44780U's hardware commands are implemented as software functions in the LCD library. This includes functions for clearing the display, returning the cursor to home, configuring the cursor's appearance, shifting the display, setting DDRAM and CGRAM addresses, and writing to DDRAM and CGRAM. The LCD library also includes functions for toggling the backlight, writing strings, creating and displaying custom characters.

Releases

No releases published

Packages

 
 
 

Languages