ESP32 DO


ESP32-DO Development Edition is a powerful and flexible development board suitable for the development of the Internet of Things, embedded systems and smart devices. Based on the ESP32 microcontroller, it has rich expansion interfaces and communication functions, and is compatible with development environments such as Arduino and MicroPython, enabling developers to quickly get started and develop and debug. Whether you are a beginner or an experienced developer, the ESP32-DO Development Edition is an ideal choice.The ESP32-Do development board has motor drivers and supports two motor drivers. There are two types of onboard motor interfaces: KF210 (ordinary motor) and Ph2.0-6P (encoded motor).

ESP32-DO|

''// 引入ESP32开发库
#include <Arduino.h>

// 定义LED灯引脚
const int ledPin = 13;

void setup() {
  // 初始化LED灯引脚
  pinMode(ledPin, OUTPUT);
}

void loop() {
  // 控制LED灯每隔一秒亮灭
  digitalWrite(ledPin, HIGH);
  delay(1000);
  digitalWrite(ledPin, LOW);
  delay(1000);
}
''
''import machine
import time

led_pin = machine.Pin(13, machine.Pin.OUT)

while True:
    led_pin.on()  # 点亮L13灯
    time.sleep(1)  # 延时1秒
    led_pin.off()  # 关闭L13灯
    time.sleep(1)  # 延时1秒

''
Rodrigo Solís, 2024/02/14 16:38

Hola, tienen algún código de ejemplo de como poder utilizar un motor de 2 pines tradicional, no me esta funcionando, saludos

请输入您的评论. 可以使用维基语法:
 
  • developmentboard/esp32_do.txt
  • 最后更改: 2023/09/04 07:56
  • admin12