| ⭅ Previous (File browser) |
Metal-16 SDK Now available!
The software development kit (SDK) for our Metal-16 pocket computer is now available! Apps built with the SDK can run on:
- Our baremetal pocket computer
- Hardware you can build yourself
- Simulated on your desktop (image)
- On the web, in our emulator
If you just want to jump in, you can find the Metal-16 template repository on Github.
In the rest of this post, we’ll show how to use the SDK, and how to get started making your apps.
Building the SDK
The SDK comes in the form of a default app, with tooling in place to build for its three physical platforms (baremetal / native / web). This default app is the classic ’tennis’ game, and supports two players. It provides an example of interacting with the keypad, a main application loop, and updating the display.
You can use this as an example to learn from, and also a starting point for your own applications.
Building for Baremetal
You can build your application for “baremetal”, if you would like to run it on the Metal-16, or your own DIY pocket computer. Running is a two step process:
- Compile the application.
- Upload the code to your device (aka flashing / programming).
Both are single commands in the sdk:
$ make metal # compile for baremetal
$ make dfu # upload your program to a connected device
Building for Native (Simulator)
While you are developing your app, you’ll probably find it faster to run in the local simulator. This simulates the high level application interface.
$ make sim # build and run the simulator for your app
$ make simbuild # build only, useful for CI / testing.
Building for Web
Its a fun challenge to build applications for unique hardware. But it is also fun to be able to share your creations with others.
To ensure that applications are easy to share and experience, we have a web-based simulator available online.
Testing your app in the web simulator is easy:
$ make web # build for the web-assembly (WASM) target.
$ make serve # launch a local web server to serve the assets.
With your local web server running, you can test in your web browser.
What will you build?
If you build something cool and would like to share, we’d be happy to help others find your app. We have a Metal Apps Repository to link to apps developed by others. Feel free to send us a pull request, we’re excited to see what everyone builds.
If you would like a device, and haven’t yet preordered, consider doing so to reserve your device in our first production batch.
| ⭅ Previous (File browser) |