How do I make the onboard LED blink with a button press?
I am using the Nucleo-F767ZI board.
I have the normally open of the switch wired to 5V.
Common is to pin A0 and to R10K then pulled down to GND.
When the button is pressed the pin A0 will go from 0V to ~5V.
Want to blink LED1 at say 1Hz, then when button pressed blink frequency is changed to say 0.5Hz.
Would also accept switching from illuminating LED1 to illuminating LED2 with a button press.
Background history: I've found programming very difficult, only began to get my feet wet with Arduino hobby projects. Some sort of programming dyslexia. Now with the jump to this F7 board, IDE, and apparent change in code layout (main loop?)/ seemingly less user friendly names (HAL_toggle_makecomplex).. I'm getting bogged down. Before you ask - the boss saw my Arduino sticker then made me the microcontroller SME... Said "do what you can do and do it quickly". Whelp, can't do much but can ask for step by step help. Unfortunately, I can't bring you all doughnuts and coffee for your help but here's some O's: 00oO0oO0o0o
