analogread_demo.ino 357 Bytes
/*
 * Read analogue data, send it on
 * 
 * A starting point for a robot monitoring system
 * By the UoN Robot Wars project, 2018
 * This code is under the GPL
 */

#include <math.h>
 
void setup() {
  Serial.begin(9600);
  Serial.println("Hello, World");
  pinMode(13, OUTPUT);
}

void loop() {
  float avalue = analogRead(A0);
  Serial.println(avalue);
}