{"id":38766876,"url":"https://github.com/blues/note-stm32l0","last_synced_at":"2026-01-17T12:01:13.249Z","repository":{"id":40549921,"uuid":"212190177","full_name":"blues/note-stm32l0","owner":"blues","description":"Example using Notecard with the STMicroelectronics SDK for the STM32L0","archived":false,"fork":false,"pushed_at":"2022-05-03T16:17:43.000Z","size":4005,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-12-26T17:50:46.857Z","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/blues.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2019-10-01T20:10:48.000Z","updated_at":"2022-05-03T04:06:36.000Z","dependencies_parsed_at":"2022-09-17T08:10:50.795Z","dependency_job_id":null,"html_url":"https://github.com/blues/note-stm32l0","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/blues/note-stm32l0","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blues%2Fnote-stm32l0","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blues%2Fnote-stm32l0/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blues%2Fnote-stm32l0/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blues%2Fnote-stm32l0/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blues","download_url":"https://codeload.github.com/blues/note-stm32l0/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blues%2Fnote-stm32l0/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28508464,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T11:50:55.898Z","status":"ssl_error","status_checked_at":"2026-01-17T11:50:55.569Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-17T12:00:41.970Z","updated_at":"2026-01-17T12:01:13.009Z","avatar_url":"https://github.com/blues.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# note-stm32l0\n\nThis is an example of how to use the Notecard and the [note-c][note-c] library\nwith the native STM32 SDK.\n\nThe board that I used for testing is the [Nucleo-L053R8][board] kit with STM32L053R8 MCU.  This board\nwas selected because of its minimalism and the fact that it has an integrated debug probe.\n\nAs a proof-of-concept, it implements the same functions as the [note-arduino][note-arduino] library's JSON\nexample.\n\nOne other notable feature of this example is that it implements a working example of the\nSTM32's extremely low-power STOP mode.  When running the example, the STM32 draws so little power that\nit is highly applicable, by using the code here, for battery-powered applications. An extension of\nthis example allows one to hook a wire to one of the STM32's GPIO pins, simulating a button press\nthat will also wake up the STM32 to update its sensor readings.\n\n## Hardware Setup\nBefore you begin using the software, wire your Nucleo development board to the Notecarrier containing\nthe Notecard.  You may wire it for Serial, I2C, or both.  In order to do so, you'll need some standard female-to-female\nheader wires to jumper between the boards.  For reference, the Nucleo's user manual is [here][reference-manual]\n- Connect the Notecarrier's GND pin to any of the Nucleo's GND pins\n- For Serial\n  - Connect the Notecarrier's RX to the Nucleo's D8 pin (USART1_TX PA9)\n  - Connect the Notecarrier's TX to the Nucleo's D2 pin (USART1_RX PA10)\n- For I2C\n  - Connect the Notecarrier's SDA pin to the Nucleo's D14 pin (I2C1_SDA PB9)\n  - Connect the Notecarrier's SCL pin to the Nucleo's D15 pin (I2C1_SCL PB8)\n- In order to simulate a \"button\" for testing, we'll use the Nucleo's blue B1 button (PC13)\n- Connect both the Notecarrier and Nucleo to power by using their USB connectors to connect them to your development machine.\n\n## Installation of the STMicroelectronics Integrated Development Environment\n\nIn order to do development with this example, you will need to download and install STMicroelectronics's free IDE\ncalled [STM32CubeIDE][ide].  During installation it will ask you to specify a directory to contain your projects.\nRemember this directory path, because that's where you'll download this example.\n\n## Installation of this example\n\nClone this [note-stm32l0][note-stm32l0] repo into the projects folder that you selected during IDE\ninstallation, as follows.  You'll note that the latest copy of the [note-c][note-c] C library is already\nloaded by default, as a subdirectory of the [note-stm32l0][note-stm32l0] directory.\n\n```\nSTM32CubeIDE projects folder\n├ note-stm32l0\n  ├ note-c  \n```\n\nIn STM32CubeIDE, open the [note-stm32l0][note-stm32l0] project.  Make sure that you edit the \"my\" definitions\nat the top of example.c so that this example will send data to your notehub.io project, and so that it uses\nserial or I2C as you wish.  By using the standard Debug build configuration, you should be able to build and run the project.\n\nThis example has been tested with both UART and with I2C, and it has been verified that the project's STOP mode\nworks very reliably.  Note that in event.h there is a conditional (defaulted ON) that uses the green LED on the Nucleo\nto indicate whether or not the STM32 is in STOP mode.  If it's OFF, it is stopped.  (Note that it will never enter\nSTOP mode while you are in the debugger, else the debugger would halt.)\n\n## Contributing\n\nWe love issues, fixes, and pull requests from everyone. By participating in this\nproject, you agree to abide by the Blues Inc [code of conduct].\n\nFor details on contributions we accept and the process for contributing, see our\n[contribution guide](CONTRIBUTING.md).\n\n## More Information\n\nFor Notecard SDKs and Libraries, see:\n\n* [note-c][note-c] for Standard C support\n* [note-go][note-go] for Go\n* [note-python][note-python] for Python\n\n## To learn more about Blues Wireless, the Notecard and Notehub, see:\n\n* [blues.com](https://blues.io)\n* [notehub.io][Notehub]\n* [wireless.dev](https://wireless.dev)\n\n## License\n\nCopyright (c) 2019 Blues Inc. Released under the MIT license. See\n[LICENSE](LICENSE) for details.\n\n\n[blues]: https://blues.com\n[notehub]: https://notehub.io\n[note-c]: https://github.com/blues/note-c\n[note-go]: https://github.com/blues/note-go\n[note-python]: https://github.com/blues/note-python\n[archive]: https://github.com/blues/note-arduino/archive/master.zip\n[code of conduct]: https://blues.github.io/opensource/code-of-conduct\n[Notehub]: https://notehub.io\n\n[note-stm32l0]: https://github.com/blues/note-stm32l0\n[note-c]: https://github.com/blues/note-c\n[note-arduino]: https://github.com/blues/note-arduino\n[board]: https://www.st.com/en/evaluation-tools/nucleo-l053r8.html\n[reference-manual]: https://www.st.com/resource/en/user_manual/dm00105823.pdf\n[ide]: https://www.st.com/en/development-tools/stm32cubeide.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblues%2Fnote-stm32l0","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblues%2Fnote-stm32l0","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblues%2Fnote-stm32l0/lists"}