There are 2 32F429IDISCOVERY KIT with 2 STM32F429ZIT6 microcontrollers. on the first board
Using the button connected to the PA_O pin, it is desired to change the state of the green led connected to the PG_13 pin on the 2nd board (turn off if it is on, turn on if it is off). A command transfer must be performed when the button is pressed. Using the UART module, write complete C++ code fragments on both the first board and the second board.
Tip: you can use the keywords define and ifdef to quickly and readably create your code for both boards in a single script. This can be done by sending the 8-bit character 't' as a command when the button is pressed. In this case, the LED operation is performed by checking the 't' equality of the data received on the other side.
Important Note: Tx and Rx pins on 32F429IDISCOVERY KIT will be PD_5 and PA_ 3 respectively. The same can be selected for both boards.