{"id":19258540,"url":"https://github.com/codaris/pebble-cpp","last_synced_at":"2025-07-26T17:36:38.300Z","repository":{"id":63528807,"uuid":"568006144","full_name":"codaris/pebble-cpp","owner":"codaris","description":"Pebble Foundation Classes (C++ for Pebble)","archived":false,"fork":false,"pushed_at":"2025-02-07T04:59:32.000Z","size":2968,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-01T14:21:01.474Z","etag":null,"topics":["pebble","pebble-sdk","pebble-smartwatch"],"latest_commit_sha":null,"homepage":"https://codaris.github.io/pebble-cpp/","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/codaris.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-11-19T06:25:24.000Z","updated_at":"2025-02-08T11:53:27.000Z","dependencies_parsed_at":"2025-02-08T15:30:43.598Z","dependency_job_id":null,"html_url":"https://github.com/codaris/pebble-cpp","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/codaris%2Fpebble-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codaris%2Fpebble-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codaris%2Fpebble-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codaris%2Fpebble-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codaris","download_url":"https://codeload.github.com/codaris/pebble-cpp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250080680,"owners_count":21371547,"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":["pebble","pebble-sdk","pebble-smartwatch"],"created_at":"2024-11-09T19:13:39.736Z","updated_at":"2025-04-21T15:31:37.337Z","avatar_url":"https://github.com/codaris.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pebble Foundation Classes (C++ for Pebble)\n\nThis Pebble Package gives you the ability to code Pebble watchapps using C++.  It wraps the Pebble API in an low-overhead header-only object-oriented library. \n\n## Why would you do this?!?\n\n\u003e \"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man.\"\n\\- *George Bernard Shaw*\n\nI primarily work in high-level languages like C#, Java, Python, and C++, so organizing my Pebble watchapp code in C quickly became a challenge. As my projects grew, managing structs, callback contexts, and especially global variables became increasingly difficult.\n\nIn the fall of 2014, I started this project to bring C++ to Pebble development. It was full of false starts and tough problems, but I eventually solved the major hurdles and just needed to flesh out the library. However, when Pebble shut down, I set the project aside.\n\nWhen the first [Rebble Hackathon](https://rebble.io/hackathon-001/) was announced, it felt like the perfect time to either finish what I started or at least release it to the world.\n\n## Features and Benefits\n\n* PFC classes automatically manage the context pointer in Pebble OS callbacks.\n* All PFC methods are inline with low-to-zero overhead.\n* Ability to use STL classes like `std::string`, `std::vector`, and `std::unique_ptr` for more high-level development.\n* Organize your Windows and Layers into their own classes.\n* Use RAII to automatically free resources when they are no longer needed.\n* Fully compatible with the Pebble C API -- you can call C functions with PFC class instances as parameters and use Pebble C types with C++ classes and methods.  \n\n## Getting Started\n\nTo get started, please check out the following pages:\n\n* [Simple C++ Application Tutorial](https://codaris.github.io/pebble-cpp/tutorial.html)\n* [Using this SDK](https://codaris.github.io/pebble-cpp/using.html)\n\nThey provide detailed information about configuring the project to build C++ files and how to structure your code.\n\n## Documentaton\n\nView the complete documentation by clicking the link below:\n\n* [Pebble Foundation Classes Documentation](https://codaris.github.io/pebble-cpp/)\n\n### Example and Tutorial Programs\n\nYou can view and download various sample projects from the site below:\n\n* [Pebble Foundation Classes Example Projects GitHub](https://github.com/codaris/pebble-cpp-examples)\n\n## Getting Help\n\nYou can get help with this SDK using the [Issues](https://github.com/codaris/pebble-cpp/issues) tab in this project or by using the [Rebble Alliance Discord](https://discord.com/invite/aRUAYFN).\n\nAlso please check out the [Known Issues](https://codaris.github.io/pebble-cpp/issues.html) page.\n\n## Contributing\n\nThis project is currently under an active development. Code quality and stability is the primary focus, so any bug fixing requests and/or fixing changes will appreciated. If you want to help this project:\n\n* Any help in testing the SDK are very appreciated. You can leave information about found defects on the [Issues](https://github.com/codaris/pebble-cpp/issues) tab;\n* Anyone who would like to provide a fix for any found defect are welcome. Please, create pull requests for fixing changes;\n* You are welcome to create pull requests for new features and new Pebble API wrappers;\n* Additional [Sample Applications](https://github.com/codaris/pebble-cpp-examples) that demonstrate features of the SDK are appreciated.\n\n#### How to inform about found defects\n\n* First of all, please check project Issues on GitHub and Known Issues in CHANGELOG. The issue you found might be already recorded.\n* Check that the issue is reproducible and describe it.\n* Ideally, create a small test program that exposes the problem.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodaris%2Fpebble-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodaris%2Fpebble-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodaris%2Fpebble-cpp/lists"}