Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed mbed-STM32F103C8T6
main.cpp
00001 /* 00002 * Nokia 5110 LCD demo 00003 */ 00004 #include "stm32f103c8t6.h" 00005 #include "mbed.h" 00006 #include "nLCD.h" 00007 00008 graphicsLCD lcd(PB_3,PB_4,PB_5,PB_6); // RST, CS, MOSI, CLK 00009 00010 int main() 00011 { 00012 confSysClock(); // configure system clock (72MHz HSE clock, 48MHz USB clock) 00013 lcd.init(); // first need to initialise display 00014 00015 while(1) { 00016 // can directly print strings at specified co-ordinates 00017 lcd.print("Hello, World!"); 00018 wait(5.0); 00019 lcd.clear(); // clear display 00020 wait(2.0); 00021 } 00022 }
Generated on Fri Jul 15 2022 11:52:20 by
1.7.2