Is it possible to have buttons and led’s that are connected to the available GPIO pins use the led_int() and button_init() functions in src/hw_config.c? The benefit would be that we can then use core functions like BUTTON_GetState(), BUTTON_GetDebouncedTime() and LED_On/Off(), LED_Toggle(), etc that are already available? I’d like to do this within my sketch rather than directly in the firmware.
I tried LED_Init(D5); in my setup() but received a -fpermissive error I’m guessing because only certain pins have been defined to use this function.
Project examples: A) I’d like to add a ‘reset wifi’ button that can be mounted to out side of my embedded project that when pressed for 10 seconds will put the Core’s wifi config in listening mode. This would support moving the product from network to network, etc. B) I’d like to have a RGB Led mounted to the exterior of the product that mimics the Core’s state. The core will not be visible or accessible to the end user.
If this is possible, can you provide an example?