// STM32 Nucleo-C031C6 I2C Example
// Simulation: https://wokwi.com/projects/365421666018061313

int led_port = 13;

void setup() {
  Serial.begin(115200);

  Serial.println("Hello, STM32!");
}
uint16_t x=800;
uint16_t y=1200;
void loop() {
  //Serial.println(GPIOB->IDR & (1 << 1)); // 0b10
  //GPIOC->ODR = (1 << 6); // 0b1000000
  if(abs(x-y) >= 100)     Serial.println(1);
  //Serial.println(abs(x-y));
  delay(1000);
  if(abs(y-x) >= 100)     Serial.println(0);
  //Serial.println(abs(y-x));
  delay(1000);
  }
$abcdeabcde151015202530fghijfghij