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: SDFileSystem mbed
Fork of PES4_Programme by
Revision 96:676d01c86b61, committed 2018-04-11
- Comitter:
- PESGruppe1
- Date:
- Wed Apr 11 17:25:51 2018 +0000
- Parent:
- 95:b02e1b2a6cbd
- Commit message:
- Demo LEDFade and Summer working for Design Review 2
Changed in this revision
| source/main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/source/main.cpp Wed Apr 11 15:19:22 2018 +0000
+++ b/source/main.cpp Wed Apr 11 17:25:51 2018 +0000
@@ -40,9 +40,9 @@
/* Switch Summer On/Off for demo Tool (Interrupt)*/
extern int countcount = 0;
-void summ(void)
+void summ(void) // IRQ Routine
{
- //userButton1.disable_irq();
+ userButton1.disable_irq();
if(summer.read()>0) {
summer.write(0.0f);
} else {
@@ -50,8 +50,8 @@
}
countcount++;
printf("%d interrupt\n\r",countcount);
- //wait_ms(50);
- //userButton1.enable_irq();
+ wait_ms(200);
+ userButton1.enable_irq();
}
