DMX512, RDM send/recv library http://mbed.org/users/okini3939/notebook/dmx512
Dependents: dmx_test ArtNodeLED SPK-DVIMXR SPK-DMXer ... more
DMX512 send/recv library
DMX512 is protocol for lighting.
調光プロトコル DMX512 を送受信するライブラリです。
see: http://mbed.org/users/okini3939/notebook/dmx512/
LPC1114 support is thanks to Stanly Chen
Diff: DMX.cpp
- 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);