{"id":13613309,"url":"https://github.com/mampersat/micropython-morsecode","last_synced_at":"2025-04-13T15:32:57.927Z","repository":{"id":54625116,"uuid":"86515963","full_name":"mampersat/micropython-morsecode","owner":"mampersat","description":"MicroPython Morse Code","archived":false,"fork":false,"pushed_at":"2025-03-08T02:01:47.000Z","size":4,"stargazers_count":8,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-08T03:17:41.073Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mampersat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-28T23:07:26.000Z","updated_at":"2025-03-08T02:01:51.000Z","dependencies_parsed_at":"2022-08-13T22:00:14.313Z","dependency_job_id":null,"html_url":"https://github.com/mampersat/micropython-morsecode","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/mampersat%2Fmicropython-morsecode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mampersat%2Fmicropython-morsecode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mampersat%2Fmicropython-morsecode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mampersat%2Fmicropython-morsecode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mampersat","download_url":"https://codeload.github.com/mampersat/micropython-morsecode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248736082,"owners_count":21153531,"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":[],"created_at":"2024-08-01T20:00:43.879Z","updated_at":"2025-04-13T15:32:57.922Z","avatar_url":"https://github.com/mampersat.png","language":"Python","funding_links":[],"categories":["Libraries","精选驱动库"],"sub_categories":["Display","显示类"],"readme":"MicroPython Morse Code\n======================\n\n## Blink an LED with morse coded message\nThe library contains a class called Morse, this class has 2 functions, `flash()` which flashes the the pin specified when initializing the class for a the period of time specified in the arguments of the function, and the second function, `send()` that takes in the message you want to flash as an argument and flashes it the pin specified when initializing the class.\n\n### Default values\n| Function | Value       | Value 2  |\n|----------|-------------|----------|\n| __init__ | pin = 25    | wpm = 15 |\n| flash    | t = 0.5     |          |\n| send     | msg = \"SOS\" |          |\n\n## Example main.py\nBlink the phrase 'Hello World!\" in morse code\n\n```py\nfrom morsecode import Morse\n\ndef main() -\u003e None:\n    code = Morse(12, 20) # Initialize with pin 12 and 20 WPM\n    code.send(\"Hello World!\") # Send the message \"Hello World!\" in Morse code\n\nif __name__ == \"__main__\":\n    main() # Run the main function\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmampersat%2Fmicropython-morsecode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmampersat%2Fmicropython-morsecode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmampersat%2Fmicropython-morsecode/lists"}