{"id":27633763,"url":"https://github.com/djaus2/otaledflash","last_synced_at":"2025-04-23T18:19:30.359Z","repository":{"id":251745361,"uuid":"838312668","full_name":"djaus2/OTALedFlash","owner":"djaus2","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-08T13:10:21.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-23T18:19:27.068Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/djaus2.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-05T11:41:27.000Z","updated_at":"2024-08-08T13:10:25.000Z","dependencies_parsed_at":"2024-08-08T15:02:05.403Z","dependency_job_id":null,"html_url":"https://github.com/djaus2/OTALedFlash","commit_stats":null,"previous_names":["djaus2/otaledflash"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djaus2%2FOTALedFlash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djaus2%2FOTALedFlash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djaus2%2FOTALedFlash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djaus2%2FOTALedFlash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/djaus2","download_url":"https://codeload.github.com/djaus2/OTALedFlash/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250487536,"owners_count":21438612,"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":"2025-04-23T18:19:29.884Z","updated_at":"2025-04-23T18:19:30.352Z","avatar_url":"https://github.com/djaus2.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OTALedFlash - Arduino\r\n\r\nAn example Sketch for OTA (Over-The-Air) updating of a RPi Pico W.\r\nSimilar to examples at [https://github.com/earlephilhower/arduino-pico/tree/master/libraries/ArduinoOTA/examples](https://github.com/earlephilhower/arduino-pico/tree/master/libraries/ArduinoOTA/examples) especially the first 2. This one uses Inbuilt LED flashes to indicate where the sketch is at.\r\n\r\n\u003e Note: If device is disconnected to USB Serial then no Serial Debug messages show and hence flashing LeD is useful\r\n\r\n## Usage\r\n\r\n- Provision the RPi Pico W _(See next)_\r\n- Build and upload the Sketch to the device.\r\n- Partition the flash into 2 partitions of 1M\r\n  - Tools-\u003eFlash Size-\u003e1M FS: M last option.\r\n- Build and deploy using USB-Serial\r\n- After a while, a Network deploy option becomes available in Tools-\u003ePort (at the bottom).\r\n  - Choose and upload OTA\r\n\r\n## Provisioning a RPi Pico W with Arduino\r\n\r\n- BSP: See [github/earlephilhower/arduino-pico](https://github.com/earlephilhower/arduino-pico)\r\n- RPi Pico W Simulated EEProm Docs: See [EEPROM Library](https://arduino-pico.readthedocs.io/en/latest/eeprom.html)\r\n\r\n\u003e Blog Posts on this [otapico](https://davidjones.sportronics.com.au/tags/otapico/)\r\n\r\n### LED Flash Codes\r\n\r\n```c\r\n#define SHORTPULSE 500\r\n#define ULTRA_SHORTPULSE 250\r\n#define LONGPULSE 1000\r\n#define EXTRA_LONGPULSE 1000\r\n\r\n#define BOOTING_NUMFLASHES  5\r\n#define BOOTING_PERIOD SHORTPULSE\r\n\r\n#define WIFI_STARTED_NUMFLASHES  3\r\n#define WIFI_STARTED_PERIOD LONGPULSE\r\n\r\n#define OTA_ON_START_NUMFLASHES  4\r\n#define OTA_ON_START_PERIOD ULTRA_SHORTPULSE\r\n\r\n#define OTA_ON_END_NUMFLASHES  4\r\n#define OTA_ON_END_PERIOD LONGPULSE\r\n\r\n#define OTA_ON_ERROR_NUMFLASHES  6\r\n#define OTA_ON_ERROR__PERIOD EXTRA_LONGPULSE\r\n\r\n#define READY_NUMFLASHES  8\r\n#define READY_PERIOD ULTRA_SHORTPULSE\r\n\r\n```\r\n\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjaus2%2Fotaledflash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjaus2%2Fotaledflash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjaus2%2Fotaledflash/lists"}