{"id":20316136,"url":"https://github.com/lupyuen/bl602_adc","last_synced_at":"2026-07-03T15:04:23.556Z","repository":{"id":87766602,"uuid":"447181906","full_name":"lupyuen/bl602_adc","owner":"lupyuen","description":"BL602 ADC and Temperature Sensor Library for Apache NuttX OS","archived":false,"fork":false,"pushed_at":"2022-04-26T03:10:05.000Z","size":181,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-14T12:53:46.381Z","etag":null,"topics":["bl602","bl604","nuttx","pinecone","pinedio","riscv32"],"latest_commit_sha":null,"homepage":"https://lupyuen.github.io/articles/book#nuttx-on-bl602","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lupyuen.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":"2022-01-12T10:57:01.000Z","updated_at":"2023-11-13T03:31:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"a8a8e8f9-9e9c-4994-b67e-6b0b66631702","html_url":"https://github.com/lupyuen/bl602_adc","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/lupyuen%2Fbl602_adc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lupyuen%2Fbl602_adc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lupyuen%2Fbl602_adc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lupyuen%2Fbl602_adc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lupyuen","download_url":"https://codeload.github.com/lupyuen/bl602_adc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241818902,"owners_count":20025210,"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":["bl602","bl604","nuttx","pinecone","pinedio","riscv32"],"created_at":"2024-11-14T18:24:34.060Z","updated_at":"2026-07-03T15:04:18.527Z","avatar_url":"https://github.com/lupyuen.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BL602 ADC and Temperature Sensor Library for Apache NuttX OS\n\nThis NuttX Library enables access to BL602's ADC and Internal Temperature Sensor. The code was ported from BL602 MCU SDK's ADC / GLB / EFuse Standard Driver with minimal changes...\n\n-   [bl_mcu_sdk/drivers/bl602_driver/std_drv](https://github.com/bouffalolab/bl_mcu_sdk/blob/master/drivers/bl602_driver/std_drv)\n\nAs explained in [this Twitter Thread](https://twitter.com/MisterTechBlog/status/1481425041275617283).\n\n[(Note: This library is NOT the proper way to access ADC Hardware in NuttX. Hopefully someday we will have an ADC Driver for BL602 NuttX, then we can do away with this library)](https://www.linkedin.com/feed/update/urn:li:activity:6887353468663812096?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A6887353468663812096%2C6887410260710055936%29\u0026replyUrn=urn%3Ali%3Acomment%3A%28activity%3A6887353468663812096%2C6887411211546312704%29)\n\nTo test the BL602 ADC Library, run this NuttX App...\n\n-   [lupyuen/bl602_adc_test](https://github.com/lupyuen/bl602_adc_test)\n\n# Install Library\n\nTo add this library to your NuttX project...\n\n```bash\ncd nuttx/nuttx/libs\ngit submodule add https://github.com/lupyuen/bl602_adc libbl602_adc\n```\n\nNext update the Makefiles and Kconfig...\n\n-   [\"Update Makefiles and Kconfig\"](https://lupyuen.github.io/articles/sx1262#update-makefiles-and-kconfig)\n\n    Change \"__sx1262__\" to \"__bl602_adc__\", preserve case\n\n-   [See the modified Makefiles and Kconfig](https://github.com/lupyuen/incubator-nuttx/commit/cbe6be8ca58407ec4a124348dd19c4986a60335e)\n\nThen update the NuttX Build Config...\n\n```bash\n## TODO: Change this to the path of our \"incubator-nuttx\" folder\ncd nuttx/nuttx\n\n## Preserve the Build Config\ncp .config ../config\n\n## Erase the Build Config\nmake distclean\n\n## For BL602: Configure the build for BL602\n./tools/configure.sh bl602evb:nsh\n\n## For ESP32: Configure the build for ESP32.\n## TODO: Change \"esp32-devkitc\" to our ESP32 board.\n./tools/configure.sh esp32-devkitc:nsh\n\n## Restore the Build Config\ncp ../config .config\n\n## Edit the Build Config\nmake menuconfig \n```\n\nIn menuconfig, enable the BL602 ADC Library under \"Library Routines\".\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flupyuen%2Fbl602_adc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flupyuen%2Fbl602_adc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flupyuen%2Fbl602_adc/lists"}