A library for mastering a DMX chain. You'll meed a max485 or equivalent to convert the digital output to the differential RS-485 protocol.
DMXPacket.h@0:9f79770fc0a8, 2011-07-09 (annotated)
- Committer:
- User_4574
- Date:
- Sat Jul 09 19:38:50 2011 +0000
- Revision:
- 0:9f79770fc0a8
Initial revision, I havent put it through the logic probe yet, but timings look good on the CRO.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
User_4574 | 0:9f79770fc0a8 | 1 | #include "mbed.h" |
User_4574 | 0:9f79770fc0a8 | 2 | #define MARK 1 |
User_4574 | 0:9f79770fc0a8 | 3 | #define BREAK 0 |
User_4574 | 0:9f79770fc0a8 | 4 | |
User_4574 | 0:9f79770fc0a8 | 5 | #define PW 4 |
User_4574 | 0:9f79770fc0a8 | 6 | #define MTBF 1 |
User_4574 | 0:9f79770fc0a8 | 7 | #define MTBP 1 |
User_4574 | 0:9f79770fc0a8 | 8 | |
User_4574 | 0:9f79770fc0a8 | 9 | void init(DigitalOut*); |
User_4574 | 0:9f79770fc0a8 | 10 | void writePacket(DigitalOut*, char*, int); |