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: TextLCD mbed TMP102
Revision 0:9f9af3710502, committed 2012-04-21
- Comitter:
- bigweggy
- Date:
- Sat Apr 21 10:54:24 2012 +0000
- Commit message:
- This program is a quick mash up which I made up from 2 other programs found on the cookbook. It is a combination of the TextLCD code and the TMP102HelloWorld program.
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TMP102.lib Sat Apr 21 10:54:24 2012 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/donatien/code/TMP102/#b469676e9a9e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TextLCD.lib Sat Apr 21 10:54:24 2012 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/simon/code/TextLCD/#e4cb7ddee0d3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat Apr 21 10:54:24 2012 +0000 @@ -0,0 +1,64 @@ +// Hello World! for the TextLCD + +#include "mbed.h" +#include "TextLCD.h" +#include "TMP102.h" + +TextLCD lcd(p15, p16, p17, p18, p19, p20); // rs, e, d4-d7 +TMP102 temperature(p9, p10, 0x90); //A0 pin is connected to ground +int main() { + while (1) { + lcd.printf("Hello.I'm MBED. "); + lcd.printf("Microcontroller "); + wait(3); + + lcd.printf("Rapid Protoyping"); + lcd.printf("System created "); + wait(3); + + lcd.printf("by ARM-Cambridge"); + lcd.printf("That's ENGLAND!"); + wait(3); + + lcd.printf("You can write "); + lcd.printf("a program for me"); + wait(3); + + lcd.printf("quickly & easily"); + lcd.printf("using the online"); + wait(3); + + lcd.printf("C compiler in "); + lcd.printf("the cloud. There"); + wait(3); + + lcd.printf("is also a vast "); + lcd.printf("cookbook online "); + wait(3); + + lcd.printf("where you can "); + lcd.printf("find lots of "); + wait(3); + + lcd.printf("example code to "); + lcd.printf("experiment with "); + wait(3); + + lcd.printf("to create "); + lcd.printf("programs like "); + wait(3); + + lcd.printf("this one in "); + lcd.printf("minutes! "); + wait(3); + + lcd.printf(" "); + lcd.printf(" "); + wait(3); + + lcd.printf("Temp is: "); + lcd.printf("%.1f degrees C\n", temperature.read()) ; + wait(3); + + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sat Apr 21 10:54:24 2012 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/e2ac27c8e93e