Skip to content

Nothing-Developer-Programme/GlyphMatrix-Example-Project

Repository files navigation

Glyph Matrix Example Project

About the Demo

This example project contains multiple toy demos:

  • basic demo which shows the application icon
    • Touch-down (press down) to increment and display a counter
    • Touch-up (release) to stop incrementing the counter
  • glyphbutton demo which shows a randomly populated grid
    • Long-press the Glyph Button on the device to generate a new random grid
  • animation demo which shows an indefinite animation until the toy is deactivated

After going through the Setup stage in this document the demo project can be run on the device.

Tip: Short-press the Glyph Button to navigate between the toys.

The demo project already contains the necessary libraries (GlyphMatrix SDK) and source structure as an example. However, if you want to install libraries for your own application, please reference the SDK documentation.

This demo is written in Kotlin, it also utilize a useful Kotlin wrapper GlyphMatrixService.kt,wrap around the original SDK that you can use in your own project.

basic_demo.mp4

Requirements

Android Studio, Kotlin, compatible device with Glyph Matrix

Setup

1. Prepare your Nothing device and connect it to the computer for development

2. Clone this project or download this repository as a ZIP and uncompress it to your local directory.

3. Open a new windows in Android studio and hit file on the menu bar, select open.

Open Project

4. Select the directory where you have cloned the repository or the unzipped folder and click Open

Select Project

5. Once the Gradle files have been synced and your phone is connected properly, you should see your device name shown at the top and a play button. Click the play button to install this example project.

Run Project

Running a Toy

When the example project is installed on the device, toys within the project needs to be acivated before it can be used.

1. Open the Glyph Interface from your device settigns.

2. Tap on the first button on the right menu to move toys to the enabled state.

Disabled Toys

3. Use the handle bars to drag a toy from Disabled to Active state.

Moving Toys

4. The toys should now be in the Active state, and can be viewed on the Glyph Matrix using Glyph Touch.

Active Toys

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages