Hi Michel, You could use the callbacks to capture a state change then set the LED manually.
something like this?
int g_apuLEDState = 0;
int g_ledstatechanged = false;
void onApuReadyLtChange(unsigned int newValue)
{
[indent] g_apuLEDState = newValue;
g_ledstatechanged = true;
[/indent]
}
DcsBios::IntegerBuffer apuReadyLtBuffer(0x54b2, 0x8000, 15, onApuReadyLtChange);
void loop()
{
[indent]if (g_ledstatechanged)
[/indent]
[indent] {
//Call routine to drive shift-reg or LED controller, pass in LED state.
g_ledstatechanged = false;
}
[/indent]
}