{"id":19534255,"url":"https://github.com/naoto64/picolan","last_synced_at":"2025-02-26T03:44:13.550Z","repository":{"id":45132714,"uuid":"444088317","full_name":"naoto64/PicoLAN","owner":"naoto64","description":"This is a LAN system library using UART on Raspberry Pi Pico.","archived":false,"fork":false,"pushed_at":"2022-01-06T09:20:01.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-08T17:31:18.567Z","etag":null,"topics":["lan","parallel","raspberry-pi-pico","rs485","rs485-communication","rs485-comunication","rs485protocol","uart","uart-protocol"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/naoto64.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-03T14:22:02.000Z","updated_at":"2024-03-31T17:36:31.000Z","dependencies_parsed_at":"2022-08-25T23:12:28.676Z","dependency_job_id":null,"html_url":"https://github.com/naoto64/PicoLAN","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/naoto64%2FPicoLAN","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naoto64%2FPicoLAN/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naoto64%2FPicoLAN/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naoto64%2FPicoLAN/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naoto64","download_url":"https://codeload.github.com/naoto64/PicoLAN/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240788777,"owners_count":19857695,"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":["lan","parallel","raspberry-pi-pico","rs485","rs485-communication","rs485-comunication","rs485protocol","uart","uart-protocol"],"created_at":"2024-11-11T02:13:48.159Z","updated_at":"2025-02-26T03:44:13.522Z","avatar_url":"https://github.com/naoto64.png","language":"Python","readme":"# PicoLAN\nThis is a LAN system library using UART on Raspberry Pi Pico.\n\n## Description\nYou can build a LAN system by converting the UART of Raspberry Pi Pico to RS485 and connecting them in parallel.\n\n## Demo\n\n### Reception example\nThis is a program that reads received data.   \nReceive format: `STX` `ADDRESS(00~10)` `DATA_LEN` `DATA(10Byte)` `ETX`\n```python:demo1.py\nfrom machine import UART, Pin\nimport PicoLAN\n\ndef print_func(arg):\n    print(arg)\n\nuart = UART(0, baudrate=9600, tx=Pin(0), rx=Pin(1))\nplan = PicoLAN.PicoLAN(uart, 10, print_func, 10, 10, PicoLAN.DATA_LEN_FIXED)\n\nwhile True:\n    plan.read()\n```\n\n### Transmission example\nThis is an example of sending dictionary format data.   \nTransmission format: `STX` `ADDRESS(00~10)` `DATA_LEN` `DATA(10Byte)` `ETX`\n```python:demo2.py\nfrom machine import UART, Pin\nimport PicoLAN\n\ndef print_func(arg):\n    print(arg)\n\nuart = UART(0, baudrate=9600, tx=Pin(0), rx=Pin(1))\nplan = PicoLAN.PicoLAN(uart, 10, print_func, 10, 10, PicoLAN.DATA_LEN_FIXED)\ndata = {\n    \"a\": \"1\",\n    \"b\": \"2\"\n    }\nplan.send(data, 0)\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaoto64%2Fpicolan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaoto64%2Fpicolan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaoto64%2Fpicolan/lists"}