File: SerialPrint.ino

package info (click to toggle)
arduino-mk 1.5.2-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 456 kB
  • sloc: sh: 292; ansic: 113; makefile: 67; python: 40
file content (10 lines) | stat: -rw-r--r-- 152 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
void setup() {
	Serial.begin(9600);
	Serial.print("Press any key: ");
}

void loop() {
	if (Serial.available()) {
		Serial.println(Serial.read());
	}
}