Skip to content

Commit 06f6d69

Browse files
Use INPUT_PULLUP, for better compatibility with non-AVR boards
1 parent e7190ea commit 06f6d69

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

EasyTransfer/examples/EasyTransfer_2Way_wPot_Example/EasyTransfer_2Way_wPot_Example.pde

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ void setup(){
4646
ETout.begin(details(txdata), &Serial);
4747

4848
pinMode(13, OUTPUT);
49-
pinMode(12, INPUT);
5049
//enable pull-up
51-
digitalWrite(12, HIGH);
50+
pinMode(12, INPUT_PULLUP);
5251

5352
}
5453

EasyTransfer/examples/EasyTransfer_2Way_wServo_Example/EasyTransfer_2Way_wServo_Example.pde

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@ void setup(){
4747
ETout.begin(details(txdata), &Serial);
4848

4949
pinMode(13, OUTPUT);
50-
pinMode(12, INPUT);
5150
//enable pull-up
52-
digitalWrite(12, HIGH);
51+
pinMode(12, INPUT_PULLUP);
5352

5453
myservo.attach(9);
5554
}

0 commit comments

Comments
 (0)