Greetings Friends,
I am writing a simple derivative of the peripheral_lbs sample and yes, I am a beginner.
At line 147 we have:
static void app_led_cb(bool led_state)
{
dk_set_led(USER_LED, led_state);
}
Later we get to:
int main (void)
etc.
etc.
I would like to use the variable led_state after the "main" statement, but the program will not build if I simply copy the variable into a statement in the "main" section. The same is true if I copy the lines above into the "main" section.
How can I make this variable available after the "main" statement?
Thank you,
Thank you,
Ted