@favo - I updated previous post... because I'd left some stuff out... I hope that after having made it too simple the first time, the second edition is not adding (too much) confusion.
STM32F103's GPIOs are extremely versatile, hence GPIO configuration and understanding of GPIO behavior IS a challenging... there are quite many publications and forum posts and... out there, in addition to ST's chip manual. Google it with https://www.google.com/search?q=GPIO+STMĀ32F103
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@favo - I updated previous post... because I'd left some stuff out... I hope that after having made it too simple the first time, the second edition is not adding (too much) confusion.
STM32F103's GPIOs are extremely versatile, hence GPIO configuration and understanding of GPIO behavior IS a challenging... there are quite many publications and forum posts and... out there, in addition to ST's chip manual. Google it with https://www.google.com/search?q=GPIO+STMĀ32F103