Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By Solexious
#38816 I'm currently on my last step of porting my artnet library from the ti connected launchpad to the ESP8266 arduino IDE, getting DMX output working. (currently it correctly reports it's status to poll replies and controls a single LED on channel 1 universe 0)

I use this code: https://github.com/solexious/Artnetnode ... #L229-L240
on the energia IDE to correctly send out the first frame flag of the DMX packet, then switch it to the correct mode and dump out the frame of DMX into the UART buffer to be sent while the MCU is free to do other things.

Is there a way for me to have the same low level control of the UART in this arduino IDE board for the esp8266? I need to be able to set the serial speed, then control the parity and number of stop bits of the UART port chosen.

Code: Select all    ROM_UARTConfigSetExpClk(UART0_BASE, F_CPU, 125000,
                              (UART_CONFIG_PAR_NONE | UART_CONFIG_STOP_TWO |
                              UART_CONFIG_WLEN_8));


Best,

Sol
User avatar
By WereCatf
#38818 Would https://github.com/esp8266/Arduino/blob ... .md#serial help? There's a bit that says:
Both Serial and Serial1 objects support 5, 6, 7, 8 data bits, odd (O), even (E), and no (N) parity, and 1 or 2 stop bits. To set the desired mode, call Serial.begin(baudrate, SERIAL_8N1), Serial.begin(baudrate, SERIAL_6E2), etc.


I can't help you any further than that as I have never used serial for anything.