Přidání konstant pro piny

This commit is contained in:
Matěj Kubíček
2026-05-27 08:30:37 +02:00
parent cd448ebcc7
commit f89f83d05e
+15 -2
View File
@@ -1,8 +1,21 @@
#include <Arduino.h> #include <Arduino.h>
constexpr byte BTN = 6; // connected to GND on the other side
constexpr byte ENCODER_CLK = 8;
constexpr byte ENCODER_DT = 9;
constexpr byte ENCODER_SW = 12;
// common cathode
constexpr byte RGB_G = 3;
constexpr byte RGB_R = 5;
constexpr byte RGB_B = 11;
constexpr byte SERVO_PWM = 10;
void setup() { void setup() {
// write your initialization code here
} }
void loop() { void loop() {
// write your code here
} }