Hello
I am trying to get serial1Event for a STM32F411CE WeAct BlackPill board working.
Anyone know if it has been been implement or have it working please?
Board has loopback wire from PA9 to PA10 and i can see message being sent on scope.
if i add the check if( Serial1.available() ) in loop it works fine but the if( RxStringComplete ) test never becomes true.
Any ideas please imk
Code tried below:
#include <arduino.h>
#include <stdlib.h>
#include <stdint.h>
#include <HardwareSerial.h>
volatile int RxStringComplete = 0;
void setup()
{
Serial1.begin( 38400 );
Serial1.print( "Test" );
}
void loop()
{
if( RxStringComplete ) // See if we have received a message
//if( Serial1.available() ) // See if we have received a message
{
delay( 100 );
Serial1.print( "REPLY" );
Serial1.println( );
RxStringComplete = 0;
}
delay(1);
}
void serial1Event()
{
RxStringComplete = 1;
}