Have you seen those little dedicated TFT meters? #2066
Replies: 8 comments 7 replies
-
This is quite simple to do. It is similar to the library examples. The meters can be used by users with no programming experience. It appears the signal analogue value has to be digitised elesewhere and then the meter is commanded by USB. I expect the meters could be hacked dependant on the processors etc. Notice that the needle does not sweep over anything but a background colour, this makes the meter very easy to implement. with a low cost processor. Incidentally, when I get time I may add more examples to the TFT_eWidget support library. |
Beta Was this translation helpful? Give feedback.
-
You're right,the background color must be used as transparent,but if i take an image from the reality like they do,i have |
Beta Was this translation helpful? Give feedback.
-
Here are the values found from the backgroud: #define TFT_TRANSPARENT(255 ,153 ,0) //like that? |
Beta Was this translation helpful? Give feedback.
-
That's finally working,i'm glad. |
Beta Was this translation helpful? Give feedback.
-
For now,i'm trying to make working a sketch that use a PNG file of 32Ko uploaded with LittleFS in a Wemos MiniD1, |
Beta Was this translation helpful? Give feedback.
-
Maybe you're right,but why SPIFFS works with 500ko bitmap in my "vuMeter sketch" ? |
Beta Was this translation helpful? Give feedback.
-
I believe you ,nodeMCU cannot stand it too,but fortunately i have got some new ESP12F-MOD with 16M flash,and now it's ok. Now i'm studying the "Rotated_Sprite2" sketch,with a clock face bitmap background in the SPIFFS, My problem is to make it clear with the needle because i have difficulties to set the length of the needle,the sketch only propose //--------------------------------------------------------------------------------------- needle.fillSprite(TFT_BLACK); // Fill with black // Define needle pivot point // Draw the red needle with a yellow tip i don't want the needle to fill the colored rectangles ,all i want i a needle (color red) with |
Beta Was this translation helpful? Give feedback.
-
yes it's lighter without that line of code, |
Beta Was this translation helpful? Give feedback.
-
Look at that:
https://fr.aliexpress.com/item/1005004649714249.html?ug_edm_item_id=1005004649714249&pdp_npi=2%40dis%21EUR%21%E2%82%AC%2018%2C39%21%E2%82%AC%2014%2C71%21%21%21%21%21%40212a793816651791069898906d29b5%2112000029976568340%21edm&edm_click_module=alg_products&tracelog=rowan&rowan_id1=aeug_edm_24687_1_fr_FR_2022-10-07&rowan_msg_id=0144biz_search_product%3A0%3A0_572449438%24fe08540b3708416e81cd3c96e3453abd&ck=in_edm_other&gatewayAdapt=glo2fra
I'm curious what bodmer can explain about that,is this only software or nextion-like tft?
It seems you can do what you want as meters-like,i can imagine what you can show with a 7inch tft :)
Beta Was this translation helpful? Give feedback.
All reactions