I just wired up a new project, some simple push-buttons to my uno. I tried testing one with some very simple code:
void setup()
{
Serial.begin(9600);
}
void loop()
{
Serial.write(analogRead(0));
}
Upon opening the serial monitor, I get a spewing of random ascii characters. I've tried unplugging the uno from the usb, resetting it, redownloading the code, and resetting my pc. I'm pretty sure I haven't shorted anything, and I haven't put current anywhere it shouldn't go. What could be the cause of this?