Questions about connecting a 4.0" SPI color touch display with a ST7796S controller/driver IC and without own µC September 17, 2022 10:46AM |
Registered: 1 year ago Posts: 21 |
Re: Showing µC workload September 17, 2022 11:24AM |
Admin Registered: 13 years ago Posts: 7,001 |
#define MAX7219_DEBUG_PROFILE 6 // Display the fraction of CPU time spent in profiled code on this LED matrix // row. By default idle() is profiled so this shows how "idle" the processor is. // See class CodeProfiler.
Re: Showing µC workload September 17, 2022 11:52AM |
Admin Registered: 13 years ago Posts: 7,001 |
Re: Showing µC workload September 18, 2022 11:50AM |
Registered: 1 year ago Posts: 21 |
Quote
Dust
Since its not an operating system running tasks, there is no cpu workload as such.....
you can enable MAX7219_DEBUG_PROFILE after attaching a MAX7219 8x8 led display
#define MAX7219_DEBUG_PROFILE 6 // Display the fraction of CPU time spent in profiled code on this LED matrix // row. By default idle() is profiled so this shows how "idle" the processor is. // See class CodeProfiler.
Quote
Dust
Also note, this linked display is just that a display.
Quote
Dust
It has no touch interface.
Quote
Dust
Marlin expects a touch interface with this type of display (at least currently)
email from jmz52 September 18, 2022 12:14PM |
Registered: 1 year ago Posts: 21 |
Re: Showing µC workload September 20, 2022 02:59AM |
Registered: 5 years ago Posts: 5 |
Quote
Dust
Marlin expects a touch interface with this type of display (at least currently)
Re: Showing µC workload September 20, 2022 03:10AM |
Registered: 5 years ago Posts: 5 |
It is supported.Quote
hcet14
The used touch IC is XPT2046. I'm pretty shure marlin is supporting that one.
Quote
hcet14
My next question would be, if there is a way to use a touch display with an encoder (I mean both at the same time). What I read so far, no way. This goes in that direction, but works just with 'intelligent' displays. Maybe I end up with an FR.
Re: Showing µC workload September 20, 2022 02:37PM |
Registered: 1 year ago Posts: 21 |
MmmmhhQuote
jmz
Touch is optional, you can use TFT screen with encoder.
What is "Touch controls"? I have no idea. Do you have a picture of that? define touch controls?Quote
jmz
Touch controls will not be displayed if touch support is not enabled in Configuration.h.
Ok. I'll probably come back, if I get that thing running.Quote
jmz
Unfortunately I can't recall if this space will be automatically used to display extra line of the menus or if you 'll need to tweak some #define to have this extra line.
Ok, I'll see.Quote
jmz
P.S. I was away for quite some time and this behavior might be changed/broken, but initial implementation of color UI for TFT screens supported all three variants of controls - touch only, both touch and encoder and encoder only.
I thought so.Quote
jmz
It is supported.Quote
hcet14
The used touch IC is XPT2046. I'm pretty shure marlin is supporting that one.
Quote
hcet14
My next question would be, if there is a way to use a touch display with an encoder (I mean both at the same time). What I read so far, no way. This goes in that direction, but works just with 'intelligent' displays. Maybe I end up with an FR.
Ok, I didn't know that. I understood touch screen and encoder disturb each other.Quote
jmz
As I wrote in my previous post you can use both touch and encoder for TFT screen.
If I have time next weekend, I'll draw a first schematic. Maybe disabling the encoder with CS from XPT2046.Quote
jmz
You need to make sure that pins you are connections your encoder to are not pulled down on your board. Otherwise you will get incorrect readings of encoder's state.
Re: Showing µC workload September 20, 2022 03:48PM |
Registered: 5 years ago Posts: 5 |
There are some image sin this thread - [github.com]Quote
hcet14
What is "Touch controls"? I have no idea. Do you have a picture of that? define touch controls?
It is quite the opposite actually. Touch screen mimics the encoder, so the main part of Marlin's code remains independent of type of screen and controls used.Quote
hcet14
Ok, I didn't know that. I understood touch screen and encoder disturb each other.
Re: Showing µC workload September 24, 2022 12:07PM |
Registered: 1 year ago Posts: 21 |
Quote
jmz
There are some image sin this thread - [github.com]
It's for 320x240 UI but the general idea is the same.
Quote
jmz
On menu screens there are 6 lines of text and navigation buttons (previous page, back to previous level, next page)
If "TOUCH_SCREEN" option is not enabled these controls will not be displayed and 7-th line of text can be displayed in this unused area.
Quote
jmz
Same for other screens - cancel, accept , decrease and increase buttons are only shown is TOUCH_SCREEN is defined.
Slider will still be displayed, as it is used to show range of possible values and current position.
But you will not be able to touch slider for fast parameter adjustment without TOUCH_SCREEN.
Quote
jmz
It is quite the opposite actually. Touch screen mimics the encoder, so the main part of Marlin's code remains independent of type of screen and controls used.
Re: Showing µC workload September 25, 2022 11:23AM |
Registered: 1 year ago Posts: 21 |
Quote
jmz
It is quite the opposite actually. Touch screen mimics the encoder, so the main part of Marlin's code remains independent of type of screen and controls used.
Re: Showing µC workload September 25, 2022 12:00PM |
Registered: 1 year ago Posts: 21 |
Re: Questions about connecting a 4.0" SPI color touch display with a ST7796S controller/driver IC and without own µC November 12, 2022 11:26AM |
Registered: 5 years ago Posts: 5 |
Re: Questions about connecting a 4.0" SPI color touch display with a ST7796S controller/driver IC and without own µC November 25, 2022 06:30AM |
Registered: 1 year ago Posts: 13 |