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.
Revision 0:d1092a21e44d, committed 2020-08-01
- Comitter:
- liammchale
- Date:
- Sat Aug 01 08:21:10 2020 +0000
- Child:
- 1:0681ee244174
- Commit message:
- 2.2 lab answer
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/C12832.lib Sat Aug 01 08:21:10 2020 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/askksa12543/code/C12832/#990d5eec2ef6
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sat Aug 01 08:21:10 2020 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"//preprocessor directive
+#include "C12832.h"//preprocessor directive
+
+C12832 lcd(p5,p7,p6,p8,p11);
+PwmOut led1(LED1);
+AnalogIn pot1(p19);
+
+int main(){
+ lcd.cls();
+ lcd.locate(0,3);
+ while(1){
+ float t = pot1;
+ led1 = pot1;
+ lcd.printf("value of pot is %f\n",t);
+ wait(0.01);
+ }
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sat Aug 01 08:21:10 2020 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file