Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First time setup - Change the message on OLED #447

Open
STSMiner1 opened this issue Nov 3, 2024 · 5 comments
Open

First time setup - Change the message on OLED #447

STSMiner1 opened this issue Nov 3, 2024 · 5 comments

Comments

@STSMiner1
Copy link

STSMiner1 commented Nov 3, 2024

First Time Setup (this includes if the end user has "factory reset" their device).

OLED Display
Replace the SSID "myssid" to display a different message here to inform the end user that the device needs to be set up with their WiFi info from their WiFi router.

ie

"Connect to the SSID below to setup WiFi settings from your WiFi router !"

or

"Network setup REQUIRED, connect to SSID below via cell phone !"

Image example enclosed

FactoryState

@skot
Copy link
Owner

skot commented Nov 3, 2024

I like this. We'll have to work on the wording a bit to get it to fit.

We can use SSID == MYSSID as the condition for this mode.

@STSMiner1
Copy link
Author

STSMiner1 commented Nov 3, 2024

Here you go

All the .cvs files for the board versions....

401 example below

''key,type,encoding,value
main,namespace,,
hostname,data,string,bitaxe
wifissid,data,string,WiFi SETUP REQUIRED
wifipass,data,string,password
stratumurl,data,string,public-pool.io
stratumport,data,u16,21496
stratumuser,data,string,bc1qnp980s5fpp8l94p5cvttmtdqy8rvrq74qly2yrfmzkdsntqzlc5qkc4rkq.bitaxe
stratumpass,data,string,x
fbstratumurl,data,string,solo.ckpool.org
fbstratumport,data,u16,3333
fbstratumuser,data,string,bc1qnp980s5fpp8l94p5cvttmtdqy8rvrq74qly2yrfmzkdsntqzlc5qkc4rkq.bitaxe
fbstratumpass,data,string,x
asicfrequency,data,u16,490
asicvoltage,data,u16,1166
asicmodel,data,string,BM1368
devicemodel,data,string,supra
boardversion,data,string,401
flipscreen,data,u16,1
invertfanpol,data,u16,1
autofanspeed,data,u16,1
fanspeed,data,u16,100
selftest,data,u16,1
overheat_mode,data,u16,0"

FactoryState2

@skot
Copy link
Owner

skot commented Nov 3, 2024

Wow, yes that's a nice simple way to do it!

I still think we might want to have a "Initial Setup Mode" screen to make this even easier for the first-timers

@mutatrum
Copy link
Contributor

mutatrum commented Dec 12, 2024

This is fixed with #539.

ESP-Miner/main/screen.c

Lines 114 to 123 in ba6be3c

lv_obj_t *label1 = lv_label_create(scr);
lv_obj_set_width(label1, LV_HOR_RES);
lv_label_set_long_mode(label1, LV_LABEL_LONG_SCROLL_CIRCULAR);
lv_label_set_text(label1, "Welcome to your new Bitaxe! Connect to the configuration Wifi and connect the Bitaxe to your network.");
lv_obj_t *label2 = lv_label_create(scr);
lv_label_set_text(label2, "Configuration SSID:");
lv_obj_t *label3 = lv_label_create(scr);
lv_label_set_text(label3, module->ap_ssid);

@STSMiner1
Copy link
Author

See #623

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants