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.
main.cpp
00001 /* mbed Microcontroller Library 00002 * Copyright (c) 2019 ARM Limited 00003 * SPDX-License-Identifier: Apache-2.0 00004 */ 00005 00006 #include "mbed.h" 00007 #include "platform/mbed_thread.h" 00008 #include "LCD.h" 00009 00010 00011 // Blinking rate in milliseconds 00012 #define BLINKING_RATE_MS 500 00013 00014 lcd mylcd; 00015 00016 00017 int main() 00018 { 00019 mylcd.clear(); 00020 mylcd.printf("Hallo Joerg"); 00021 mylcd.cursorpos(0x40); 00022 DigitalOut led(LED1); 00023 HAL_Delay(2000); 00024 mylcd.cls(); 00025 mylcd.locate(4,1); 00026 mylcd.printf("x=%d",2); 00027 00028 HAL_Delay(2000); 00029 mylcd.cls(); 00030 mylcd.locate(4,0); 00031 mylcd.printf("Hallo"); 00032 00033 HAL_Delay(2000); 00034 mylcd.locate(8,1); 00035 mylcd.putc('x'); 00036 mylcd.putc('Y'); 00037 mylcd.putc('z'); 00038 00039 00040 while (true) { 00041 00042 } 00043 00044 00045 00046 00047 }
Generated on Tue Jul 12 2022 13:25:49 by
1.7.2