Skip to content

Fix incorrect comments re: which click in Mouse example codes #205

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

Merged
merged 1 commit into from
Nov 9, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Language/Functions/USB/Mouse/mouseClick.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void setup(){
}

void loop(){
//if the button is pressed, send a Right mouse click
//if the button is pressed, send a left mouse click
if(digitalRead(2) == HIGH){
Mouse.click();
}
Expand Down
2 changes: 1 addition & 1 deletion Language/Functions/USB/Mouse/mouseEnd.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void setup(){
}

void loop(){
//if the button is pressed, send a Right mouse click
//if the button is pressed, send a left mouse click
//then end the Mouse emulation
if(digitalRead(2) == HIGH){
Mouse.click();
Expand Down
4 changes: 2 additions & 2 deletions Language/Functions/USB/Mouse/mouseIsPressed.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ void setup(){
void loop(){
//a variable for checking the button's state
int mouseState=0;
//if the switch attached to pin 2 is closed, press and hold the right mouse button and save the state ina variable
//if the switch attached to pin 2 is closed, press and hold the left mouse button and save the state ina variable
if(digitalRead(2) == HIGH){
Mouse.press();
mouseState=Mouse.isPressed();
}
//if the switch attached to pin 3 is closed, release the right mouse button and save the state in a variable
//if the switch attached to pin 3 is closed, release the left mouse button and save the state in a variable
if(digitalRead(3) == HIGH){
Mouse.release();
mouseState=Mouse.isPressed();
Expand Down
4 changes: 2 additions & 2 deletions Language/Functions/USB/Mouse/mousePress.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ void setup(){
}

void loop(){
//if the switch attached to pin 2 is closed, press and hold the right mouse button
//if the switch attached to pin 2 is closed, press and hold the left mouse button
if(digitalRead(2) == HIGH){
Mouse.press();
}
//if the switch attached to pin 3 is closed, release the right mouse button
//if the switch attached to pin 3 is closed, release the left mouse button
if(digitalRead(3) == HIGH){
Mouse.release();
}
Expand Down
4 changes: 2 additions & 2 deletions Language/Functions/USB/Mouse/mouseRelease.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ void setup(){
}

void loop(){
//if the switch attached to pin 2 is closed, press and hold the right mouse button
//if the switch attached to pin 2 is closed, press and hold the left mouse button
if(digitalRead(2) == HIGH){
Mouse.press();
}
//if the switch attached to pin 3 is closed, release the right mouse button
//if the switch attached to pin 3 is closed, release the left mouse button
if(digitalRead(3) == HIGH){
Mouse.release();
}
Expand Down