-
-
Notifications
You must be signed in to change notification settings - Fork 2
Implement nspanel_blank.tft for NSPanel Easy project
#25
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
Merged
Changes from 7 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
0ff45ce
Implement `nspanel_blank.tft` for NSPanel Easy project
edwardtfn 54ad00f
Fix docs to blank page
edwardtfn 1b66319
style: auto-fix markdown lint issues
edwardtfn f720836
select the correct final regional model
edwardtfn 34f2e6f
style: auto-fix markdown lint issues
edwardtfn 0b7d08d
Use model names as shown in UI
edwardtfn 4498a55
Merge branch 'blank-tft' of https://github.com/edwardtfn/NSPanel-Easy…
edwardtfn b919682
Keep final TFT options consistent across sections
edwardtfn 4e731cd
Merge branch 'main' into blank-tft
edwardtfn ac9c4e4
Improve bug report template for log guidelines
edwardtfn 106b1c5
Refactor ESPHome Logs section in bug template
edwardtfn e4edb73
Update bug report template for log relevancy
edwardtfn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,58 @@ | ||
| # NSPanel Blank - First TFT Installation | ||
|
|
||
| The NSPanel consists of an ESP32 board (the panel itself, controlling the relays, buttons, communications, etc.) | ||
| with a Nextion display connected to it. | ||
|
|
||
| This Nextion display has an independent controller which also requires a firmware and its settings (the basic layout), | ||
| and this is done by a `.tft` file. | ||
|
|
||
| When you get your panel from Sonoff, their `tft` file is installed in the Nextion display using a so-called "Reparse mode", | ||
| which makes it a bit challenging to replace the `tft` file when using ESPHome. | ||
| We highly recommend selecting **NSPanel Blank** as your first upload (this is the default for new installations), | ||
| as it is just a fraction of the size of a regular `tft` file and will make the first replacement much easier. | ||
|
|
||
| Once the NSPanel's original `tft` is replaced, it is much easier to install a new `tft` with ESPHome, | ||
| so you can proceed directly to installing the final file (either `nspanel_eu.tft`, `nspanel_us.tft` or `nspanel_us_land.tft`). | ||
|
|
||
| For more details on how to install the first `tft` file, especially if your panel is still displaying the original Sonoff screen, | ||
| please refer to the [Troubleshooting TFT transfer](tft_upload.md) guide. | ||
|
|
||
| ## How to install a different `tft` file? | ||
|
|
||
| Go to your device's page (under **Settings** > **Devices & services** > **ESPHome**), | ||
| select your **Upload TFT display - Model** and then press **Upload TFT display**. | ||
|
|
||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|  | ||
|
|
||
| ## What to do after installing **NSPanel Blank**? | ||
|
|
||
|  | ||
|
|
||
| Once you have successfully installed any of the `tft` files from this project, | ||
| the **NSPanel Blank** model shouldn't be necessary anymore and you should be able to always install the final `tft` file directly. | ||
|
|
||
| Follow the same steps described above, but now select the correct final regional model | ||
| (e.g., **NSPanel EU**, **NSPanel US**, **NSPanel US Landscape**, or one of the **CJK languages** variants) | ||
| before pressing **Upload TFT display**. | ||
| Double-check this selection to avoid flashing the wrong region. | ||
|
|
||
| ## Additional Tips and Resources | ||
|
|
||
| We have a useful guide for [troubleshooting TFT transfer issues](tft_upload.md). | ||
| Please take a look there first. | ||
|
|
||
| After troubleshooting, if issues persist, consult the [Issues](https://github.com/edwardtfn/NSPanel-Easy/issues) | ||
| and feel free to create a new one asking for more personalized assistance. | ||
|
|
||
| Please share as much info as possible, like: | ||
|
|
||
| 1. A description (or picture) of what is on your screen. | ||
| 2. Whether you are updating from a previous version of this same project, | ||
| coming from another NSPanel customization (if so, which one?), | ||
| or customizing for the first time a panel with original Sonoff settings. | ||
| 3. The ESPHome logs from when your panel starts to the moment the upload fails. | ||
| 4. A description of what you have already tried. | ||
|
|
||
| ## Important note | ||
|
|
||
| Remember, these steps are a guideline and might vary slightly based on your specific setup and previously installed system. | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,10 @@ | ||
| Program.s | ||
| //The following code is only run once when power on, and is generally used for global variable definition and power on initialization data | ||
| int sys0=0 | ||
| int display_mode=4 // 1 = EU, 2 = US, 3 = US landscape, 4 = blank | ||
| int charset=1 | ||
| dim=100//Configure backlight | ||
| recmod=0//Serial data parsing mode:0-Passive mode;1-Active mode | ||
| bauds=115200 | ||
| printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port | ||
| page 0 //Power on start page 0 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.