Created
October 22, 2021 11:09
-
-
Save hollyhockberry/063f5887d6929720417945da6e80cf64 to your computer and use it in GitHub Desktop.
M5 Fader unit: Fader in
This file contains 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> | |
constexpr int pin_fader = 33; | |
void setup() { | |
Serial.begin(115200); | |
::pinMode(pin_fader, INPUT); | |
} | |
void loop() { | |
const auto v = ::analogRead(pin_fader); | |
Serial.printf("%d\r\n", v); | |
::delay(100); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment