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: mbed
Diff: main.cpp
- Revision:
- 1:c22bded09a21
- Parent:
- 0:3c1a1dcf317a
--- a/main.cpp Thu Jan 31 22:20:45 2019 +0000
+++ b/main.cpp Thu Jan 31 22:24:17 2019 +0000
@@ -13,8 +13,8 @@
{
private:
public:
- IsAnEvent(PinName pin) : InterruptIn(pin)
- {
+ IsAnEvent(PinName pin) : InterruptIn(pin) // Constructor übergibt eingangspin an InterruptIn
+ {
// rise Methode von InterruptIn
// Durch die Vererbung sind nun alle Methoden der Klasse Interrupt in verfügbar -> rise
rise(callback(this, &IsAnEvent::test)); // Bei Trigger von Interrupt wird die Methode test aufgerufen