B-G431B-ESC1 IO-Pins, onboard Potentionmeter

Hey,

thank you for the reply.
I got it working. There was something wrong with my pin mapping.
I reinstalled the STMelectronics package, to make sure there are no changes.

I use Visual Studio to write the code and the Arduino IDE to upload it.
And there was the problem. In VS i got en error for the pin mapping of the potentiometer using the untouched STMelectonics package. But when compiling and uploading the sketch with the Arduino IDE there are no errors. So i think there might be something wrong at VS, maybe it doesn’t find all files and therefore return the error?

Now I am using the analogRead() function to read in the Potentiometer value, as normal.

Thank you for helping.