Konubinix' opinionated web of thoughts

Trying Using the Potentiometer With Arduino

Fleeting

trying using the potentiometer with arduino

void setup() {
  Serial.begin(9600);
  Serial.print("Setting up");
}

void loop() {
  float a0 = analogRead(0);
  float a1 = analogRead(1);
  Serial.print("A0:");
  Serial.print(a0);
  Serial.print(",");
  Serial.print("A1:");
  Serial.print(a1);
  Serial.println();
  delay(10);
}
Sketch uses 3564 bytes (11%) of program storage space. Maximum is 32256 bytes.
Global variables use 220 bytes (10%) of dynamic memory, leaving 1828 bytes for local variables. Maximum is 2048 bytes.

Used platform Version Path
arduino:avr   1.8.6   /home/sam/.arduino15/packages/arduino/hardware/avr/1.8.6
New upload port: /dev/ttyACM0 (serial)

arduino-cli monitor --timestamp --quiet -p /dev/ttyACM0 -b arduino:avr:uno

Tested with that game

https://konubinix.eu/ipfs/bafybeibrau5sanol4o2qlluhxt6wqgm7kadx7a76eqattqbj7as6czj454

uv run pong2.py