Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: awawa-dev
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every month
interval: "monthly"
12 changes: 5 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: PlatformIO Build All

on:
push:
branches: [ master ]
workflow_dispatch:

jobs:
Expand All @@ -21,14 +20,13 @@ jobs:
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
pip install --upgrade platformio esptool

- name: Build All Environments (except ESP32-C6)
run: pio run

- name: Build ESP32-C6
- name: Build All Environments
run: |
pio run -e esp32c6
pio run -e esp32c3 -e esp32s3 -e esp32c6
pio run -e esp32 -e esp32s2 -e esp8266
pio run -e pico -e pico2

- name: Upload Artifacts
uses: actions/upload-artifact@v6
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
.vscode/extensions.json
.vscode/settings.json
src/idf_component.yml
src/idf_component.yml.orig
include/web_resources.h
release/
58 changes: 58 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Build ESP Core 2.x",
"type": "shell",
"command": "pio run -e esp32 -e esp32s2 -e esp8266",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "shared" },
"options": {
"env": {
"PATH": "${userHome}/.platformio/penv/Scripts;${userHome}/.platformio/penv;${env:PATH}",
"PYTHONPATH": ""
}
}
},
{
"label": "Build ESP Core 3.x",
"type": "shell",
"command": "pio run -e esp32c3 -e esp32s3 -e esp32c6",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "shared" },
"options": {
"env": {
"PATH": "${userHome}/.platformio/penv/Scripts;${userHome}/.platformio/penv;${env:PATH}",
"PYTHONPATH": ""
}
}
},
{
"label": "Build RP2040",
"type": "shell",
"command": "pio run -e pico -e pico2",
"problemMatcher": [],
"presentation": { "reveal": "always", "panel": "shared" },
"options": {
"env": {
"PATH": "${userHome}/.platformio/penv/Scripts;${userHome}/.platformio/penv;${env:PATH}",
"PYTHONPATH": ""
}
}
},
{
"label": "Build ALL",
"dependsOn": [
"Build ESP Core 3.x",
"Build ESP Core 2.x",
"Build RP2040"
],
"dependsOrder": "sequence",
"group": {
"kind": "build",
"isDefault": true
},
"presentation": { "reveal": "always", "panel": "shared" }
}
]
}
File renamed without changes.
15 changes: 15 additions & 0 deletions data/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.logo-h {
display: inline-block;
width: 24px;
height: 24px;
background: url("/img/hyperk.png") no-repeat center;
background-size: contain;
vertical-align: middle;
}

.yperk {
color: #E78080;
}
.perk {
color: #E70000;
}
Binary file added data/img/hyperk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion data/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hyperk</title>
<link rel="stylesheet" href="/css/pico.min.css?v=1">
<link rel="stylesheet" href="/style.css?v=1">
<link rel="stylesheet" href="/css/style.css?v=1">
<link rel="stylesheet" href="/css/settings.css?v=1">
<link id="favicon" rel="icon" type="image/png" href="/img/hyperk.png?v=1">
</head>
<body>
<nav class="container-fluid">
Expand Down
7 changes: 4 additions & 3 deletions data/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Settings - Hyperk</title>
<link rel="stylesheet" href="/css/pico.min.css?v=1">
<link rel="stylesheet" href="/style.css?v=1">
<link rel="stylesheet" href="/settings.css?v=1">
<link rel="stylesheet" href="/css/style.css?v=1">
<link rel="stylesheet" href="/css/settings.css?v=1">
<link id="favicon" rel="icon" type="image/png" href="/img/hyperk.png?v=1">
</head>
<body>

Expand Down Expand Up @@ -73,7 +74,7 @@ <h5>White channel calibration</h5>
</div>

<label>Data Pin (GPIO)
<input type="number" name="dataPin" min="0" max="39" value="2" required>
<input type="number" name="dataPin" min="0" max="48" value="2" required>
</label>

<label>Clock Pin (only for SPI LEDs)
Expand Down
14 changes: 8 additions & 6 deletions data/stats.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Stats - Hyperk</title>
<link rel="stylesheet" href="/css/pico.min.css?v=1">
<link rel="stylesheet" href="/style.css?v=1">
<link rel="stylesheet" href="/css/style.css?v=1">
<link rel="stylesheet" href="/css/settings.css?v=1">
<link id="favicon" rel="icon" type="image/png" href="/img/hyperk.png?v=1">
</head>
<body>
<nav class="container-fluid">
Expand All @@ -23,12 +25,11 @@

<main class="container">
<h1>System Statistics</h1>

