Python On TV | Controlling TV With Python | Display Images & Text on TV With Python | Python Arduino

Publié le: 02 janvier 2022
sur la chaîne: Python EveryDay
518
5

We are going to interface Python on a TV. And display some images & text on it.

To do so, we will require a TV with Audio/Video ports. A microcontroller.
Two resistors. One of 1 K Ohms & another of 470 Ohms. We will also require some wires for interconnections. And a breadboard to connect &
hold everything in place. We will connect both resistors in a voltage divider
configuration. Their junction will be the output. Now we will connect a wire from digital pin 7 of Arduino to a 470 Ohm resistor. And another wire from digital pin 9 of Arduino to 1 K Ohm resistor. Now we will connect two wires to the Audio/Video port of the TV. The center of the A/V port is signal & the outer is ground. Connect a wire from the junction of the resistor to
the center of the A/V port. Connect the Arduino ground to the TV ground.
And we are done with the connections. Now just upload the code to the Arduino board & enjoy. This is the example code. We haven't written anything yet. Let's see what we have in the example. Here comes our code. We can display any image. We prefer a black & white image. We just need to convert it to hexadecimal bitmap format. Make an array of that bitmap in the code. And upload the code. That image will be displayed. We cannot code in python 3 programming language on TV. Instead, we will just display images & text on it. This is the image of python logo. Which we are going to display on TV. This is the hexadecimal bitmap array of the values of the image. After Uploading the code, This image is displayed on the TV. We also can display text on TV. We just need to call a function TV.write(). And pass a String of whatever text we have to display.

For more related videos kindly visit:    / @pythoneveryday  

Subscribe for more updates :    / @pythoneveryday  

Python EveryDay !!!


Sur cette page du site, vous pouvez voir la vidéo en ligne Python On TV | Controlling TV With Python | Display Images & Text on TV With Python | Python Arduino durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Python EveryDay 02 janvier 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 518 fois et il a aimé 5 téléspectateurs. Bon visionnage!