{"id":20286512,"url":"https://github.com/csbluechip/flipperzero_plugin_pwm","last_synced_at":"2025-04-11T09:09:47.852Z","repository":{"id":59756756,"uuid":"527401852","full_name":"csBlueChip/FlipperZero_plugin_PWM","owner":"csBlueChip","description":"PWM demo for Speaker, LED, IR Array, and GPIO","archived":false,"fork":false,"pushed_at":"2022-09-20T13:05:52.000Z","size":32,"stargazers_count":26,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T06:33:01.486Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/csBlueChip.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}},"created_at":"2022-08-22T03:46:39.000Z","updated_at":"2025-03-12T15:20:28.000Z","dependencies_parsed_at":"2022-09-21T06:32:39.803Z","dependency_job_id":null,"html_url":"https://github.com/csBlueChip/FlipperZero_plugin_PWM","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/csBlueChip%2FFlipperZero_plugin_PWM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csBlueChip%2FFlipperZero_plugin_PWM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csBlueChip%2FFlipperZero_plugin_PWM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csBlueChip%2FFlipperZero_plugin_PWM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csBlueChip","download_url":"https://codeload.github.com/csBlueChip/FlipperZero_plugin_PWM/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248364598,"owners_count":21091617,"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-11-14T14:34:34.522Z","updated_at":"2025-04-11T09:09:47.822Z","avatar_url":"https://github.com/csBlueChip.png","language":"C","readme":"# WARNING\n\nThis application *__currently__* requires a patch to the Flipper exports to make it work as a FAP ...An issue has been raised: https://github.com/flipperdevices/flipperzero-firmware/issues/1747 ...It has been acknowledged on Discord, and expected to be resolved before FAP v1.0 is officially released.\n\nWORKAROUND:\n* EITHER: edit `firmware/targets/f7/api_symbols.csv` and:\n  * for `calloc` change:\n    * `Function,-,calloc,void*,\"size_t, size_t\"` to \n    * `Function,+,calloc,void*,\"size_t, size_t\"`\n  * for `LL_TIM_DeInit` change:\n    * `Function,-,LL_TIM_DeInit,ErrorStatus,TIM_TypeDef*` to \n    * `Function,+,LL_TIM_DeInit,ErrorStatus,TIM_TypeDef*`\n* OR: paste these commands to edit the file inline    \n  * `sed -i 's/\\(Function,\\)-\\(,calloc,.*\\)/\\1+\\2/' firmware/targets/f7/api_symbols.csv`\n  * `sed -i 's/\\(Function,\\)-\\(,LL_TIM_DeInit,.*\\)/\\1+\\2/' firmware/targets/f7/api_symbols.csv`\n* THEN: Update the firmware on the Flipper\n  * `cd /path/to/flipper/` \n  * `./fbt flash_usb`\n  \nTo review the code as a PLUGIN, please see this checkin: https://github.com/csBlueChip/FlipperZero_plugin_PWM/tree/16ab64c8c9a840813aadf60583acc595b79793fb\n\n# FlipperZero PWM Demo (FAP)\n\nThis will allow you to configure a PWM timer {Frequency, Duty Cycle, Duty Scaling Curve} and attach it to a GPIO Pin.\n\nYou can currently select from:\n* PB8 - Internal Speaker\n* PB9 - Internal IR LED Array\n* PB3 - External GPIO Pin\n\nInternal LED, and Brightness scaling are currently not written.\n\n```\ncd ~/path/to/flipperDevKit/\nmkdir -p applications_user/bc_pwm_demo\npushd applications_user/bc_pwm_demo\ngit clone https://github.com/csBlueChip/FlipperZero_plugin_PWM.git ./\npopd\n./fbt launch_app APPSRC=applications/bc_pwm_demo\n```\nMore details here: https://github.com/csBlueChip/FlipperZero_plugin_howto\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsbluechip%2Fflipperzero_plugin_pwm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsbluechip%2Fflipperzero_plugin_pwm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsbluechip%2Fflipperzero_plugin_pwm/lists"}