Could it be an issue with threads?
The button works because it's all on UI thread. I assume the flashing happens using some sort of timer on a background thread. UI work needs to be done on an UI thread like so:
MainThread.BeginInvokeOnMainThread(() =>
{
brdLightsim.BackgroundColor = Color.FromRgb(0, 0, 0);
});