void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, STM32!");
pinMode(A1, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
uint8_t memory = digitalRead(A1);
if (memory)
Serial.println("ok");
else
Serial.println("yes");
delay(1000); // this speeds up the simulation
}