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.
Dependents: DISCO-F746NG_DMX-Test
Fork of DMX by
Diff: DMX.cpp
- Revision:
- 3:2eb66b4d99bd
- Parent:
- 2:d7677060f8eb
- Child:
- 4:dd0544c80096
diff -r d7677060f8eb -r 2eb66b4d99bd DMX.cpp
--- a/DMX.cpp Wed Sep 26 13:17:01 2012 +0000
+++ b/DMX.cpp Fri Sep 28 03:31:02 2012 +0000
@@ -162,3 +162,12 @@
}
}
+void DMX::reset () {
+ dmx.attach(0, Serial::TxIrq);
+ timeout01.detach();
+ mode_tx = DMX_MODE_BEGIN;
+// mode_rx = DMX_MODE_BEGIN;
+// is_recived = 0;
+ is_sent = 0;
+ timeout01.attach_us(this, &DMX::int_timer, DMX_TIME_BETWEEN);
+}
