aboutsummaryrefslogtreecommitdiff
path: root/ESP32Test
diff options
context:
space:
mode:
authorSjory <Mgj32000@gmail.com>2023-10-16 14:20:45 +0200
committerSjory <Mgj32000@gmail.com>2023-10-16 14:20:45 +0200
commite943ca101e13b6dc669e9024be7c286a9ba4cf63 (patch)
tree338f48cc2bb057a312c0f4282336f2f6bed57d82 /ESP32Test
parentb6835d90d6e8b25ad7d51e3e0643098aabd7d788 (diff)
ESP connect
Created and teste controlling simple LED with ESP in the Arduino IDE.....not simple for me...-.-
Diffstat (limited to 'ESP32Test')
-rw-r--r--ESP32Test/ESP32Test.ino22
1 files changed, 22 insertions, 0 deletions
diff --git a/ESP32Test/ESP32Test.ino b/ESP32Test/ESP32Test.ino
new file mode 100644
index 0000000..e1cb1c7
--- /dev/null
+++ b/ESP32Test/ESP32Test.ino
@@ -0,0 +1,22 @@
+#include <Arduino.h>
+#include <ESP32Servo.h>
+
+Servo myServo;
+int servoPin = 12;
+
+void setup() {
+ //myServo.attach(servoPin);
+ //myServo.write(0);
+ Serial.begin(115200);
+ pinMode(2, OUTPUT);
+}
+
+void loop() {
+ digitalWrite(13, HIGH);
+ Serial.write(High);
+ delay(1000);
+ digitalWrite(13, LOW);
+
+ Serial.write("Low");
+ delay(1000);
+} \ No newline at end of file