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

Nologo-ESP32-S3-Pico

Link

esp32s3pico

esp32s3picofoot

  • 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->ESP32S3 Dev Module
  • Tool->Port->/dev/tty*(should be TAMC Termod S3)
  • Run with these code & Upload:
#include "Freenove_WS2812_Lib_for_ESP32.h"

#define LEDS_COUNT  8
#define LEDS_PIN	21
#define CHANNEL		0

Freenove_ESP32_WS2812 strip = Freenove_ESP32_WS2812(LEDS_COUNT, LEDS_PIN, CHANNEL, TYPE_GRB);

void setup() {
  strip.begin();
  strip.setBrightness(5);  
}

void loop() {
  for (int j = 0; j < 255; j += 2) {
    for (int i = 0; i < LEDS_COUNT; i++) {
      strip.setLedColorData(i, strip.Wheel((i * 256 / LEDS_COUNT + j) & 255));
    }
    strip.show();
    delay(5);
  }  
}

@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