This is a fork for okini3939's great DMX library with added support for the EA LPC4088 QuickStart mbed-enabled board. I have added support and tested the 3 UARTs which are accessible on the DIP pins. This forked of okini3939's library was created in the hopes a pull request could be accepted and re-integrated into the library. Important Note: To use the special UART on "pins 41" (rx) and "pin 42" (tx) you must access them by their port names, which are P0_3 (rx) and P0_2 (tx), because the symbols p41 and p42 do not exist in the mbed world (yet).

Fork of DMX by Suga koubou

Revision:
10:b748aab8404c
Parent:
9:e687f321c428
Child:
11:cb132e066057
--- a/DMX.cpp	Fri Mar 29 02:06:50 2013 +0000
+++ b/DMX.cpp	Thu Sep 05 10:01:59 2013 +0000
@@ -42,6 +42,15 @@
       _uart = LPC_USART;
       NVIC_SetPriority(UART_IRQn, 1);
     }
+#elif defined(TARGET_LPC11XX)
+    if (p_rx == P1_6) {
+      _uart = (LPC_UART_TypeDef*) UART_0;
+      NVIC_SetPriority(UART_IRQn, 1);
+    }
+    if (p_tx == P1_7) {
+      _uart = (LPC_UART_TypeDef*) UART_0;
+      NVIC_SetPriority(UART_IRQn, 1);
+    }
 #endif
 
     _dmx.baud(250000);