2021-11-17 09:51 AM
usually I learn by digging and figuring things out, but im noticing that my world of lua isn't going to help me here. I have no real Knowledge of Low Level Languages, is there a tutorial or something out there that can help me learn how to do GPIO to the pc via usb and treat it like generic buttons, i.e. like joystick buttons, not the axis just the buttons, im trying to learn one step at a time and don't wish to burry myself to fast.
2021-11-17 12:01 PM
Hi,
a number of examples is provided, but not for every chip and not every application, so you may need to adapt. The examples come with the STM32Cube MCU Packages downloaded (in STM32CubeMX or IDE). There sould be a folder like STM32Cube\Repository\STM32Cube_FW_F4_V1.26.2\Projects (in %USERPROFILE% for Windows and %HOME% for Linux). The STM32CubeProjectsList.html table may guide you through the examples jungle. All that stuff is also online https://github.com/STMicroelectronics/STM32Cube_MCU_Overall_Offer#stm32cube-mcu-packages. Finally, STM32CubeMX /IDE have an "Examples Browser" which is a GUI frontend for selecting examples. I'm not aware of a joystick example, but a mouse. There are training videos on youtube and 3rd party videos as well (keyboard and mouse).
It all depends on what you want to learn/achieve and what your pre-requisites are. For the beginning I recommend a Nucleo board https://www.st.com/en/evaluation-tools/stm32-nucleo-boards.html. They come with an integrated debugger (ST-LINK) and an USB tunneled serial connection (virtual com port - VCP) to the PC. Sending button presses and other stuff via UART / serial line is easier to debug on either side.
hth
KnarfB