tft lcd color monitor no sound free sample
I have a new HP Pavilion Elite HPE-1401f computer. I also have a Sony monitor (TFT LCD color computer monitor) (SDM-X72) with internal built-in speakers.
I am unsure as to where I should plug the black audio cord from my monitor to the new computer. Currently, the black cord is plugged into the orange c/sub outlet in the rear of the computer.
Harassment is any behavior intended to disturb or upset a person or group of people. Threats include any threat of suicide, violence, or harm to another.
For help with video or display issues such as no video, no display, blank or black screen, flickering, screen resolution or color issues, horizontal or vertical lines, and more see an expanding section below.
Ensure that your Dell monitor is set up properly. Assemble the monitor stand and set up the monitor ergonomically. Connect the cables and organize them. These tips help make the viewing experience the best it can be.
The standard monitor stand is detached when the monitor is shipped from the factory. To learn more about attaching the standard monitor stand. See the Setting Up the Monitor section in the Dell S2422HZ User Guide.
The top edge of the screen must be at eye level when you are sitting comfortably. Adjust your chair height or the height of the monitor to achieve this.
NOTE: Dell S2422HZ supports display over USB-C port with Alternate mode DP 1.2. Ensure that the USB-C on your computer supports Alternate mode DP 1.2 or above.
CAUTION: Dell S2422HZ monitor setup must comply with the recommended panel orientation and working angle only. Setting up the monitor in an orientation that is not recommended may damage the monitor and/or cause a safety hazard.
Use the buttons at the bottom of the monitor to access the On-Screen Display (OSD) menu of the monitor. To access the On-Screen Display (OSD) menu, press Button 5 (Figure 4) at the bottom of the monitor.
NOTE: Any changes that you make are automatically saved. Whenever you move to another menu item, exit the OSD menu, or wait for the OSD menu to automatically close.
Resetting a monitor to factory defaults can help resolve many video or display issues. To reset your Dell S2422HZ monitor to factory default settings, follow these steps:
If your Dell monitor has a blank or black screen, fuzzy or blurry image, flickering, distorted or any other screen abnormalities, running a diagnostic test helps determine if the Dell monitor is functioning normally. To learn more about diagnostic options on a Dell monitor, see the Dell knowledge base article How to Run a Diagnostic Test on a Dell Monitor.
No POST - Your computer is not showing any indication of activity. For example, the screen is blank and does not display the Dell logo during start-up.
Your Dell S2422HZ Monitor provides a self-test feature check that allows you to check whether the monitor is functioning properly. If the monitor and computer are properly connected but the monitor screen remains dark, run the monitor self-test by performing the following steps:
If your monitor screen remains blank after you use the previous procedure, check your video card (GPU) and computer, because your monitor is functioning properly.
Your Dell S2422HZ monitor has a built-in diagnostic tool. It helps to determine if the screen abnormality you are experiencing is a problem with the monitor or with the video card on your computer.
When you notice screen abnormalities such as distortion, clarity, horizontal or vertical lines, color fade, it is a good practice to isolate the monitor by running the Built-In Diagnostics.
NOTE: If you do not see any screen abnormalities in the built-in diagnostic mode, the monitor is functioning properly. If you notice any abnormalities in the built-in diagnostic mode, contact Dell Technical Support for repair options that are available in your region.
During the LCD Monitor manufacturing process, it is not uncommon for one or more pixels to become fixed in an unchanging state. Such pixels are hard to see and do not affect the display quality or usability. For more information, see the Dell knowledge base article Dell Display Pixel Guidelines.
This section provides information about troubleshooting steps that can help resolve the most common issues with the Dell S2422HZ monitor. Alternatively, to learn more about troubleshooting common issues on Dell monitors, see the Dell knowledge base article How to Troubleshoot Display or Video Issues on a Dell Monitor or use our monitor self-help guide.
A few permanently bright or dark pixels are considered normal by industry standards. The exact number of pixels that are allowed varies depending on the monitor. Refer to Dell Display Pixel Guidelines for more details.
You can adjust the volume by adjusting the volume bar on the player application (like media player), not the Windows OS level or adjust the volume through the line out external speaker device.
The USB hub of the DUT cannot be detected by specific systems (Apple M1) when connecting DUT to the system through a USB-C cable and then restarting the system.
For the webcam to function, connect the provided USB-C to USB-C cable between the computer and the monitor. If the computer does not support USB-C, use a USB Type-A to USB-C cable (optional purchase).
Ensure that DELL Monitor RGB Webcam is the default camera in apps such as Microsoft Teams, Skype, or Zoom. To learn how to change the webcam settings in these apps, go to the software manufacturer"s website.
For the integrated microphone in the monitor to function, connect the provided USB-C to USB-C cable between the computer and the monitor. If the computer does not support USB-C, use a USB Type-A to USB-C cable (optional purchase).
Under Choose your output device, select Echo Cancelling Speakerphone S2422HZ. If the default output device is set to DELL S2422HZ, the integrated microphone on the monitor is not supported. The DELL S2422HZ output device is suitable for audio playback only.
NOTE: If you do not see the recommended resolution as an option. Update the video card (GPU) driver from the https://www.dell.com/support/drivers website or the video card (GPU) manufacturer"s website. To learn how to download and update a device driver, see the Dell knowledge base article How to Download and Install Dell Drivers.
Built-In Self-Test - The Dell S2422HZ monitor has a built-in self-test that helps you identify if the screen abnormality is with the monitor or the video card (GPU) on your computer. When you notice screen abnormalities like distortion, clarity, horizontal or vertical lines, color fade. It is a good practice to isolate the monitor by running the Built-In Diagnostics.
The Troubleshooting section of this Dell knowledge base article provides information about troubleshooting common issues with the Dell S2422HZ monitor. The section has troubleshooting steps on how to resolve power issues, video issues, color or clarity issues, distortion issues, horizontal or vertical lines, brightness issues or pixel issues, and so on.
To navigate the On-Screen Display (OSD) menu, use the buttons on the monitor. The monitor control buttons are usually on the right side, either on the side, front, or bottom of the monitor. To access the On-Screen Display (OSD) menu, press Button 5 on the monitor.
For more information about using the On-Screen Display (OSD) menu and different menu options, see the Operating Your Monitor section in the Dell S2422HZ User Guide.
Additional monitor information such as the model number, firmware version, and Service Tag can be accessed from the monitor"s OSD (On-Screen Display).
The USB-C port on your Dell S2422HZ supports USB Power Delivery. The USB-C port can supply power (65 W) to a compatible laptop using a single USB-C cable that is provided with the monitor.
NOTE: Up to 2 A on the USB downstream port (the port with the SS SuperSpeed battery icon) with BC 1.2 compliant devices; and up to 0.9 A on the other USB downstream port.
NOTE: The monitor’s USB ports work only when the monitor is on or when the monitor is in Standby Mode. When the monitor is on, in Standby Mode, if the USB cable (Type-C to Type-C), is plugged in, then the USB ports can work normally. Otherwise, check the OSD setting of Other USB Charging, if the setting is “On in Standby Mode” then the USB works normally, otherwise the USB is disabled. If you turn off the monitor and then turn it on, the attached devices may take a few seconds to resume normal functionality.
If you are using a Dell laptop that supports charging using USB-C. Update the BIOS and Video or Graphics card (GPU) driver. To learn how to download and update a device driver, see the Dell knowledge base article How to Download and Install Dell Drivers.
CAUTION: Dell S2422HZ setup must comply with the recommended panel orientation and working angle only. Setting up the monitor in an orientation that is not recommended may damage the monitor and/or cause a safety hazard.
It is such a waste to only use the LCD for desktop computers. Connecting it up with a laptop PC has many merits for the user and can also bring out the latent power of the laptop.
Note: Below is the translation from the Japanese of the ITmedia article "The dual display in Windows 7 is now even more convenient" published March 1, 2010. Copyright 2011 ITmedia Inc. All Rights Reserved.
Most laptops have a handy "external display output" port. It can be used in the home to transmit videos played on the laptop to a large screen TV or, in the office, to connect up with a projector for presentations. In fact, there must be many users who already use it like this. However, people tend to use just the laptop in their daily routine and there are probably not so many cases where they use the external display output.
A laptop can be put to more effective use if it is connected to an external LCD. The photograph shows an EIZO 23-inch wide-screen LCD connected by HDMI to a Sony VAIO C laptop (VPCCW28FJ/R).
This time we would like to suggest a style that can be used in both the home and the office, where a laptop and stand-alone LCD remain connected. A laptop already has an LCD, but using it with an additional stand-alone LCD offers various merits. Not only does it make the laptop environment more pleasant and convenient, it also expands the potential of the computer itself, for example by making it possible to use it for new purposes.
Even if the LCD is already connected to a desktop computer and being used for something other than the laptop, most monitors nowadays have two or more video inputs and they tend not to use this capability to the full. It is such a waste to let the laptop"s external display output function and the monitor"s video input function remain dormant, so we would like them to be put to effective use. Of course, we would also recommend the introduction of a new LCD to connect to your laptop.
The biggest merit of connecting a laptop with a stand-alone LCD is that it gives you a large screen and high resolution dual display environment. Standard laptop models usually come with a built-in 13-inch to 15-inch wide-screen LCD with a 1280 × 800 dot or 1366 × 768 dot resolution.
This level of resolution is good enough for basic Windows operations, but it goes without saying that a large, high-resolution computer screen is much more user-friendly. Combining a laptop with one of the latest wide-screen monitors enables you to easily construct a large-screen, high-resolution dual display environment. It is a real boon to dramatically boost the screen size and resolution while continuing to use your familiar laptop.
Another plus is that you can create the luxury of a "watching while" environment where you run the web browser, for instance, on the laptop"s built-in LCD and watch the video content on the large screen of the external monitor. This can be really useful for hobbies too. For example, while playing a game on the large external LCD screen you can check out strategies on websites, post information on a BBS or communicate with other users.
You can smoothly use multiple applications at the same time in the large workspace provided by a dual display. The photograph shows an EIZO 24.1-inch wide-screen LCD, the FlexScan SX2462W connected to a VAIO C. By supplementing the laptop"s built-in 1366 × 768 dot 14-inch wide-screen LCD with a 1920 × 1200 dot 24.1-inch wide-screen, it is possible to show more data at a time, a huge boost to work efficiency.
With two screens it"s easy to have full-screen display of the video content on one screen while you operate the computer on the other. The photograph shows an EIZO 23-inch wide-screen LCD monitor connected to a VAIO C. The VAIO C has HDMI output and the LCD monitor has HDMI input so visuals and sound can be transmitted by a single HDMI cable. The LCD monitor has full HD screen resolution (1920 × 1080 dot), making it the perfect match for HD video content.
At the office, it is very helpful for presentations to use "clone view" for the laptop"s built-in LCD and the external LCD screen. Clone view means showing exactly the same content on two display screens. It is normally set by a graphics driver function.
When holding small meetings it is certainly very convenient to be able to offer simple explanations of the presentation materials displayed on the external LCD, rather than having to ready a projector. Being able to explain about what is displayed on the screen means fewer documents to distribute, helping your office to "go paperless", which can only be a good thing.
Even if the upper limit is 1680 × 1050 dots, the LCD can still display the data if its own resolution is 1680 × 1050 dots or higher. In such cases, it is better to use a monitor that offers dot-by-dot display, which displays the input resolution as it is, or enlarged display, which maintains the screen"s aspect ratio as it is. You do not need to worry because EIZO wide-screen LCDs can handle such display methods (although in some cases they do not function properly depending on the laptop computer or input resolution).
This is an example of a low-resolution display on the 1920 × 1200 dot display SX2462W. Since dot-by-dot display outputs the physical "1 dot" of the LCD and the input resolution "1 dot" without enlargement or reduction, it is shown small in the center of the screen (photo on the left). The display is a little blurred if it is enlarged while maintaining the aspect ratio, but this method is suitable for displaying images as they are shown large with low resolution to make the most of the screen size (photo on the right). Many monitors that cannot handle such display methods enlarge the display to full screen regardless of the input resolution. In such cases you have to be careful as the aspect ratio of the image is altered (for example, people appear to be thinner or fatter).
It is easy to set up a dual display in Windows 7. A menu is displayed when you right-click on the desktop. From "Screen resolution" it is possible to detect and align the external LCD, and set details such as resolution, display method and which will be the main display screen.
The "Screen resolution" menu. If the external LCD is not automatically recognized, click on "Detect". After the monitor has been recognized, you can select the display mode from the "Multiple displays" drop-down menu. Select "Extend display screen" to make the laptop screen and the external LCD into a single display screen (dual display).
Select "Duplicate display screen" from the "Multiple displays" drop-down menu to display the same content on the laptop screen and the external LCD screen (clone view). With this drop-down menu you can also set it to display video on one of the LCDs.
It is also worth noting that Windows 7 has added functions so that dual display can be used more effectively. An active window can be moved to the screen of another LCD by simultaneously pushing "Windows" + "Shift" + "→" (or "←"). It is also possible to maximize the window by pressing "Windows" + "↑", minimize it by pressing "Windows" + "↓", and shift it to the left or right of each screen by pressing "Windows" + "→" (or "←"). Making good use of these shortcuts should enable the efficient placing of windows in the two screens.
We would recommend a wide-screen model with a screen resolution of 1920 × 1080 dots (Full HD) or 1920 × 1200 dots (WUXGA) as the LCD to connect to a laptop, so that you can make full use of the advantages of dual display. EIZO has an extensive line up of wide-screen LCDs which can offer many benefits, in addition to the merits of a large screen and high resolution, when used with a laptop for dual display.
One such feature is the flexible stand adjustment. For example, the tilt, swivel and height can be adjusted for the FlexScan SX2462W, a 24.1-inch WUXGA model, and the FlexScan EV2333, a 23-inch full HD model. This enables users to adjust the screen position for easy viewing according to their own posture, which not only boosts work efficiency but also reduces physical strain.
Setting the connected monitor into a vertical position is very convenient when displaying elongated web pages and documents or photographs that were taken vertically
With a 24.1 inch wide-screen like the SX2462W, an A3 sheet (two A4 sheets side by side) can be viewed in actual size, particularly effective for paper-based creative work ITmedia LCD Course II, Lesson 3: Which is better, 16:10 or 16:9 ? – "Screen size / resolution / aspect ratio"
We must not forget that EIZO"s wide-screen LCDs have non-glare screens (processed to reduce ambient light reflection). Nowadays the trend is for laptops to have an LCD with glare (glossy) surface treatment. While these can display images in bright color, reflected ambient light can sometimes be distracting.
A laptop screen is not so large and adjusting its angle can avoid the reflection of lights and so on, however it is not so easy with the large screen of an external LCD. When it comes to the large screen of an LCD in habitual use, a non-glare type that is not reflective is probably easier to see, as well as being kinder on the eyes. A large screen, high resolution and non-glare ensure that you can comfortably continue viewing over a prolonged period of time.
The surface treatment of an LCD makes a difference to the background reflection. Glare panels do not diffuse background light, making it easier to achieve high color purity, but easily reflect the user or lights (photo on the left). If the lights are similarly trained on a non-glare panel they do not have much effect, only appearing as a fuzzy brightness (photo on the right).
Another distinctive feature of EIZO wide-screen LCDs is a commitment to energy saving. They incorporate various power saving features that support "EcoView". A pivotal feature is the "EcoView Sense" adopted in the FlexScan EV series, such as the EV2333W.
This is the motion sensor on the front of the LCD. It constantly monitors the user"s movements to automatically take finely-tuned power saving measures. To be more precise, if the user"s presence is not detected for a specified period of time, for example if he leaves his seat, the monitor automatically switches to power save mode, and then automatically switches back when the user"s presence is detected again.
Other features include "Auto EcoView", which automatically optimizes the brightness of the LCD based on ambient lighting, and "EcoView Index", which displays a meter on the screen showing how much power is being saved. All these features can be expected to have a strong energy saving effect and to boost the user"s awareness of power saving, making them particularly useful in the office.
A standard laptop computer switches to sleep mode if the built-in LCD is closed while it is running but, if this function is turned off, a laptop can be treated as a "small desktop computer."
It can be set to use only the connected external LCD and not to react when the laptop"s built-in LCD is closed. The transformation into a small desktop PC is complete if you add a keyboard and mouse connected to the laptop via USB ports, for example. The OS is still running even though the laptop"s built-in LCD is closed, so you can carry out normal operations using the external keyboard and mouse, and also use the laptop"s built-in optical drives.
The idea is to use a large screen, high resolution external LCD at home or in the office, and to use the laptop"s built-in LCD as usual for mobile purposes. This helps to boost the longevity of the laptop"s built-in LCD and many people do use their laptop in this way. If you feel reluctant to use a dual display environment, where the screen is split in two, why not give this a try?
Select "Only show the desktop on 2" from the "Multiple displays" list in the "Screen resolution" menu. The laptop"s built-in LCD will be switched off and the external LCD will become the main display.
In the case of Windows 7, open "Alter power button operation" from the "Power options" list in the Control Panel"s "Hardware and sound", and alter the "Operation when the cover is closed" to "Do nothing".
By making this simple setting your laptop can be used as a space saving desktop computer. Another plus is that the laptop"s built-in LCD will last longer.
Recently some high-end laptop computers, such as the Sony VAIO F, are insisting on good display quality for their LCDs. However, a typical laptop"s built-in LCD does not have as good image quality as a stand-alone LCD. This is only natural since the costs allowed for display quality are completely different for an LCD incorporated into the PC as one of its parts and a specialized LCD.
However, by using an EIZO wide-screen LCD a laptop user can still fully enjoy such benefits of a stand-alone high-quality LCD as excellent color reproduction, a wide viewing angle, more even display and a wealth of items that can be adjusted to improve image quality. This is a crucial point for people who use their computer for photographs and videos in particular.
EIZO"s wide-screen LCDs emphasize color reproduction, and the coloration in sRGB mode has a high degree of accuracy. The standard color gamut used in PC environments and Internet content is sRGB, so you need have no worries about viewing or editing videos and photographs. They can also display images on web pages, such as products in online shops or goods for sale in online auctions, in colors that are very close to the real thing. (This is also influenced by how the seller took the photographs and processed the images, so we cannot say that the colors will always be accurate.)
Furthermore, in addition to sRGB color gamut accuracy, the high resolution-oriented FlexScan SX has the added benefit of covering more than 95% of Adobe RGB. Adobe RGB is a color gamut whose definitions encompass more highly-saturated colors than sRGB. In other words, it can represent a larger number of colors and brighter hues than sRGB.
Adobe RGB is the de facto standard in the publishing field and, closer to home, is used in digital SLR cameras and high grade compact digital cameras. The FlexScan SX series can reproduce the colors of photos taken in Adobe RGB mode with almost perfect accuracy on the screen. Retouching photographs proceeds more efficiently since subtle differences in color can be checked on the screen.
An example of sRGB color gamut image data displayed on a standard laptop and on the SX2462W. The SX2462W"s reproducibility of sRGB mode is of a considerably high standard but the color balance on the laptop has been lost. This would make it difficult to perform rigorous photo retouching.
In this case, if the image is edited on the external LCD with its high color reproducibility and the many tool palettes in the application are grouped in the laptop"s built-in LCD, there is less need to display or hide the tool palettes or to switch back and forth, and the image data to be edited can be displayed in a large form, making for more efficient work.
In this case, if the image is edited on the external LCD with its high color reproducibility and the many tool palettes in the application are grouped in the laptop"s built-in LCD, there is less need to display or hide the tool palettes or to switch back and forth, and the image data to be edited can be displayed in a large form, making for more efficient work.
When doing things like photo retouching, using software where there is a lot of switching between tool palettes it is very handy to display the image data to be edited on the external LCD with its high color reproducibility, and to gather the palette tools to be used on the laptop"s built-in LCD.
Going back to the subject of laptop computers, it is not going too far to say that applications and functions are being spoiled in laptops whose built-in LCD"s image quality is not too good. Connecting a laptop to a monitor with high image quality dispels any concerns about work that deals with colors and also helps to bring out the laptop"s potential.
Combining an EIZO wide-screen LCD with a laptop computer makes viewing videos and images even more fun. Just being able to see them on a large screen is a pleasure, but what makes it even better is that our LCDs are equipped with Fine Contrast, the optimum image quality mode for video and visuals. You can also use the Custom mode to create the image quality you prefer.
We expect that you now understand how displaying screens from a laptop computer on a stand-alone LCD can create a very pleasant environment. It feels as if your everyday laptop has been transformed into a completely different desktop machine. Even if you only use laptop computers, it is definitely worthwhile to add a stand-alone LCD.
When choosing the type of LCD the most important consideration is to choose one with overall high quality. When it comes to that, we can recommend EIZO wide-screen LCDs to a broad range of laptop users. In addition to their high image quality, EIZO wide-screen LCD are built with careful attention to detail, including non-glare screens, versatile stand features, dot-by-dot capability, abundant image quality modes, and our proprietary eco-functions. We want you to make full use of your beloved laptop computer along with an EIZO wide-screen LCD.
This time we have spoken about how an external LCD can be connected to a laptop computer, but if your main machine is a desktop computer then you probably already have a LCD.
In which case, why not consider adding a full HD (1920 × 1080 dot) or WUXGA (1920 × 1200 dot) wide-screen LCD and creating a more advanced dual display environment to further enhance your computer"s usability.
The dual display environment of a desktop PC has a wider range of options than a laptop computer, which is already installed with an LCD. Depending on the combination of products used you can seek for a larger screen, higher resolution and better image quality.
You can get a super high resolution of 3840 × 1200 dots in total by putting two 24.1-inch 1920 × 1200 dot wide-screen LCDs side by side. The advantage in this is that a larger screen and higher resolution are achieved at a lower cost than buying a single 30-inch high resolution model
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.
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.
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.
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.
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.
In order the code to work and compile you will have to include an addition “.c” file in the same directory with the Arduino sketch. This file is for the third game example and it’s a bitmap of the bird. For more details how this part of the code work you can check my particular tutorial. Here you can download that file: