Hello @Lukas_Frank,
You're filling the array with (i % 2), so if the array would be something like:
txBuffer[iter] = {0,1,0,1,0,1,0,1,0,1,0...}
So if you looking to fill the array with (start-bit)(10101010)(stop-bit) that would be with:
uint8_t txBuffer[256] = {0};
int16_t iter;
for(iter=0; iter<256; iter++)
{
txBuffer[iter] = 0xAA;
}
Best Regards,
Alexis Andalon