Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexGyver committed Apr 28, 2021
1 parent 542c5a7 commit 4f17a5d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion EncButton/EncButton.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ enum eb_callback {
template < bool MODE, uint8_t S1, uint8_t S2 = 255, uint8_t KEY = 255 >
class EncButton {
public:
void pullup() {
void pullUp() {
if (S2 == 255) { // обычная кнопка
pinMode(S1, INPUT_PULLUP);
} else if (KEY == 255) { // энк без кнопки
Expand Down
2 changes: 1 addition & 1 deletion EncButton/examples/callbackMode/callbackMode.ino
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ EncButton<EB_CALLBACK, 2, 3, 4> enc; // энкодер с кнопкой <A, B

void setup() {
Serial.begin(9600);
// enc.pullup(); // подтянуть все пины внутренней подтяжкой
// enc.pullUp(); // подтянуть все пины внутренней подтяжкой
enc.counter = 100; // изменение счётчика
enc.attach(TURN_HANDLER, myTurn);
enc.attach(RIGHT_HANDLER, myRight);
Expand Down
2 changes: 1 addition & 1 deletion EncButton/examples/tickMode/tickMode.ino
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ EncButton<EB_TICK, 2, 3, 4> enc; // энкодер с кнопкой <A, B, KE
void setup() {
Serial.begin(9600);
enc.counter = 100; // изменение счётчика
// enc.pullup(); // подтянуть все пины внутренней подтяжкой
// enc.pullUp(); // подтянуть все пины внутренней подтяжкой
}

void loop() {
Expand Down
2 changes: 1 addition & 1 deletion EncButton/keywords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ attach KEYWORD2
detach KEYWORD2
attachClicks KEYWORD2
detachClicks KEYWORD2
pullup KEYWORD2
pullUp KEYWORD2

#######################################
# Constants (LITERAL1)
Expand Down

0 comments on commit 4f17a5d

Please sign in to comment.