Hi Tyler Wong,
If you want to configure GPIOA bit 7, PTA7 as the output GPIO pin.
1. Check your hardware design about this pin.
What's your LED circuit, if your led circuit is low to light your led, then you need to output the low signal to PTA7.
Vice versa.
2. Software side
You need to configure the the PTA7 as output pin, and output low or high.
Related register is:
GPIOX_PDDR, GPIO_PDOR.
More details, please refer to the reference manual for KE06.
BTW, if you use it as GPIO, don't use the higher ALT function for PTA7:

Actually, you totally can refer to the official code and modify that code to PTA7.
Please try it, if you still have question, just let me know.
Have a great day,
Kerry
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------