Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbea7237

Browse files
authored
feat: add a boot message (#26)
1 parentc82bb3a commitbea7237

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

‎.github/workflows/arduino.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ jobs:
2929
- snsd/snsd.ino
3030
cli-compile-flags:|
3131
- --warnings="none"
32+
- --build-property
33+
- build.partitions=min_spiffs
34+
- --build-property
35+
- upload.maximum_size=1966080
3236
libraries:|
3337
- name: ArduinoJson
3438
- name: uBitcoin

‎build.sh‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ arduino-cli upgrade
66
arduino-cli core install esp32:esp32@2.0.17
77
arduino-cli lib install ArduinoJson uBitcoin Base64 gmp-ino
88
arduino-cli compile \
9+
--build-property"build.partitions=min_spiffs" \
10+
--build-property"upload.maximum_size=1966080" \
911
--library ./libraries/TFT_eSPI \
1012
--library ./libraries/QRCode \
1113
--library ./libraries/tiny-AES-c \

‎snsd/800_setup.ino‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ void loadDarkMode() {
77
}else {
88
global.darkMode =true;// Default to dark mode
99
}
10-
10+
1111
// Set colors based on mode
1212
if (global.darkMode) {
1313
global.foregroundColor = TFT_WHITE;
@@ -32,10 +32,15 @@ void setup() {
3232
tft.setRotation(1);
3333
tft.invertDisplay(true);
3434

35+
showMessage("Booting...","please wait");
36+
3537
h.begin();
3638
FlashFS.begin(FORMAT_ON_FAIL);
3739
SPIFFS.begin(true);
3840

41+
// Full screen clear
42+
tft.fillScreen(global.backgroundColor);
43+
3944
// Migrate from single key to multi key
4045
if(SPIFFS.exists(global.legacyNostrSecretFileName.c_str())) {
4146
migrateKey();
@@ -54,7 +59,7 @@ void setup() {
5459
}
5560

5661
// Screen start up sequence
57-
loadPIN();
62+
loadPIN();
5863
loadDarkMode();
5964
displayLoginScreen();
6065
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp