Joseph Tannenbaum
Published © GPL3+

16 x 2 LCD with the "Blue Pill"

Techmirtz's LCD on Arduino changed for the Blue Pill.

BeginnerFull instructions provided1 hour1,169
16 x 2 LCD with the "Blue Pill"

Things used in this project

Story

Read more

Schematics

Corrected Fritzing

Code

Using the LCD with the Blue Pill

Arduino
/ include library code
#include <LiquidCrystal.h>
// initialize library with the numbers of the interface pins
LiquidCrystal lcd(PB8, PB9, PB3, PB4, PB6, PB7);
#define LCD_Backlight PA10
void setup() {
 lcd.begin(16, 2);
 pinMode(LCD_Backlight, OUTPUT); analogWrite(LCD_Backlight, 128);
 // Text goes in here |
 //                   \/
 lcd.print("Hello, World!");
}
void loop() {
 lcd.setCursor(0, 1);
 lcd.print(millis() / 1000);
}

Credits

Joseph Tannenbaum
1 project • 1 follower
Retired IT professional

Comments