
V1
Revision 2:370f188e2590, committed 2018-10-09
- Comitter:
- chenniges
- Date:
- Tue Oct 09 09:54:35 2018 +0000
- Parent:
- 1:bf8737118d3d
- Commit message:
- V1
Changed in this revision
C12832.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r bf8737118d3d -r 370f188e2590 C12832.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/C12832.lib Tue Oct 09 09:54:35 2018 +0000 @@ -0,0 +1,1 @@ +http://os.mbed.com/users/chris/code/C12832/#7de323fa46fe
diff -r bf8737118d3d -r 370f188e2590 main.cpp --- a/main.cpp Tue Oct 09 09:43:27 2018 +0000 +++ b/main.cpp Tue Oct 09 09:54:35 2018 +0000 @@ -10,9 +10,10 @@ DigitalIn LDR7(p16); //1GBP DigitalIn LDR8(p17); //2GBP //I don't know the mistake -C12832 lcd(p5,p6,p7,p8,p11) +C12832 lcd(p5,p6,p7,p8,p11); -int main() { +int main() +{ int n1; //number of 1p coins float a1; //amount of 1p coins //... @@ -47,7 +48,7 @@ wait(3); lcd.cls(); - //if() //press button or something like that + /*if() //press button or something like that { lcd.printf("Please enter the mount of money you took:"); scanf("%f",&tm); @@ -55,7 +56,7 @@ wait(2); ta = ta-tm; lcd.printf("Now you have only %f \bx156 left", ta); //\b for one step backword and I guess that x156 for £ //I'm not sure - } + }*/ return(0); } \ No newline at end of file