Answers for "arduino write to console"

1

arduino write to console

void setup()
{
	int BAUD_RATE = 9600;
	Serial.begin(BAUD_RATE);
}

void loop()
{
	int PIN = 12
	int value = digitalRead(PIN);
    
	Serial.print("Hello World! \n");
    Serial.print("value: " + String(value) + "\n");
}
Posted by: Guest on September-28-2021

Browse Popular Code Answers by Language