Přidání konstant pro piny
This commit is contained in:
+15
-2
@@ -1,8 +1,21 @@
|
||||
#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() {
|
||||
// write your initialization code here
|
||||
|
||||
}
|
||||
|
||||
void loop() {
|
||||
// write your code here
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user