v1.5增加一个舵机控制前档,逐步踢球交互效果

This commit is contained in:
myperworld committed 2025-12-24 14:52:14 +08:00
1 parent cbd5b6e0d2
commit dd18e674c2
16 files changed
+4081

No files matched your search

@@ -0,0 +1,25 @@
/*
*/
#include <ESP32Servo.h>
int pin = 2;
void setup() {
// Allow allocation of all timers
ESP32PWM::allocateTimer(0);
ESP32PWM::allocateTimer(1);
ESP32PWM::allocateTimer(2);
ESP32PWM::allocateTimer(3);
Serial.begin(115200);
}
void loop() {
tone(pin, 4186, // C
500); // half a second
tone(pin, 5274, // E
500); // half a second
delay(500);
}