<hr>
<table>
<thead>
<tr><th>Parameter</th><th>Value</th></tr>
</thead>
<thead></thead>
<tbody>
<tr><td>Version</td><td id="stat-version">Loading...</td></tr>
<tr><td>Device Name</td><td id="stat-device">Loading...</td></tr>
<tr><td>IP Address</td><td id="stat-ip">Loading...</td></tr>
<tr><td>Signal Strength</td><td id="stat-rssi">Loading...</td></tr>
Expand All @@ -52,7 +53,8 @@ <h1>System Statistics</h1>
let h = Math.floor(t / 3600), m = Math.floor(t / 60) % 60, s = t % 60;
let uptime = h > 0 ? `${h}:${String(m).padStart(2, '0')}:${String(s).padStart(2, '0')}` :
m > 0 ? `${m}:${String(s).padStart(2, '0')}` : `${s}s`;
document.getElementById('stat-device').innerText = data.DEVICE;
document.getElementById('stat-version').innerText = data.VERSION;
document.getElementById('stat-device').innerText = data.DEVICE;
document.getElementById('stat-ip').innerText = data.IP;
document.getElementById('stat-rssi').innerText = data.RSSI;
document.getElementById('stat-uptime').innerText = uptime;
Expand Down
15 changes: 0 additions & 15 deletions data/style.css

This file was deleted.

11 changes: 0 additions & 11 deletions partitions.csv

This file was deleted.

6 changes: 6 additions & 0 deletions partitions_4mb.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, 0x1D0000,
app1, app, ota_1, 0x1E0000, 0x1D0000,
spiffs, data, spiffs, 0x3B0000, 0x50000,
7 changes: 0 additions & 7 deletions partitions_8mb.csv

This file was deleted.

51 changes: 23 additions & 28 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,58 +13,48 @@ custom_max_leds = 2000
lib_deps =
esp32async/ESPAsyncWebServer @ 3.9.6
bblanchon/ArduinoJson @ 7.4.0
makuna/NeoPixelBus @ 2.8.4

build_flags =
-DAPP_NAME=\"Hyperk\"

; ==================================================
; Build all configuration
; ==================================================

[platformio]
default_envs = esp32, esp32s2, esp32s3, esp32c3, pico, pico2, esp8266

; ==================================================
; ESP32
; ESP32, S2 (Core 2.x, NeoPixelBus)
; ==================================================

[env:esp32]
platform = espressif32 @ 6.7.0
board = esp32dev
board_build.partitions = partitions.csv
board_build.partitions = partitions_4mb.csv
board_build.filesystem = littlefs
framework = arduino

lib_deps =
${env.lib_deps}
makuna/NeoPixelBus @ 2.8.4

build_flags =
${env.build_flags}
-DMAX_LEDS=${env.custom_max_leds}

; ==================================================
; ESP32-S2, S3, C3, C6 (esp32 is shared)
; ==================================================

[env:esp32s2]
extends = env:esp32
board = esp32-s2-saola-1

[env:esp32s3]
extends = env:esp32
board = esp32-s3-devkitc-1
; ==================================================
; ESP32-S3, C3, C6 (Core 3.x, FastLED)
; ==================================================

[env:esp32c3]
extends = env:esp32
board = esp32-c3-devkitm-1

[env:esp32c6]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.37/platform-espressif32.zip
board = esp32-c6-devkitc-1
board_build.partitions = partitions_8mb.csv
board = esp32-c3-devkitm-1
board_build.partitions = partitions_4mb.csv
board_build.filesystem = littlefs
framework = arduino

lib_deps =
${env.lib_deps}
fastled/FastLED @ 3.10.3

extra_scripts =
${env.extra_scripts}

Expand All @@ -74,11 +64,14 @@ build_flags =
-DUSE_FASTLED
-DFASTLED_RMT_MAX_CHANNELS=1

lib_deps =
${env.lib_deps}
fastled/FastLED @ 3.10.3

lib_ignore = NeoPixelBus
[env:esp32s3]
extends = env:esp32c3
board = esp32-s3-devkitc-1

[env:esp32c6]
extends = env:esp32c3
board = esp32-c6-devkitc-1

; ==================================================
; ESP8266
; ==================================================
Expand All @@ -91,6 +84,7 @@ board_build.ldscript = eagle.flash.4m1m.ld

lib_deps =
${env.lib_deps}
makuna/NeoPixelBus @ 2.8.4

build_flags =
${env.build_flags}
Expand All @@ -110,6 +104,7 @@ board_build.filesystem_size = 0.5m

lib_deps =
${env.lib_deps}
makuna/NeoPixelBus @ 2.8.4

build_flags =
${env.build_flags}
Expand Down
Loading