Giter Club home page Giter Club logo

epsilon-sample-app-c's Introduction

Sample C app for Epsilon

Build

This is a sample C app to use on a NumWorks calculator.

#include <eadk.h>

int main(int argc, char * argv[]) {
  eadk_display_draw_string("Hello, world!", (eadk_point_t){0, 0}, true, eadk_color_black, eadk_color_white);
  eadk_timing_msleep(3000);
}

Build the app

To build this sample app, you will need to install the embedded ARM toolchain and Node.js. The C SDK for Epsilon apps is shipped as an npm module called nwlink that will automatically be installed at compile time.

brew install numworks/tap/arm-none-eabi-gcc node # Or equivalent on your OS
make clean && make build

You should now have a output/app.nwa file that you can distribute! Anyone can now install it on their calculator from the NumWorks online uploader.

Run the app locally

To run the app on your development machine, you can use the following command

# Now connect your NumWorks calculator to your computer using the USB cable
make run

License

This sample app is distributed under the terms of the BSD License. See LICENSE for details.

Trademarks

NumWorks is a registered trademark.

epsilon-sample-app-c's People

Contributors

ecco avatar emilienumworks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

epsilon-sample-app-c's Issues

libmath

Is it possible to use libmath?

Crash after installing app with make run

Steps to reproduce with Epsilon 22.2.1 on N0120:

  • Clone this repository
  • Connect calculator and run make run
  • The app installs fine on the calc
  • From main menu, select the app
  • Observe: crash and reboot
    This also happens with the C++ sample app.
    Related infos: node.js version is node-v20.11.0-linux-x64, arm gcc version gcc-arm-none-eabi-10.3-2021.10

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.