Coder Social home page Coder Social logo

therainbowphoenix / cpapptemplate Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 9.0 853 KB

A test that could become the next CP App Template

Dockerfile 6.61% Makefile 55.48% C++ 34.99% Assembly 2.92%
classpad classpad-ii cross-compiler dockcross docker sh4 template template-project casio-fx-cp400

cpapptemplate's Introduction

CPAppTemplate

A test that could become the next CP App Template

Usage

First, fork this repo to work on your own : Click that Fork button

Find a cool name for it : Choose a name, then click Create fork

Forking will take a few seconds.

Once done, open the forked repo on a codespace :

Code > Codespaces > Create codespace on master

You'll see a message telling it's creating, please wait for a while

Wait for the codespace to be created

On the terminal, use make hhk to generate an HHK file, or make bin to generate an BIN (smaller) that's both ready to get uploaded to your calculator

Run make hhk on the terminal to generate binaries

You can now download generated files. If you run into issues during this step, please see Getting support

Download the files to upload to your calculator

Plug your calculator on your desktop and choose "USB Flash" mode.

choose USB Flash on your calculator

Go into your file explorer, on the "USB Drive" that's the calculator, and then copy at the root of it your app_template.hhk (or/and app_template.bin) Then, eject the Classpad Mass Storage device by right clicking on notifications > "Safely remove device

Finally on your calculator, go in "System" from the home screen, "System" from the top menu and "Hollyhock-2 Launcher" You should see the "My app name" on the list (twice if you did both the HHK and the BIN) and you can "Run" it

You can run your app by clicking Run

You should then see a beautiful demo with "Hello world" and custom shapes on the screen ! Congratulations !

What to do next

You can edit the main.cpp file to add your own logic and build whatever you want. Be sure to remember that you're coding on embed hardware, and most of the C/C++ funtion you know won't work there (say printf).

First thing you can do is edit the first lines that describe your app :

APP_NAME("My app name")
APP_DESCRIPTION("A short description of my app")
APP_AUTHOR("My name")
APP_VERSION("1.0.2")

Then, you can take a look at the beginners tutorials to build some simple programs and even small games.

For more information, you can explore the docs or get some inspiration by looking at the demos

Getting support

If you need help, feel free to join our community both in Discord and Reddit

Why is there HHK and BIN

Design decisions made us split between ELF-compatible "hhk" and raw executable binary (or shellcode, kinda) "bin"

cpapptemplate's People

Contributors

therainbowphoenix avatar

Watchers

 avatar  avatar  avatar

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.