/* STM32 Blue Pill project using the STM32 Arduino Core (stm32duino) */
#define js_VERT PB1
void setup() {
Serial.begin(115200);
pinMode(js_VERT, INPUT);
}
void loop() {
int VERT = analogRead(js_VERT); // read the input on analog pin PB1
int mapped = map(VERT, 0, 1023, -255, 255);
Serial.print("Vertical value = ");
Serial.println(mapped);
}