Skip to content

Commit

Permalink
Commit local files
Browse files Browse the repository at this point in the history
  • Loading branch information
realcharmer committed May 27, 2024
0 parents commit 932a944
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.pio/
18 changes: 18 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
PROJECT_DIR = $(CURDIR)
PLATFORMIO_BIN = /bin/pio

all: build upload

build:
$(PLATFORMIO_BIN) run -d $(PROJECT_DIR)

upload:
$(PLATFORMIO_BIN) run -d $(PROJECT_DIR) -t upload

clean:
$(PLATFORMIO_BIN) run -d $(PROJECT_DIR) -t clean

monitor:
$(PLATFORMIO_BIN) device monitor

.PHONY: all build upload clean monitor
6 changes: 6 additions & 0 deletions partitions.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, 0xe000, 0x2000,
app0, app, ota_0, 0x10000, 0x1E0000,
app1, app, ota_1, 0x1F0000, 0x1E0000,
spiffs, data, spiffs, 0x3D0000, 0x30000,
7 changes: 7 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[env:esp32-s3-devkitc-1]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
board_build.partitions = partitions.csv
board_upload.flash_size = 4MB
monitor_speed = 115200
10 changes: 10 additions & 0 deletions src/main.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include <Arduino.h>

void setup() {
Serial.begin(115200);
}

void loop() {
Serial.println("Hello!");
delay(1000);
}

0 comments on commit 932a944

Please sign in to comment.