[Micropython]TPYBoard v10x plug-in programming experiment lights up heart-shaped lattice

1. What is TPYBoard development board

    TPYBoard is a MicroPython development board produced by TurnipSmart Company based on MicroPython under the MIT license. It is based on STM32F405 microcontroller and transmits data through the USB interface. The development board has 4 built-in LED lights and an acceleration sensor, and can work normally at voltages between 3V-10V. The TPYBoard development board allows users to easily control various peripherals of the microcontroller through Python code, such as LEDs, read pin voltages, play songs, network with other devices, and more. The TPYBoard development board supports the direct operation of Python 3.0 and above, supports gravity acceleration sensors, supports hundreds of peripheral accessories, and supports SWD firmware programming. Zero foundation can also flexibly master single-chip technology!

 

2. Use TPYBoard to light up the heart-shaped lattice

 

1. Specific requirements

    Connect the red 8x8LED dot matrix screen through the TPYBoardv10x development board to realize the display of the heart-shaped pattern.

2. Required devices

    A TYBoard development board

    One USB data cable

    One red 8x8LED dot matrix screen

    Several Dupont lines

3. 8x8 dot matrix screen introduction

     

    There are two rows of pins behind the dot matrix, one row starts with 1, that is, pins 1-8, and the other row starts with 9 (pins directly opposite to the 8-pin), that is, pins 9-16. The numbers in the circle in the above picture are The corresponding serial number of the pin. The pin corresponding to ROW 1 is 9. When a ROW pin is high and a COL pin is low, the LEDs at their intersections will be lit. In order to facilitate the operation of rows and columns, we can connect the 8 pins of ROW to X1-X8 of our TPYBoard v102, and the 8 pins of COL to Y1-Y8 of our TPYBoard v102. In this way, we can control the on and off of each LED by controlling the high and low levels of the X pin and the Y pin, so that we can design any characters and graphics that we want to display. Come and try it.

3. The main process of production

    

4. Production process

Graphic code:

 

TPYBoard technical exchange group: 157816561 

Micropython player official account:

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324609365&siteId=291194637