{"id":20910526,"url":"https://github.com/ziteh/stm32-oop-lib","last_synced_at":"2025-05-13T07:31:47.732Z","repository":{"id":130511308,"uuid":"412959378","full_name":"ziteh/stm32-oop-lib","owner":"ziteh","description":"STM32 OOP library","archived":true,"fork":false,"pushed_at":"2023-04-02T11:57:08.000Z","size":125,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-06T06:08:20.844Z","etag":null,"topics":["libopencm3","nucleo-board","stm32","stm32f103"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ziteh.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":"2021-10-03T02:42:38.000Z","updated_at":"2023-12-10T20:31:57.000Z","dependencies_parsed_at":"2024-02-19T14:48:41.441Z","dependency_job_id":null,"html_url":"https://github.com/ziteh/stm32-oop-lib","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziteh%2Fstm32-oop-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziteh%2Fstm32-oop-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziteh%2Fstm32-oop-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziteh%2Fstm32-oop-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ziteh","download_url":"https://codeload.github.com/ziteh/stm32-oop-lib/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253894828,"owners_count":21980407,"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":["libopencm3","nucleo-board","stm32","stm32f103"],"created_at":"2024-11-18T14:15:42.146Z","updated_at":"2025-05-13T07:31:47.708Z","avatar_url":"https://github.com/ziteh.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# STM32 OOP Library\n\n***Legacy***\n\nThe basic OOP library of STM32.  \n\n# Features / 功能\n- GPIO\n\n\u003e Only tested on STM32F103RB (NUCLEO-F103RB board).  \n\u003e 僅在 STM32F103RB (NUCLEO-F103RB 開發板) 上進行過測試。\n\n# Usage / 用法\n\nAll the code in this library are inside namespace `stm32_oop_lib`.  \nThe following example may ellipsis `stm32_oop_lib::` or `using namespace stm32_oop_lib;`.\n\n\u003cbr/\u003e\n\n此函式庫的所有程式碼都在命名空間 `stm32_oop_lib` 之中。  \n以下的範例可能會省略 `stm32_oop_lib::` 或 `using namespace stm32_oop_lib;`。\n\n## GPIO\n\n### LED Blink Example/ LED 閃爍範例\n```cpp\n// main.cc\n\n#include \u003clibopencm3/stm32/rcc.h\u003e\n#include \u003cstm32_oop_lib_gpio.h\u003e\n\nvoid delay(int value);\n\nint main(void)\n{\n  rcc_periph_clock_enable(RCC_GPIOA);\n\n  stm32_oop_lib::GPIO led(stm32_oop_lib::UserLED,\n                          stm32_oop_lib::OutputPushPull);\n\n  while (1)\n  {\n    led.Toggle();\n    delay(200000);\n  }\n\n  return 0;\n}\n\nvoid delay(int value)\n{\n  while (value--)\n  {\n    __asm__(\"nop\");\n  }\n}\n```\n\n# Dependency / 依賴\n\n- [libopencm3/libopencm3: Open source ARM Cortex-M microcontroller library](https://github.com/libopencm3/libopencm3)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziteh%2Fstm32-oop-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fziteh%2Fstm32-oop-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziteh%2Fstm32-oop-lib/lists"}