Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update getting-started-web-editor.md #1151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
amanykhalifa wants to merge 1 commit into arduino:main from amanykhalifa:patch-2

Conversation

Copy link

@amanykhalifa amanykhalifa commented Jul 7, 2023

/*
DigitalReadSerial

Reads a digital input on pin 2, prints the result to the Serial Monitor

This example code is in the public domain.

https://www.arduino.cc/en/Tutorial/BuiltInExamples/DigitalReadSerial
*/

// digital pin 2 has a pushbutton attached to it. Give it a name:
int pushButton = 2;

// the setup routine runs once when you press reset:
void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
// make the pushbutton's pin an input:
pinMode(pushButton, INPUT);
}

// the loop routine runs over and over again forever:
void loop() {
// read the input pin:
int buttonState = digitalRead(pushButton);
// print out the state of the button:
Serial.println(buttonState);
delay(1); // delay in between reads for stability
}

Success. Saved on your online Sketchbook and done uploading Blink.
Copy link
Contributor

Hey @amanykhalifa! There seems to be no content updated in your contribution to this PR either. What is the issue that you were trying to solve, or how can we help? ⭐

@jhansson-ard jhansson-ard added community Bugs and fixes suggested by the community question Further information is requested labels Jul 7, 2023
Copy link
Contributor

Hello @amanykhalifa! Since there is no changes to your PR, I will close this now.

If there are still or any new issues, please don't hesitate to open an issue.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
community Bugs and fixes suggested by the community question Further information is requested
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /