{"id":20186381,"url":"https://github.com/numworks/epsilon-sample-app-cpp","last_synced_at":"2025-04-10T06:23:59.027Z","repository":{"id":38395741,"uuid":"376837434","full_name":"numworks/epsilon-sample-app-cpp","owner":"numworks","description":"A sample C++ app for the NumWorks graphing calculator","archived":false,"fork":false,"pushed_at":"2022-11-23T10:37:32.000Z","size":149,"stargazers_count":37,"open_issues_count":5,"forks_count":14,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-06T13:11:25.200Z","etag":null,"topics":["cpp","embedded","numworks"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/numworks.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}},"created_at":"2021-06-14T13:43:35.000Z","updated_at":"2025-01-27T17:47:59.000Z","dependencies_parsed_at":"2022-07-14T23:30:39.471Z","dependency_job_id":null,"html_url":"https://github.com/numworks/epsilon-sample-app-cpp","commit_stats":null,"previous_names":[],"tags_count":2,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numworks%2Fepsilon-sample-app-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numworks%2Fepsilon-sample-app-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numworks%2Fepsilon-sample-app-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numworks%2Fepsilon-sample-app-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/numworks","download_url":"https://codeload.github.com/numworks/epsilon-sample-app-cpp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248166868,"owners_count":21058481,"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":["cpp","embedded","numworks"],"created_at":"2024-11-14T03:17:00.961Z","updated_at":"2025-04-10T06:23:59.004Z","avatar_url":"https://github.com/numworks.png","language":"C++","readme":"# Sample C++ app for Epsilon\n\n[![Build](https://github.com/numworks/epsilon-sample-app-cpp/actions/workflows/build.yml/badge.svg)](https://github.com/numworks/epsilon-sample-app-cpp/actions/workflows/build.yml)\n\n\u003cimg src=\"/doc/screenshots.gif?raw=true\" alt=\"Sample C++ app for the NumWorks graphing calculator\" width=\"300\" align=\"right\"\u003e\n\nThis is a sample C++ app to use on a [NumWorks calculator](https://www.numworks.com).\n\n```cpp\n\nusing namespace EADK;\n\nvoid eadk_main() {\n  Display::pushRectUniform(\n    Display::Rect(0, 0, 320, 240),\n    Display::Color(0x000000)\n  );\n  while (1) {\n    Keyboard::State kbd = Keyboard::scan();\n    if (kbd.keyDown(Keyboard::Key::OK)) {\n      spaceship.createRockets();\n    }\n    if (kbd.keyDown(Keyboard::Key::Up)) {\n      spaceship.move(0, -Spaceship::k_step);\n    }\n    refreshScene();\n  }\n}\n```\n\n## Build the app\n\nTo build this sample app, you will need to install the [embedded ARM toolchain](https://developer.arm.com/Tools%20and%20Software/GNU%20Toolchain) and [Node.js](https://nodejs.org/en/). The C SDK for Epsilon apps is shipped as an npm module called [nwlink](https://www.npmjs.com/package/nwlink) that will automatically be installed at compile time.\n\n```shell\nbrew install numworks/tap/arm-none-eabi-gcc node # Or equivalent on your OS\nmake\n```\n\nYou should now have a `target/voord.nwa` file that you can distribute! Anyone can now install it on their calculator from the [NumWorks online uploader](https://my.numworks.com/apps).\n\n## Run the app locally\n\nTo run the app on your development machine, you can use the following command\n\n```shell\n# Now connect your NumWorks calculator to your computer using the USB cable\nmake run\n```\n\n## License\n\nThis sample app is distributed under the terms of the BSD License. See LICENSE for details.\n\n## Trademarks\n\nNumWorks is a registered trademark.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumworks%2Fepsilon-sample-app-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnumworks%2Fepsilon-sample-app-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumworks%2Fepsilon-sample-app-cpp/lists"}