-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
669 additions
and
304 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include <ESP32-targz.h> | ||
|
||
void setup() { | ||
|
||
Serial.begin( 115200 ); | ||
|
||
SPIFFS.begin( true ); | ||
|
||
// extract content from gz file | ||
gzExpander(SPIFFS, "/index_html.gz", SPIFFS, "/index.html"); | ||
|
||
gzExpander(SPIFFS, "/tbz.gz", SPIFFS, "/tbz.jpg"); | ||
|
||
tarGzListDir( SPIFFS, "/"); | ||
|
||
} | ||
|
||
void loop() { | ||
|
||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include <ESP32-targz.h> | ||
|
||
void setup() { | ||
|
||
Serial.begin( 115200 ); | ||
|
||
SPIFFS.begin(true); | ||
|
||
// expand tar contents to /tmp folder | ||
tarExpander(SPIFFS, "/tobozo.tar", SPIFFS, "/tmp"); | ||
|
||
tarGzListDir( SPIFFS, "/tmp"); | ||
|
||
} | ||
|
||
void loop() { | ||
|
||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include <ESP32-targz.h> | ||
|
||
void setup() { | ||
|
||
Serial.begin( 115200 ); | ||
|
||
SPIFFS.begin(true); | ||
|
||
// direct .tar.gz to file expanding | ||
tarGzExpander(SPIFFS, "/tbz.tar.gz", SPIFFS, "/tmp"); | ||
|
||
tarGzListDir( SPIFFS, "/tmp"); | ||
|
||
} | ||
|
||
void loop() { | ||
|
||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#include <ESP32-targz.h> | ||
|
||
#define BUTTON_PIN 32 | ||
|
||
void setup() { | ||
|
||
Serial.begin( 115200 ); | ||
|
||
pinMode( BUTTON_PIN, INPUT_PULLUP ); | ||
|
||
} | ||
|
||
void loop() { | ||
|
||
if( digitalRead( BUTTON_PIN ) == LOW ) { | ||
|
||
SPIFFS.begin(true); | ||
|
||
// flash the ESP with gz's contents (gzip the bin yourself and use the spiffs uploader) | ||
gzUpdater(SPIFFS, "/menu_bin.gz"); | ||
|
||
} | ||
|
||
} |
Oops, something went wrong.