are we moving towards tft lcd price
TFT-LCD Modules range from small to medium sizes, such as 2.4" TFT LCD, 2.8" TFT LCD, 3.2" TFT LCD, 3.5" TFT Display, 4.3 inch TFT LCD, 5 TFT LCD, 5.6 TFT LCD, 5.7 inch Display, 7 " TFT LCD, 8" TFT, 9" TFT, 10.1" TFT LCD, 10.2" TFT LCD, 12.1" TFT LCD , 12.3" TFT LCD (diagonal size of the active area) and so on.
Due to the COVID-19 pandemic and Russia-Ukraine War Influence, the global market for TFT-LCD Modules estimated at USD million in the year 2022, is projected to reach a revised size of USD million by 2028, growing at a CAGR of % during the forecast period 2022-2028.
The USA market for TFT-LCD Modules is estimated to increase from USD million in 2022 to reach USD million by 2028, at a CAGR of % during the forecast period of 2023 through 2028.
The China market for TFT-LCD Modules is estimated to increase from USD million in 2022 to reach USD million by 2028, at a CAGR of % during the forecast period of 2023 through 2028.
The Europe market for TFT-LCD Modules is estimated to increase from USD million in 2022 to reach USD million by 2028, at a CAGR of % during the forecast period of 2023 through 2028.
The global key manufacturers of TFT-LCD Modules include Winstar, Mitsubishi Electric Corporation, Raystar Optronics, Vitek, SUNUL, Visionox, Shenzhen Frida LCD and Shenzhen Visus, etc. In 2021, the global top five players had a share approximately % in terms of revenue.
In terms of production side, this report researches the TFT-LCD Modules production, growth rate, market share by manufacturers and by region (region level and country level), from 2017 to 2022, and forecast to 2028.
In terms of sales side, this report focuses on the sales of TFT-LCD Modules by region (region level and country level), by company, by Type and by Application. from 2017 to 2022 and forecast to 2028.
This latest report researches the industry structure, capacity, production, sales (consumption), revenue, price and gross margin. Major producers" production locations, market shares, industry ranking and profiles are presented. The primary and secondary research is done in order to access up-to-date government regulations, market information and industry data. Data were collected from the TFT-LCD Modules manufacturers, distributors, end users, industry associations, governments" industry bureaus, industry publications, industry experts, third party database, and our in-house databases.
This report also includes a discussion of the major players across each regional TFT-LCD Modules market. Further, it explains the major drivers and regional dynamics of the global TFT-LCD Modules market and current trends within the industry.
This study also covers company profiling, specifications and product picture, sales, market share and contact information of various regional, international and local vendors of TFT-LCD Modules Market. The market proposition is frequently developing ahead with the rise in scientific innovation and MandA activities in the industry. Additionally, many local and regional vendors are offering specific application products for varied end-users. The new merchant applicants in the market are finding it hard to compete with the international vendors based on reliability, quality and modernism in technology.
In order to better understand Market condition five forces analysis is conducted that includes Bargaining power of buyers, Bargaining power of suppliers, Threat of new entrants, Threat of substitutes, Threat of rivalry.-Political (Political policy and stability as well as trade, fiscal and taxation policies)
â Comprehensive valuation of all prospects and threat in the â In depth study of industry strategies for growth of the TFT-LCD Modules market-leading players.
If you are in the market of color TFT LCD displays and you haven’t already been affected by the recent changes in the global market, then it’s just a matter of time. If you have recently asked, ‘What is going on with TFT-LCD panel prices lately?’, you are not alone. Here at Phoenix Display we have had a lot of questions regarding the TFT-LCD panel price increase that the market is seeing. We want to help explain what is happening, why it’s happening, and what to expect in the near future so that you can be aware of the effects and adjust accordingly.
In recent months there has developed a fair amount of uncertainty in regards to manufacturing conditions for TFT panels at the TFT glass fab level. This has caused a lot of fluctuation and volatility in both the supply and price of TFT panels. We are seeing that the price of TFTs has increased from 25% to 70% on average, and have seen some instances of a 2.5 times increase for the less common configurations. Combined with the fact that lead time is now only confirmed upon placing an actual order with payment in advance, in makes planning and producing around your color display product even more challenging.
One of the important things to realize with regards to TFT market conditions is that flat TFT panels in almost every size are currently in short supply. This is the first time this has happened in almost 20 years.
Some of the larger panel manufactures are exiting TN TFT manufacturing to focus on newer, more profitable technologies. The market has seen a trend towards low-temperature polysilicon (LTPS) TFT LCD panels, which provide customers lower power consumption along with higher resolution, along with a big shift into OLED to support wearables, the latest smart phone designs, and even the flat panel Television market as well.
In 2016 there has been a rise in the proportion of LTPS/Oxide TFT smartphone panel shipment production, rising to 34.6% market share compared to 29.8% in 2015. In the coming year we expect to see a variety of panel makers including CSOT, Taiwanese AUO, Chinese Tianma, and Japanese JDI, roll out new LTPS capacities eclipsing and impacting conventional TFT manufacturing. In May the industry had a shortage of television panels which was followed by a similar supply-demand dynamic for notebook and smartphone small panels. This was largely due to JDI, LG Display Co. and Samsung Display Inc., shutting down their production lines in these verticals.
In the last 5 months the TFT cell glass cost has been rapidly increasing, largely due to the influence of upstream LCD panel maker’s supply. As a result of these market fluctuations almost all TFT mother glass suppliers have increased their pricing across the board. Due to these new market impacts, we highly doubt that any of the major TFT mother glass manufacturers will reopen lines that have previously been closed. In fact, current trends lend us to believe that if these lines were ever reopened, they would be used for OLED production rather than TFT. We believe that the capacities problems the market is seeing is not a short-term problem, and will likely not ease until the second quarter of 2017, at the earliest. This leaves the current state of the market in a fair amount of turmoil as the suppliers battle the glass shortage and while offloading the increased cost to manufacturers.
While there is a trend at the manufacturing level to diversify away from traditional color TN TFT LCD display, the positive is there is still be a strong market for this product for years to come due to TN TFTs lower cost advantage and availability. In short, we don’t see TFT displays going away any time soon, but we will be impacted by higher costs and longer lead times for the near future.
You’ve already taken the first step by educating yourself on the issue. By preparing your business and supply chain for the increase in price and decrease in supply which lead to longer lead-times, you can mitigate potential delays and issues in your production. If you have any additional questions about TFT panels or any other standard or custom display needs, please
Shipments of large-area TFT LCD display panels dropped to historical lows in April as pandemic impacts combined with disruptions from the war in Europe and lockdowns in China to dampen demand, according to Omdia"s latest Large Area Display Market Tracker.
Large-area TFT LCD panel shipments decreased by 10% Month on Month (MoM) and 5% Year on Year (YoY) in April, to 74.1million units, representing historically low shipment performance since May 2020. Omdia defines large-area TFT LCD displays as larger than 9 inches.
"With continued ramifications from the pandemic, demand for IT panels for monitors and notebook PCs remained strong in 4Q21. But as the market became saturated starting in 2022, IT panel shipments started slowing in 1Q22 and early 2Q22," said Robin Wu, Principal Analyst for Large Area Display & Production, Omdia.
While TV panel prices have decreased noticeably since 3Q21, TV LCD panel shipments increased to a peak of 23.4 million in December 2021, driven by low prices. But rising inflation, the Ukraine crisis and continued lockdowns in China have slowed demand. As a result, TV panel shipments posted a 9% MoM decline in April, to 21.7million units.
"IT LCD panels could still deliver positive cash flow for panel makers. But with prices dropping dramatically, panel makers will soon start to lose money in their IT panel business," Wu said. "Maybe only then will panel makers reduce their glass input and the overall supply/demand situation will return to balance."
The TFT glass cell makers such as Tianma,Hanstar,BOE,CPT,Innolux has reduced or stopped the production of small and medium-sized tft glass cell for months due to the low profit and focus on the size of LCD TV,Tablet PC and Smart Phone .It results the glass cell price in the market is extremely high. We deeply regret that rapidly rising costs for tft glass cell necessitate our raising the price of tft display module.We have made every attempt to avoid the increase, we could accept no profit from the beginning,but the price is going up frequently ,we"re now losing a lot of money. We have no choice if we want to survive.
There is no certain answer for when the price would go back to the normal.We guess it will take 3-6 months until these glass cell suppliers recover the production capacity for small and medium-sized glass.
IPS (In-Plane Switching) lcd is still a type of TFT LCD, IPS TFT is also called SFT LCD (supper fine tft ),different to regular tft in TN (Twisted Nematic) mode, theIPS LCD liquid crystal elements inside the tft lcd cell, they are arrayed in plane inside the lcd cell when power off, so the light can not transmit it via theIPS lcdwhen power off, When power on, the liquid crystal elements inside the IPS tft would switch in a small angle, then the light would go through the IPS lcd display, then the display on since light go through the IPS display, the switching angle is related to the input power, the switch angle is related to the input power value of IPS LCD, the more switch angle, the more light would transmit the IPS LCD, we call it negative display mode.
The regular tft lcd, it is a-si TN (Twisted Nematic) tft lcd, its liquid crystal elements are arrayed in vertical type, the light could transmit the regularTFT LCDwhen power off. When power on, the liquid crystal twist in some angle, then it block the light transmit the tft lcd, then make the display elements display on by this way, the liquid crystal twist angle is also related to the input power, the more twist angle, the more light would be blocked by the tft lcd, it is tft lcd working mode.
A TFT lcd display is vivid and colorful than a common monochrome lcd display. TFT refreshes more quickly response than a monochrome LCD display and shows motion more smoothly. TFT displays use more electricity in driving than monochrome LCD screens, so they not only cost more in the first place, but they are also more expensive to drive tft lcd screen.The two most common types of TFT LCDs are IPS and TN displays.
TFT-LCDs are used in flat-panel televisions as well as computer monitors, laptop computers, mobile phones, personal digital assistants, and other devices. Plaintiffs charged that defendants conspired to raise and fix the prices of TFT-LCD panels and certain products containing those panels for over a decade, resulting in overcharges to purchasers of those panels and products.
In March 2010, the Court certified two nationwide classes of persons and entities that directly purchased TFT-LCDs from January 1, 1999 through December 31, 2006, one class of panel purchasers, and one class of buyers of laptop computers, computer monitors, and televisions that contained TFT-LCDs.
TFT stands for thin-film transistor, which means that each pixel in the device has a thin-film transistor attached to it. Transistors are activated by electrical currents that make contact with the pixels to produce impeccable image quality on the screen. Here are some important features of TFT displays.Excellent Colour Display.Top notch colour contrast, clarity, and brightness settings that can be adjusted to accommodate specific application requirements.Extended Half-Life.TFT displays boast a much higher half-life than their LED counterparts and they also come in a variety of size configurations that can impact the device’s half-life depending on usage and other factors.TFT displays can have either resistive or capacitive touch panels.Resistive is usually the standard because it comes at a lower price point, but you can also opt for capacitive which is compatible with most modern smartphones and other devices.TFT displays offer exceptional aspect ratio control.Aspect ratio control contributes to better image clarity and quality by mapping out the number of pixels that are in the source image compared to the resolution pixels on the screen.Monitor ghosting doesn’t occur on TFT displays.This is when a moving image or object has blurry pixels following it across the screen, resembling a ghost.
TFT displays are incredibly versatile.The offer a number of different interface options that are compatible with various devices and accommodate the technical capabilities of all users.
There are two main types of TFT LCD displays:· Twisted nematic TFT LCDs are an older model. They have limited colour options and use 6 bits per each blue, red, and green channel.
In-plane switching TFT LCDs are a newer model. Originally introduced in the 1990s by Hitachi, in-plane switching TFT LCDs consist of moving liquid pixels that move in contrast or opposite the plane of the display, rather than alongside it.
The type of TFT LCD monitor or industrial display you choose to purchase will depend on the specifications of your application or project. Here are a few important factors to consider when selecting an appropriate TFT LCD display technology:Life expectancy/battery life.Depending on the length of ongoing use and the duration of your project, you’re going to want to choose a device that can last a long time while maintaining quality usage.
Touch type and accuracy.What type of activities are you planning on using your device for? If it’s for extended outdoor use, then you should go with projected capacitive touch as this is more precise and accurate. Touch accuracy is important for industrial and commercial applications.
Image clarity.Some TFT displays feature infrared touchscreens, while others are layered. The former is preferable, especially in poor lighting conditions or for outdoor and industrial applications, because there’s no overlay and therefore no obstructions to light emittance.
The environmental conditions make a difference in operation and image clarity. When choosing a TFT for outdoor or industrial applications, be sure to choose one that can withstand various environmental elements like dust, wind, moisture, dirt, and even sunlight.
As a leading manufacturer and distributor of high-quality digital displays in North America, Nauticomp Inc. can provide custom TFT LCD monitor solutions that are suitable for a multitude of industrial and commercial indoor and outdoor applications. Contact us today to learn more.
(January 23, 2019) – Global shipments of large thin-film transistor (TFT) liquid crystal display (LCD) panels rose again in 2018 despite concerns of over-supply in the market. In particular, area shipments increased by 10.6 percent to 197.9 million square meters compared to the previous year, driven by TV and monitor panels, according to
Demand for other applications, which include public, automotive and industrial displays, recorded the highest growth rates of 17.5 percent by area and 28.6 percent by unit. “Panel makers view these applications as a new cash cow that can compensate for the sharp price erosion in main panels for TVs, monitors and notebook PCs,” Wu said.
LG Display led the area shipments of large display panels, with a 21 percent share in 2018, followed by BOE (17 percent) and Samsung Display (16 percent). BOE boasted the largest unit-shipment share of 23 percent, followed by LG Display (20 percent) and Innolux (17 percent), according to the
Large TFT LCD panel shipment growth is expected to continue in 2019. The preliminary forecast for unit shipments of three major products indicates that panel makers will continue to focus on the monitor and notebook PC panel businesses, increasing shipments by 5.3 percent and 6.6 percent, respectively, over the year, while shipments of TV panels are forecast to grow just 2.6 percent.
In 2019, three new 10.5-generation fabs – ChinaStar’s T6, BOE’s second fab and Foxconn/Sharp’s Guangzhou line – are expected to start mass production. All of them are assigned to manufacture TV panels, further boosting TV panel supply. “As the TV panel business is predicted to remain tough, panel makers, who enjoyed relatively better outcomes with monitor and notebook PC panels in 2018, will likely focus on the IT panel businesses,” Wu said.
IHS Markit provides information about the entire range of large display panels shipped worldwide and regionally, including monthly and quarterly revenues and shipments by display area, application, size and aspect ratio for each supplier.
IHS Markit (Nasdaq: INFO) is a world leader in critical information, analytics and solutions for the major industries and markets that drive economies worldwide. The company delivers next-generation information, analytics and solutions to customers in business, finance and government, improving their operational efficiency and providing deep insights that lead to well-informed, confident decisions. IHS Markit has more than 50,000 business and government customers, including 80 percent of the Fortune Global 500 and the world’s leading financial institutions.
Over the years, LCD modules and LCD displays have grown in popularity. Companies in many different industries, including but not limited to the medical, automotive, consumer, food services, industrial, and technology sectors rely on at least one TFT LCD module or TFT LCD display on a daily basis. Although touchscreens are very durable and designed to withstand the hands of time, older modules and displays sometimes need to be repaired. When weighing the cost of having your displays repaired, you should take the time to consider your options.
After doing some research on the cost of repairs, many business owners find that it makes more sense to have their TFT LCDs replaced. Although units may cost less to repair initially, the cost of having to repair your older displays over and over again can add up. This is because older units may need to be repaired more than once. Even if multiple repairs will not cost any additional money, repairs lead to downtime and can have a tremendous impact on your business.
Older units in need of repair can have a long-term impact on a company’s bottom line. This is because outdated displays do not perform as well as new and improved displays. As many business owners have come to discover, new and improved touchscreen technology can increase efficiency, boost productivity, and improve customer satisfaction. This a top reason why so many companies decide to have a TFT LCD display or module replaced.
If you are thinking about having your older touchscreens repaired, then you should consider how having newer technology in place will help your business grow. Focusing strictly on the cost of replacing your displays can have a long-term impact on your business in more ways than one. For better results, you should consider all of the benefits of having new custom touchscreens specifically manufactured for your business. Ultimately, having new and improved displays in place for your employees and customers to use will be a business decision that pays for itself over time.
Pacer offers an extensive range of colour TFT LCD panels from 1.8″ through the popular 3.5″ and 5.7″ sizes to 82″. Our range includes sunlight readable panels from 5.6″ to 70″, bar cut panels, and SMART TFT displays with built-in control. We offer TFT displays with high brightness, high contrast ratio, wide viewing angle, wide temperature operation, longer lamp life, and lower power consumption.
TFT displays are used extensively in many industrial, commercial and scientific applications, including ATMs, POS terminals, kiosks, security systems, lottery and gambling gaming machines, medical equipment, factory automation, digital advertisement signage, transportation information, and marine equipment.
TFT technology is being used to replace Mono LCD in many applications, and Raystar Optronics now offers a 5.2″ TFT module designed specifically to fit the footprint of the industry standard RG24064-series 240×64 mono graphic STN LCD. The RFS520A can replace traditional STN displays of 8×2 or 16×2 format as it shares the same 16 pin footprint.
Our TFT modules are fully supported with a variety of options including wide operating temperatures, high brightness and contrast, built-in DC-DC and temperature compensation circuitry and most with white LED backlights. Resistive Touchscreens and Projected Capacitive Touchscreens are available for most models. Many panels can be configured as a kit – see our Interface Kits page for more details.
IMPORTANT ANNOUNCEMENT – Mitsubishi has decided to end production of TFT-LCD modules, as the company is no longer able to maintain the products’ competitiveness after significant price falls in the global market. Production of TFT-LCD modules is scheduled to end in June 2022 with a Last Time Buy date of June 2021. Please contact us as soon as possible to discuss last time buy or identification of suitable alternative displays.
Raystar is a professional TFT (Thin Film Transistor) module manufacturer. Whether you need a TFT display with control board, high brightness, wide viewing angle, monochrome or bar type, we have TFT active matrix display models for you to choose from.
Mitsubishi’s Electric Diode InfraRed sensor (MelDIR) is a thermal sensor for applications in the fields of security, surveillance, crime prevention, people counting, heating, ventilation and air conditioning (HVAC) and smart buildings.
LITEMAX® Industrial Display solution provide a wide range of reliable displays from 5.7″ to 85″ including LCD panel modules, open frame LCD displays, outdoor displays, and panel mount monitors. LITEMAX have developed and focused on LCD display technologies such as high brightness technology, optical bonding solutions, and color enhancement technology that bring more add-on value to enhance their products.
According to DisplaySearch, a research specialist in the display market, price reductions for large-area TFT LCDs will slow in Q3 and then rise slightly in Q4 for 10-inch to 15-inch panels.
But DisplaySearch says that the glut of small/medium TFT LCDs, for PDAs and mobile phones etc., will continue through the first half of 2002. Weak demand means a surplus in excess of 20 per cent in Q4 and Q1 2002 before tightening to single digits in the second half of 2002. ®
When it comes to choosing what to use for your displays, going with the standard can get you farther ahead than thinking outside the box. TFT LCD display gives you an edge for your advertising needs, television screens, or even phone screens.
A thin-film transistor (TFT) is one of the technologies commonly used for building LCDs. With this technology, your LCD is guaranteed a sharp, clear, and full-color display and high-quality performance.
When a signal sent to a pixel also affects the pixels next to it, crosstalk This runs the risk of distorting the quality of your image. With TFT, crosstalk is significantly reduced with the TFT layer integrated into the screen itself. With every pixel corresponding to the signals meant only for them, you are guaranteed the best resolution and image quality.
In the LCD industry, the most popular kinds of displays are manufactured and innovated the most. Unlike other types of LCD technologies, the TFT module is available in different sizes, ranging from cellphone sizes to larger TV sizes, to suit your needs.
All LCD displays have a determined number of hours of use before they become half as bright than when they were turned on for the first time. This is called half-life. Although research is still ongoing regarding half-life, TFT displays are said to have more than 14,000 hours of half-life.
This does not mean, however, that the LCD will burn out after reaching its half-life. It means that its brightness will only be half of when it was new.
Compared to CRTs, TFT LCD modules have lower heat release. Moreover, they emit lower electromagnetic emissions which significantly decrease visual fatigue. This means that TFTs are ideal for devices and displays that require an audience’s prolonged attention, such as cell phones and television screens.
While the TFT’s power consumption is significantly lower than OLEDs in white displays, there are also emerging TFT displays in the market that integrate smart technologies that can save up to 50% energy on battery-operated devices.
One of the notable disadvantages of TFTs, however, is its cost. The characteristics detailed in the previous section, however, must be considered worthy of investment. Moreover, as the number of TFTs floods the LCD display market, the price for TFTs are decreasing by the day.
At Microtips Technology USA, we only provide you with the best among the best of TFT modules. Our TFT LCD displays assure only full RGB brilliance with up to 16.7 million colors, better picture quality with high resolutions and IPS technology, and affordability.
In automotive display, it is needed to ensure automotive quality, reduce the number of signal and power wires, and provide long-distance wiring.We will meet these needs with a unique point-to-point interface that reduces wiring number and enables long-distance transmission, as well as an anomaly detection function to ensure automotive quality.
One of the industry’s leading oxide panel makers selected Astra Glass as its backplane glass substrate because it has the inherent fidelity to thrive in high-temperature oxide-TFT glass fabrication for immersive high-performance displays.
One of the industry’s leading oxide panel makers selected Astra Glass as its backplane glass substrate because it has the inherent fidelity to thrive in high-temperature oxide-TFT glass fabrication for immersive high-performance displays.
In this Arduino touch screen tutorial we will learn how to use TFT LCD Touch Screen with Arduino. You can watch the following video or read the written tutorial below.
For this tutorial I composed three examples. The first example is distance measurement using ultrasonic sensor. The output from the sensor, or the distance is printed on the screen and using the touch screen we can select the units, either centimeters or inches.
The next example is controlling an RGB LED using these three RGB sliders. For example if we start to slide the blue slider, the LED will light up in blue and increase the light as we would go to the maximum value. So the sliders can move from 0 to 255 and with their combination we can set any color to the RGB LED, but just keep in mind that the LED cannot represent the colors that much accurate.
The third example is a game. Actually it’s a replica of the popular Flappy Bird game for smartphones. We can play the game using the push button or even using the touch screen itself.
As an example I am using a 3.2” TFT Touch Screen in a combination with a TFT LCD Arduino Mega Shield. We need a shield because the TFT Touch screen works at 3.3V and the Arduino Mega outputs are 5 V. For the first example I have the HC-SR04 ultrasonic sensor, then for the second example an RGB LED with three resistors and a push button for the game example. Also I had to make a custom made pin header like this, by soldering pin headers and bend on of them so I could insert them in between the Arduino Board and the TFT Shield.
Here’s the circuit schematic. We will use the GND pin, the digital pins from 8 to 13, as well as the pin number 14. As the 5V pins are already used by the TFT Screen I will use the pin number 13 as VCC, by setting it right away high in the setup section of code.
I will use the UTFT and URTouch libraries made by Henning Karlsen. Here I would like to say thanks to him for the incredible work he has done. The libraries enable really easy use of the TFT Screens, and they work with many different TFT screens sizes, shields and controllers. You can download these libraries from his website, RinkyDinkElectronics.com and also find a lot of demo examples and detailed documentation of how to use them.
After we include the libraries we need to create UTFT and URTouch objects. The parameters of these objects depends on the model of the TFT Screen and Shield and these details can be also found in the documentation of the libraries.
Next we need to define the fonts that are coming with the libraries and also define some variables needed for the program. In the setup section we need to initiate the screen and the touch, define the pin modes for the connected sensor, the led and the button, and initially call the drawHomeSreen() custom function, which will draw the home screen of the program.
So now I will explain how we can make the home screen of the program. With the setBackColor() function we need to set the background color of the text, black one in our case. Then we need to set the color to white, set the big font and using the print() function, we will print the string “Arduino TFT Tutorial” at the center of the screen and 10 pixels down the Y – Axis of the screen. Next we will set the color to red and draw the red line below the text. After that we need to set the color back to white, and print the two other strings, “by HowToMechatronics.com” using the small font and “Select Example” using the big font.
Next is the distance sensor button. First we need to set the color and then using the fillRoundRect() function we will draw the rounded rectangle. Then we will set the color back to white and using the drawRoundRect() function we will draw another rounded rectangle on top of the previous one, but this one will be without a fill so the overall appearance of the button looks like it has a frame. On top of the button we will print the text using the big font and the same background color as the fill of the button. The same procedure goes for the two other buttons.
Now we need to make the buttons functional so that when we press them they would send us to the appropriate example. In the setup section we set the character ‘0’ to the currentPage variable, which will indicate that we are at the home screen. So if that’s true, and if we press on the screen this if statement would become true and using these lines here we will get the X and Y coordinates where the screen has been pressed. If that’s the area that covers the first button we will call the drawDistanceSensor() custom function which will activate the distance sensor example. Also we will set the character ‘1’ to the variable currentPage which will indicate that we are at the first example. The drawFrame() custom function is used for highlighting the button when it’s pressed. The same procedure goes for the two other buttons.
getDistance(); // Gets distance from the sensor and this function is repeatedly called while we are at the first example in order to print the lasest results from the distance sensor
So the drawDistanceSensor() custom function needs to be called only once when the button is pressed in order to draw all the graphics of this example in similar way as we described for the home screen. However, the getDistance() custom function needs to be called repeatedly in order to print the latest results of the distance measured by the sensor.
Here’s that function which uses the ultrasonic sensor to calculate the distance and print the values with SevenSegNum font in green color, either in centimeters or inches. If you need more details how the ultrasonic sensor works you can check my particular tutorialfor that. Back in the loop section we can see what happens when we press the select unit buttons as well as the back button.
Ok next is the RGB LED Control example. If we press the second button, the drawLedControl() custom function will be called only once for drawing the graphic of that example and the setLedColor() custom function will be repeatedly called. In this function we use the touch screen to set the values of the 3 sliders from 0 to 255. With the if statements we confine the area of each slider and get the X value of the slider. So the values of the X coordinate of each slider are from 38 to 310 pixels and we need to map these values into values from 0 to 255 which will be used as a PWM signal for lighting up the LED. If you need more details how the RGB LED works you can check my particular tutorialfor that. The rest of the code in this custom function is for drawing the sliders. Back in the loop section we only have the back button which also turns off the LED when pressed.
getDistance(); // Gets distance from the sensor and this function is repeatedly called while we are at the first example in order to print the lasest results from the distance sensor