{"id":23021651,"url":"https://github.com/raupulus/python-serial-lcd-uart-jc22-v05","last_synced_at":"2025-04-02T18:44:32.350Z","repository":{"id":95712834,"uuid":"239574263","full_name":"raupulus/python-serial-lcd-uart-jc22-v05","owner":"raupulus","description":"  Librería en python para interactuar con la pantalla tft de 2,2 pulgadas JC22-v05 que trabaja únicamente comunicándose por Serial - Esto es un mirror de https://gitlab.com/raupulus/python-serial-lcd-uart-jc22-v05.git","archived":false,"fork":false,"pushed_at":"2023-03-19T05:22:45.000Z","size":364,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T09:29:28.220Z","etag":null,"topics":["display","jc22-05","lcd","library","pantalla","python","python3","serial","tft","uart"],"latest_commit_sha":null,"homepage":"https://raupulus.dev","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raupulus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-10T17:44:02.000Z","updated_at":"2023-03-15T01:20:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"b7887219-2575-44e3-9a69-b0d89ff569fc","html_url":"https://github.com/raupulus/python-serial-lcd-uart-jc22-v05","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raupulus%2Fpython-serial-lcd-uart-jc22-v05","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raupulus%2Fpython-serial-lcd-uart-jc22-v05/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raupulus%2Fpython-serial-lcd-uart-jc22-v05/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raupulus%2Fpython-serial-lcd-uart-jc22-v05/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raupulus","download_url":"https://codeload.github.com/raupulus/python-serial-lcd-uart-jc22-v05/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246871739,"owners_count":20847527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["display","jc22-05","lcd","library","pantalla","python","python3","serial","tft","uart"],"created_at":"2024-12-15T12:18:48.597Z","updated_at":"2025-04-02T18:44:32.343Z","avatar_url":"https://github.com/raupulus.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# serial-lcd-uart-jc22-v05\n\nLibrería para interactuar con la pantalla tft de 2,2 pulgadas JC22-v05 que trabaja únicamente comunicándose por Serial\n\n## Descripción\n\nAl encontrarme con poca información o errónea me dedico a preparar esta librería con los usos que le voy dando a esta pantalla.\n\n![Imagen de la pantalla TFT UART JC22-v05](images/doc/img1.jpg)\n\n## Modo de uso de la librería\n\nEl archivo **main.py** puede ser utilizado a modo de ejemplo para la librería.\n\nLa clase principal se encuentra en el archivo **LCDUart.py** y es la única necesaria\npara llevar a cabo un proyecto.\n\nBastará con importar y utilizar sus métodos, en el interior de la clase dejo descrito\ncada método con su funcionalidad.\n\n## Colores\n\n![Imagen de la pantalla TFT UART JC22-v05](images/doc/img2.jpg)\n\n|     Color   |      Nº      |\n|  :-------:  |  :--------:  |\n|  0          |  black       |\n|  1          |  red         |\n|  2          |  green       |\n|  3     |  blue          |\n|  4     |  yellow          |\n|  5     |  cyan-blue          |\n|  6     |  purple          |\n|  7     |  gray          |\n|  8     |  Light gray          |\n|  9     |  brown          |\n|  10     |  Dark green          |\n|  11     |  Navy blue          |\n|  12     |  Dark yellow          |\n|  13     |  Orange          |\n|  14     |  Light red          |\n|  15     |  white          |\n\n\n## Comandos Probados\n\n![Imagen de la pantalla TFT UART JC22-v05](images/doc/img3.jpg)\n\n\n## Comandos por probar, información de internet\n\n\n\n### Reset\n\nRESET;\n\n\nThis command allows the module to enter the software reset, receive this command, the module's peripheral components and system parameters will be restored to the power value.\n\n### Get the version information instructions for the module\nVER;\n\n\nThrough the VER; you can get the firmware version of this module information, and displayed on the screen\n\nSet the baud rate command\nBPS(bps);\nThe default baud rate is 115200 when the system is powered on.\n\n\n\nClear command\nCLR(c);\nNote that the range of c is 0 to 15, and if the value of c exceeds 15, the system will not respond to the CMD, and the range of c values will look at the following color list.\n\nCLR for the script, c for the clear use of the background color, the specific code see the following color list. If you want to fill the screen with black, then CLR (0);\n\nLCD control CMD\nLCDON（on_off）;\nOn_off parameters only 0 or 1, the system ignores other parameters.\n\nLCDON for the script, on_off, respectively, that start or turn off the LCD. Such as LCDON (1); that start LCD, LCDON (0); turn off the LCD.\n\nDisplay the LCD\nFSIMG(addr,x，y，w,h,mode);\nWhen Mode is 1, the white background of the picture will not be displayed. This mode is used to overlay the icon and the background image. Addr is the flash start address for storing pictures, starting at 2097152\n\nFSIMG for the script, addr for the picture stored in the flash address, x, y for the picture to be displayed on the screen above the starting position, w for the picture width, h for the picture height, mode for the picture display: 1 for the transparent display , 0 is normal display. Such as FSIMG (2097152,0,0,240,400,1); that from the 2097152 FLASH address removed 240 * 400 pictures and 0,0 position transparent display.\n\nImage download to FLASH command\nFS_DLOAD(SIZE);\nPicture will be downloaded to the FLASH 2M high storage space, so from 2M (2097152 position to start storing pictures) a total of 2M\nThis command supports the merger of the picture programming, does not support a single picture file programming.\n\nFS_DLOAD is the script, and SIZE is the total size of the picture to be downloaded. Such as FS_DLOAD (192000); that 192000 bytes of pictures downloaded to the flash, the total size of the picture can not exceed 2097152 bytes, if the SIZE assignment greater than 2097152 bytes, the system only to identify 2097152 bytes.\n\n\nSDIMG for the script, x, y for the picture to be displayed at the beginning of the screen position, w, h were the width and height of the picture, 'name' for the file name, currently only supports English name. SDIMG (0,0,240,400, '6.bin'); that is, the SD card stored 6.bin file in the module 0,0 position display\n\nVertical and horizontal screen switch CMD\nDIR(H_V);\nThe LCD is displayed by default for DIR (0); for vertical screen\n\nSuch as DIR (0); for vertical screen. DIR (1); for horizontal screen\n\nSet the brightness of the backlight\nBL (p); \nAfter the system is powered on, the brightness of the backlight is 20\n\nwhere BL is the instruction code, p is the brightness value of the backlight, the adjustment range is: 0 ~ 255, where 0 is full display, 255 is off display.\n\nDraw points\nPS (x, y, c); \nThis instruction does not apply to large areas of speculation, if there is a need to recommend built-in internal modules\n\nwhere PS is the instruction code, x, y is the starting position of the display, c is the color of the point\n\nDraw lines\nPL (x1, y1, x2, y2, c) \nNote that the range of c is 0 to 15, and if the value of c exceeds 15, the system will ignore this operation.\n\nwhere PL is the instruction code, x1, y1 is the starting point, x2, y2 is the position of the end point, c is the color of the line\n\nDraw box\nBOX (x1, y1, x2, y2, c) \n\n\nwhere BOX is the instruction code, x1, y1, the position of the starting point, x2, y2 is the position of the end point, c is the color of the box\n\nDraw box with Filled color\nBOXF (x1, y1, x2, y2, c);\n\n\n where BOXF is the instruction code, x1, y1, the position of the starting point, x2, y2 is the position of the end point, c is the color of the box\n\nDraw a circle\nCIR (x, y, r, c); \n\n\nwhere CIR is the instruction code, x, y is the center of the circle, r is the radius of the circle, c is the circle color\n\nDraw a circle with Filled color\nCIRF (x, y, r, c); \n\n\nwhere CIRF is the instruction code, x, y is the center of the circle, r is the radius of the circle, c is the color of the circle\n\nSet background color\nSBC (c); \n\n\nwhere SBC is the instruction code, c is the background color value, and c ranges from 0 to 63.\n\nDisplay 16 high character With background color instruction\nDCV16 (x, y, * str, c); \n\n\nwhere DCV16 is the instruction code, x, y is the starting position of the character, * str is the pointer of the character, c is the color of the character\n\nDisplay 24 high character With background color instruction\nDCV24 (x, y, * str, c); \n\n\nwhere DCV24 is the instruction code, x, y is the starting position of the character, * str is the pointer of the character, c is the color of the character\n\nDisplay 32 high character With background color instruction\nDCV32 (x, y, * str, c); \n\n\nwhere DCV32 is the instruction code, x, y is the starting position of the character, * str is the pointer of the character, c is the color of the character\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraupulus%2Fpython-serial-lcd-uart-jc22-v05","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraupulus%2Fpython-serial-lcd-uart-jc22-v05","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraupulus%2Fpython-serial-lcd-uart-jc22-v05/lists"}