This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Arduino.h> | |
// Source: | |
// https://web.archive.org/web/20160815200234/https://www.circuitsathome.com/mcu/programming/reading-rotary-encoder-on-arduino | |
const uint8_t ROTARY_PIN_A = 1; // TX | |
const uint8_t ROTARY_PIN_B = 3; // RX | |
int8_t rotaryValue = 0; |
OlderNewer