Display - ST7735 does not work st7735cmd,backlight,1
Moderators: grovkillen, Stuntteam, TD-er
Display - ST7735 does not work st7735cmd,backlight,1
Hi Dear!
I use this display
I'm using a module P116 Display - ST77xx TFT
I'm connecting it to Wemos D1 R1
GPIO 2 ► LED
GPIO 14 ► SCK
GPIO 13 ► SDA
GPIO 16 ► A0 (DS)
GPIO 15 ► RESET
GPIO 0 ► CS
GND ► GND
5.0 В ► VCC «+»
There are difficulties with some commands.
st7735cmd,backlight,1 and st7735cmd,backlight,100 - not work
st7735cmd,off and st7735cmd,on - It works fine
"Backlight percentage:" - It works fine on the settings page too
I use ESPEasy - custom_beta_ESP8266_1M
What does the triangle with an exclamation mark mean in the settings?
this display also has a flash card
How can I access it to save and read data?
I use this display
I'm using a module P116 Display - ST77xx TFT
I'm connecting it to Wemos D1 R1
GPIO 2 ► LED
GPIO 14 ► SCK
GPIO 13 ► SDA
GPIO 16 ► A0 (DS)
GPIO 15 ► RESET
GPIO 0 ► CS
GND ► GND
5.0 В ► VCC «+»
There are difficulties with some commands.
st7735cmd,backlight,1 and st7735cmd,backlight,100 - not work
st7735cmd,off and st7735cmd,on - It works fine
"Backlight percentage:" - It works fine on the settings page too
I use ESPEasy - custom_beta_ESP8266_1M
What does the triangle with an exclamation mark mean in the settings?
this display also has a flash card
How can I access it to save and read data?
Last edited by orskavto on 25 Feb 2024, 10:39, edited 2 times in total.
Re: Display - ST7735 does not work st7735cmd,backlight,1
The backlight commands do work as intended, but you have connected the LED pin of the display to 3.3V instead of GPIO-2...
These kind of displays usually work at a VCC of 3.3V, so connecting it to 5V is probably not the best choice.
For SD-card support you have to add
#define FEATURE_SD 1
to your Custom.h file (or "-DFEATURE_SD=1" in the pre_custom*.py script), and connect the SD_CS pin to a separate GPIO pin (the other SPI pins can be parallel to the display SPI pins) For SD card to work, both MISO and MOSI pins have to be connected (the display only uses MOSI)
The warning at the pin selector indicates that this GPIO has a special purpose during boot, so should not be pulled high or low, depending on its purpose, see: https://espeasy.readthedocs.io/en/lates ... pping-pins
These kind of displays usually work at a VCC of 3.3V, so connecting it to 5V is probably not the best choice.
For SD-card support you have to add
#define FEATURE_SD 1
to your Custom.h file (or "-DFEATURE_SD=1" in the pre_custom*.py script), and connect the SD_CS pin to a separate GPIO pin (the other SPI pins can be parallel to the display SPI pins) For SD card to work, both MISO and MOSI pins have to be connected (the display only uses MOSI)
The warning at the pin selector indicates that this GPIO has a special purpose during boot, so should not be pulled high or low, depending on its purpose, see: https://espeasy.readthedocs.io/en/lates ... pping-pins
/Ton (PayPal.me)
Re: Display - ST7735 does not work st7735cmd,backlight,1
I made a mistake when I wrote it. I actually connected it to GPIO2
In different examples from the Internet, the screen was connected in different ways. But if you think 3.3v is better, then I'll redo it.
My file pre_custom_esp82xx.py has a linkAth wrote: ↑25 Feb 2024, 10:13 For SD-card support you have to add
#define FEATURE_SD 1
to your Custom.h file (or "-DFEATURE_SD=1" in the pre_custom*.py script), and connect the SD_CS pin to a separate GPIO pin (the other SPI pins can be parallel to the display SPI pins) For SD card to work, both MISO and MOSI pins have to be connected (the display only uses MOSI)
Code: Select all
...
if os.path.isfile('src/Custom.h'):
custom_defines=["-DUSE_CUSTOM_H"]
else:
custom_defines=[
"-DCONTROLLER_SET_ALL",
"-DNOTIFIER_SET_NONE",
"-DPLUGIN_SET_NONE",
"-DUSES_P001",
...
To enable SD card support, I need to add this to the array:
...
custom_defines=[
"-FEATURE_SD", # add this ???
"-DCONTROLLER_SET_ALL",
...
Re: Display - ST7735 does not work st7735cmd,backlight,1
In there you need to prefix the defines with "-D"
Thus in C++: (in Custom.h file)
Or in the Python file:
Thus in C++: (in Custom.h file)
Code: Select all
#define FEATURE_SD 1
Code: Select all
custom_defines=[
"-DFEATURE_SD=1", # add this ???
"-DCONTROLLER_SET_ALL",
...
Re: Display - ST7735 does not work st7735cmd,backlight,1
OkTD-er wrote: ↑25 Feb 2024, 11:31 In there you need to prefix the defines with "-D"
Thus in C++: (in Custom.h file)
Or in the Python file:Code: Select all
#define FEATURE_SD 1
Code: Select all
custom_defines=[ "-DFEATURE_SD=1", # add this ??? "-DCONTROLLER_SET_ALL", ...
Thank You!
Re: Display - ST7735 does not work st7735cmd,backlight,1
I added "-DFEATURE_SD=1" to the file pre_custom_esp82xx.py
compiled and uploaded to the board
but the "SD-card" section on the "Hardware page" page did not appear
there were warnings during compilation:
<command-line>: warning: "FEATURE_SD" redefined
<command-line>: note: this is the location of the previous definition
compiled and uploaded to the board
but the "SD-card" section on the "Hardware page" page did not appear
there were warnings during compilation:
<command-line>: warning: "FEATURE_SD" redefined
<command-line>: note: this is the location of the previous definition
Re: Display - ST7735 does not work st7735cmd,backlight,1
Which custom build do you try to build?
Isn't an 1M build right?
Isn't an 1M build right?
Re: Display - ST7735 does not work st7735cmd,backlight,1
But which PlatformIO env do you select to build?
Re: Display - ST7735 does not work st7735cmd,backlight,1
That's an 1M build.
I guess you don't need to build for a node with only 1M of flash, do you?
So please try using a 4M build.
Also why using "beta"? That's using the latest Arduino code, which may have some issues regarding WiFi and memory usage.
Better just use to top one "Custom_274_ESP8266_4M1M"
I guess you don't need to build for a node with only 1M of flash, do you?
So please try using a 4M build.
Also why using "beta"? That's using the latest Arduino code, which may have some issues regarding WiFi and memory usage.
Better just use to top one "Custom_274_ESP8266_4M1M"
Re: Display - ST7735 does not work st7735cmd,backlight,1
When using a 4M flash unit, it's way more convenient to use the OTA Update Firmware feature, available at the Tools page of ESPEasy, and it also allows for more features, because it doesn't use the LIMIT_BUILD_SIZE flag for minimizing the code-size, f.e. by brute-forcing FEATURE_SD to Off/Disabled.
/Ton (PayPal.me)
Re: Display - ST7735 does not work st7735cmd,backlight,1
For ESPEasy-mega-20231225 in the custom build, the firmware update page looks like this:Ath wrote: ↑25 Feb 2024, 14:32 When using a 4M flash unit, it's way more convenient to use the OTA Update Firmware feature, available at the Tools page of ESPEasy, and it also allows for more features, because it doesn't use the LIMIT_BUILD_SIZE flag for minimizing the code-size, f.e. by brute-forcing FEATURE_SD to Off/Disabled.
Re: Display - ST7735 does not work st7735cmd,backlight,1
I tried compiling the Custom_274_ESP8266_4M1M build. The result was the same as for custom_beta_ESP8266_1MTD-er wrote: ↑25 Feb 2024, 14:27 That's an 1M build.
I guess you don't need to build for a node with only 1M of flash, do you?
So please try using a 4M build.
Also why using "beta"? That's using the latest Arduino code, which may have some issues regarding WiFi and memory usage.
Better just use to top one "Custom_274_ESP8266_4M1M"
Problems: "FEATURE_SD" redefined [enabled by default]
Code: Select all
<command-line>:0:0: warning: "FEATURE_SD" redefined
<command-line>:0:0: note: this is the location of the previous definition
And this is the Builder log https://drive.google.com/file/d/1o_q4RN ... sp=sharing
Re: Display - ST7735 does not work st7735cmd,backlight,1
the problem was partially solved when loading another source code.
now I have used the source code from this source https://github.com/letscontrolit/ESPEasy
I took the original source code from this source https://github.com/letscontrolit/ESPEasy/releases
now the compilation has passed, but there are still warnings
The firmware update page is also working fine now
now I have used the source code from this source https://github.com/letscontrolit/ESPEasy
I took the original source code from this source https://github.com/letscontrolit/ESPEasy/releases
now the compilation has passed, but there are still warnings
The firmware update page is also working fine now
Re: Display - ST7735 does not work st7735cmd,backlight,1
Hi Dear!
now I've connected it like this:
GPIO 2 ► LED
GPIO 14 ► SCK and SD_SCK
GPIO 13 ► SDA and SD_MOSI
GPIO 16 ► A0 (DS)
GPIO 15 ► RESET
GPIO 0 ► CS
GND ► GND
3.3 В ► VCC
GPIO 12 ► SD_MISO
GPIO 1 ► SD_CS
How can I find out that the SD card is connected and working?
I tried to find it in the documentation:
https://espeasy.readthedocs.io/en/lates ... ea=default
But I did not find any examples of writing to a CD card.
I need to save my work data somewhere, in case the power goes out. Also, save some user settings so that the user does not have to enter this data every time they turn on.
Re: Display - ST7735 does not work st7735cmd,backlight,1
You can use the SD Card filebrowser at the Tools page, where files can be uploaded and downloaded.orskavto wrote: ↑26 Feb 2024, 10:39 ...
How can I find out that the SD card is connected and working?
I tried to find it in the documentation:
https://espeasy.readthedocs.io/en/lates ... ea=default
But I did not find any examples of writing to a CD card.
You can upload .bmp files there, that can be displayed on the screen using the bmp sub-command for the st7735 command.
Also there is an option to store logging on the SD-card, by enabling the relevant options in Tools/Advanced. (You will have to manually clean-up by the time the SD cards is getting full)
Not sure what you are trying to say here. Any configuration items are stored in the usual settings files, but I wouldn't know what other stuff/work data you want to save?
/Ton (PayPal.me)
Re: Display - ST7735 does not work st7735cmd,backlight,1
OkAth wrote: ↑26 Feb 2024, 13:08 You can use the SD Card filebrowser at the Tools page, where files can be uploaded and downloaded.
You can upload .bmp files there, that can be displayed on the screen using the bmp sub-command for the st7735 command.
Also there is an option to store logging on the SD-card, by enabling the relevant options in Tools/Advanced. (You will have to manually clean-up by the time the SD cards is getting full)
I checked the Lock box on the SD card
I went to "Show files on SD card" it was empty
I have uploaded the 1232.bmp file
a message came out that the file was uploaded
I go back to "Show files on SD card", but there are no files there again. there is no log file and there is no 1232.bmp file
I can't figure out how it works.
I'm trying to make a whiskey filter. This is my first project. I haven't worked with arduino before.
there are two containers. Container No. 1 stands on the floor, container No. 2 stands high.
There is distillate in container No. 1 - this is the future whiskey
At the initial stage, the user must enter the strength of the distillate (parameter No. 1), and the strength of the final whiskey (parameter No. 2) that he wants to receive. Parameter No. 1 and No. 2 must be saved so that even if the electricity turns off, they remain after switching on.
Next, you need to save the date and time of the start of filtering.
then the pump turns on and pumps the distillate into container No. 2. when container No. 1 becomes empty, the pump turns off.
The distillate will drain under gravity through the carbon filter back into container No. 1. When container No. 2 becomes empty, the pump will turn on again and fill it. The number of such cycles should also remain even if the electricity is turned off.
During the distillate runoff, the Pulse counter will work in order to measure the volume of distillate.
Pulse counter data also needs to be saved.
Therefore, I wanted to use the SD card so as not to spoil the controller's flash. The SD card is cheaper than the controller and it will be easier to replace it.
But I can't figure out how I should create a file on the SD card using ESP Easy? how to write it down and how to read the saved data from it.
Re: Display - ST7735 does not work st7735cmd,backlight,1
When using the Back button of your browser the page is not refreshed, you have to either press F5/Ctrl-R or re-open the page from the Tools page to get an updated list.
There currently is no functionality like that. Usually the collected data is sent to a (MQTT?) Controller, that can possibly re-provide that data (requires some work to get going) when f.e. the Retain flag is enabled, or by other means.orskavto wrote: ↑26 Feb 2024, 13:48 ...
Therefore, I wanted to use the SD card so as not to spoil the controller's flash. The SD card is cheaper than the controller and it will be easier to replace it.
But I can't figure out how I should create a file on the SD card using ESP Easy? how to write it down and how to read the saved data from it.
ESPEasy normally only stores settings (on the regular Flash file-system), though it can store collected data using the Cache controller (only available in specific builds like MAX, or manually added to Custom builds), but no direct way to retrieve data from that cache for re-populating as measured values to a task. Last values will only be restored on warm boot, like when updating the firmware via the Tools page or when using the reboot command, but not on hard reset or after a power cycle.
/Ton (PayPal.me)
Re: Display - ST7735 does not work st7735cmd,backlight,1
I did an update and logged in again via Tools. there are no files anyway
It is sad.Ath wrote: ↑26 Feb 2024, 14:56 There currently is no functionality like that. Usually the collected data is sent to a (MQTT?) Controller, that can possibly re-provide that data (requires some work to get going) when f.e. the Retain flag is enabled, or by other means.
ESPEasy normally only stores settings (on the regular Flash file-system), though it can store collected data using the Cache controller (only available in specific builds like MAX, or manually added to Custom builds), but no direct way to retrieve data from that cache for re-populating as measured values to a task. Last values will only be restored on warm boot, like when updating the firmware via the Tools page or when using the reboot command, but not on hard reset or after a power cycle.
this deprives the device of autonomy. You will have to install an additional server device, this is no longer very convenient. I want to believe that this moment will be finalized, and a plugin will appear that will be able to write and read data from a CD card to support offline operation
Re: Display - ST7735 does not work st7735cmd,backlight,1
There are already a few feature requests registered in the ESPEasy Github repository, requesting similar features for storing the values more permanently, but none have yet been implemented. I don't recall if SD-Card storage was included in that list. more in the direction of FRAM modules or the RTC ram storage.
/Ton (PayPal.me)
Re: Display - ST7735 does not work st7735cmd,backlight,1
When using a SD card, please be aware not all SD cards are created equal and also the used file system and partition table can make a huge difference whether it will work or not.
As a rule of thumb: Older cards are often the better choice for these kinds of projects.
- Smaller (preferrably < 4 GB as all larger cards are guaranteed to be SD-HC or SD-XC)
- More chance not using (or requiring) multiple serial lanes for higher speed
- Still compatible with "SD" standard and not SD-HC or SD-XC only.
- FAT32 (or even FAT) formatted.
You can also try to format the card in some other device like an older camera as those will also create the most basic partitioning and file system parameters.
As a rule of thumb: Older cards are often the better choice for these kinds of projects.
- Smaller (preferrably < 4 GB as all larger cards are guaranteed to be SD-HC or SD-XC)
- More chance not using (or requiring) multiple serial lanes for higher speed
- Still compatible with "SD" standard and not SD-HC or SD-XC only.
- FAT32 (or even FAT) formatted.
You can also try to format the card in some other device like an older camera as those will also create the most basic partitioning and file system parameters.
Re: Display - ST7735 does not work st7735cmd,backlight,1
Yes, I saw messages on the forum with questions similar to mine. However, I hoped that a solution had been found. In fact, the concept of many dependent sensors, one server, is not the best. because if you lose the server, you lose everything. But if the sensors are independent, then if you lose the server, you do not lose anything except the server, you can take everything you need to a new server from autonomous sensors.Ath wrote: ↑26 Feb 2024, 22:25 There are already a few feature requests registered in the ESPEasy Github repository, requesting similar features for storing the values more permanently, but none have yet been implemented. I don't recall if SD-Card storage was included in that list. more in the direction of FRAM modules or the RTC ram storage.
therefore, it is better to connect the CD card as a separate plug-in, as well as, for example, a display, and work with it if necessary. This will greatly expand the boundaries of the project beyond the OS for sensors.
Re: Display - ST7735 does not work st7735cmd,backlight,1
Thank You Friend!TD-er wrote: ↑26 Feb 2024, 23:33 When using a SD card, please be aware not all SD cards are created equal and also the used file system and partition table can make a huge difference whether it will work or not.
As a rule of thumb: Older cards are often the better choice for these kinds of projects.
- Smaller (preferrably < 4 GB as all larger cards are guaranteed to be SD-HC or SD-XC)
- More chance not using (or requiring) multiple serial lanes for higher speed
- Still compatible with "SD" standard and not SD-HC or SD-XC only.
- FAT32 (or even FAT) formatted.
You can also try to format the card in some other device like an older camera as those will also create the most basic partitioning and file system parameters.
I will try
Re: Display - ST7735 does not work st7735cmd,backlight,1
How much storage do you actually need?
On 16M flash units, the file system is about 8 MB.
That's quite a lot and you can even log sensor data in binary form.
See the "cache controller" and the "Cache Reader plugin"
On 16M flash units, the file system is about 8 MB.
That's quite a lot and you can even log sensor data in binary form.
See the "cache controller" and the "Cache Reader plugin"
Who is online
Users browsing this forum: Google [Bot] and 0 guests