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 MMA8451Q TSI
Diff: main.cpp
- Revision:
- 3:a703eda2b125
- Parent:
- 2:86de87ec731a
- Child:
- 4:f4bd9fe2200b
--- a/main.cpp Fri Aug 14 13:56:10 2015 +0000
+++ b/main.cpp Sat Aug 15 13:56:42 2015 +0000
@@ -16,14 +16,16 @@
DigitalOut led2(LED2);
DigitalOut led3(LED3);
int freq =0;
+int multiplier =1;
+
int main(){
led1=1;
led2=1;
led3=1;
- Button a (PTA1, LA4, &freq, &led1);
- Button b (PTA2, DO4, &freq, &led2);
- Button c (PTA12, FA4, &freq, &led3);
+ Button a (PTA1, LA4, &freq, &multiplier);
+ Button b (PTA2, DO4, &freq, &multiplier);
+ Button c (PTA12, FA4, &freq, &multiplier);
lcd.cls();
while (true){
if(freq>0){
