{"id":16593429,"url":"https://github.com/mrozbarry/platformio-embedded-framework","last_synced_at":"2026-04-16T16:35:03.918Z","repository":{"id":144791561,"uuid":"569738401","full_name":"mrozbarry/platformio-embedded-framework","owner":"mrozbarry","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-05T03:37:12.000Z","size":69,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-06T16:18:17.391Z","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/mrozbarry.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-11-23T14:00:32.000Z","updated_at":"2022-11-25T21:58:06.000Z","dependencies_parsed_at":"2024-04-05T04:29:22.822Z","dependency_job_id":"f546c4c2-63bc-4480-b002-c85222392f94","html_url":"https://github.com/mrozbarry/platformio-embedded-framework","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mrozbarry/platformio-embedded-framework","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrozbarry%2Fplatformio-embedded-framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrozbarry%2Fplatformio-embedded-framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrozbarry%2Fplatformio-embedded-framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrozbarry%2Fplatformio-embedded-framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrozbarry","download_url":"https://codeload.github.com/mrozbarry/platformio-embedded-framework/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrozbarry%2Fplatformio-embedded-framework/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31895401,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T11:36:10.202Z","status":"ssl_error","status_checked_at":"2026-04-16T11:36:09.652Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":"2024-10-11T23:26:40.196Z","updated_at":"2026-04-16T16:35:03.886Z","avatar_url":"https://github.com/mrozbarry.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Arduino + I2C LCD Framework\n\nDeveloped for Ardunio Nano (ATmega328P) with an LCD screen\n\n## Setup\n\n 1. `brew install platformio`\n 2. `pio run -e development` will build and run the native build in your terminal\n 3. To run the native build, the executable is `./.pio/build/development/program`\n\n## Documentation\n\n### `lib/vendor`\n\nThe `lib/vendor` folder is the framework for building applications.\nThe main goal is `lib/vendor` is to provide base classes and a foundation for building applications, specifically targetting applications displayed on constrained text-only LCD screens.\n\n#### `class Message`\n\n`Message`s are objects with types that can pass data around to different objects in the application.\nAny `Message` usually looks like `Message(Message::Type::THING)`, and this message will be passed to every object in the application.\nUsing the `type` property, any object can determine if it needs to cast the Message to a child-class.\n\n#### `class Lifecycle`\n\nArduino C applications have two main functions, `init` and `loop`.\nLifecycle has parallel virtual methods, `init(unsigned long now)` and `tick(unsigned long now)`.\n`init` is meant to be called when the C method `init` is called, *OR* when a new object is dynamically created during program execution.\n`tick` is called on each successive C `loop`.\nIn both cases, `init` and `tick` receive the current timestamp from Arduino's `millis()` implementation, which is meant to give each `Lifecycle`-derived object a consistent way of updating.\n\nA `Lifecycle` object can also implement `message(Message *)`, which is a way to receive messages passed through the application.\nTypically the `message` method will consist of a `switch(message-\u003etype)` and will determine which message types are important for the current object, or which messages can be ignored.\n\n#### `class Application`\n\nThe application is a special singleton `Lifecycle` object that should track which objects are being used by the application, as well as triggering their `init`, `tick`, and `message` methods.\nApplications can also `queue(Message*)` which will send a given `Message*` to all the registered `Lifecycle` objects.\n\n### `src`\n\n\n## Future work\n\n### Components\n\nI would like to have an interface in pages that could behave like this:\n\n```\nPage::Render *render()\n{\n  return new Columns([\n    new Text(\"Hello\"),\n    new Text(\"World\", Text::Align::Right),\n  ], 2);\n}\n```\n\nWhich could render something like:\n\n```\n+----------------+\n|Hello      World|\n|                |\n+----------------+\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrozbarry%2Fplatformio-embedded-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrozbarry%2Fplatformio-embedded-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrozbarry%2Fplatformio-embedded-framework/lists"}