Skip to content

Instantly share code, notes, and snippets.

@MartinRGB
Created September 29, 2023 06:33
Show Gist options
  • Save MartinRGB/ead3e64bf5b1b8d6f2e0ad00cd79c0a5 to your computer and use it in GitHub Desktop.
Save MartinRGB/ead3e64bf5b1b8d6f2e0ad00cd79c0a5 to your computer and use it in GitHub Desktop.
ESP32 Hello World
@MartinRGB
Copy link
Author

MartinRGB commented Sep 29, 2023

LuatOS-ESP32-C3-CORE

Link

AirM2M CORE ESP32C3 in Arduino Board

20221023

  • File->Preferenece->URL->https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
  • Tool->Board->Board Manager->esp32->install
  • Tool->Board->esp32->ESP32C3 Dev Module
  • Tool->Port->/dev/tty*
  • Tool->Flash Mode->DIO
  • Run with these code & Upload:
#define LED_D4 13
#define LED_D5 12

void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  pinMode(LED_D4,OUTPUT);
  pinMode(LED_D5,OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
    Serial.println("Hello World!");
    digitalWrite(LED_D4,LOW);
    digitalWrite(LED_D5,HIGH);
    delay(500);
    digitalWrite(LED_D4,HIGH);
    digitalWrite(LED_D5,LOW);
    delay(500);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment