Skip to content

A Hardware Hacking Tool with Web-Based CLI That Speaks Every Protocol

update main to display logo and waitpress for devices with screen only

Geo902999ca58e2
diff --git a/src/main.cpp b/src/main.cpp
index 37cfb0e8..e36f86d8 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -64,6 +64,8 @@ void setup() {
deviceView.setRotation(3);
StickInput deviceInput;
M5.Power.setExtOutput(false);
+ deviceView.logo();
+ deviceInput.waitPress(3000);
#elif DEVICE_CARDPUTER
// Setup the Cardputer
#include <M5Unified.h>
@@ -72,6 +74,8 @@ void setup() {
M5DeviceView deviceView;
deviceView.setRotation(1);
CardputerInput deviceInput;
+ deviceView.logo();
+ deviceInput.waitPress(3000);
#elif DEVICE_M5STAMPS3
// Setup the StampS3/AtomS3
#include <M5Unified.h>
@@ -83,13 +87,14 @@ void setup() {
// Setup the T-embed
TembedDeviceView deviceView;
TembedInput deviceInput;
+ deviceView.logo();
+ deviceInput.waitPress(3000);
#else
// Fallback to S3 dev kit
NoScreenDeviceView deviceView;
S3DevKitInput deviceInput;
#endif
- deviceView.logo();
GlobalState& state = GlobalState::getInstance();
LittleFsService littleFsService;