KinomaJS Blocks Examples

These examples demonstrate code generated with KinomaJS Blocks running on Kinoma hardware with off-the-shelf sensors. If you build a project with KinomaJS Blocks, and want to share it with the wider developer community, let us know!

UI Examples


Screen Random Color Button

Create a new screen, add a button element to the screen, and change the screen color property on button press.

View Example - Kinoma Create


Dog Bark

Push an onscreen button to make the dog bark using a sound block.

View Example - Kinoma Create


Clock

Use a clock to display the time in seconds since the app began.

View Example - Kinoma Create

Hardware Examples


Blink an LED

Make a simple blinking LED.

View Example - Kinoma Create


Read a Potentiometer

Read an analog sensor, and change an onScreen element.

View Example - Kinoma Create


Button to Play Sound

Play a sound by touching a physical button.

View Example - Kinoma Create

Games


Reaction Game #1

This simple game puts your reaction time to the test. Go between multiple screens, as well as pass data from one screen to another.

View Example - Kinoma Create


Reaction Game #2

This game further extends the principle of Reaction Game #1, by adding a screen that has actively updating animations.

View Example - Kinoma Create

Advanced Examples


Send Screen Color

This simple example shows how to use the advanced blocks to send and receive remote function calls from device to device. Open two instances the example code, and change the "remote ip address" to the address of the other device. Then after running both, the randomly changing screen colors should sync up with each other.

View Example - Kinoma Create

Note: If you only have one device, you can still send calls between your device and a simulator (see: Starting a Hardware Simulator in Kinoma Studio).