# JoyFrog Coding with Kittenblock

### Kittenblock Coding Tutorial

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/kbbanner.png)

Connect JoyFrog to a computer with a USB cable.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/joyfrogcon.png)

Select JoyFrog from the Hardware selection menu.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/jfadd.png)

The programming blocks for JoyFrog will be added.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/jfsuccess.png)

Click the Exclamation Mark Icon and select your device.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/jf11.png)

A melody will sound when JoyFrog is connected to Kittenblock.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/jf12.png)

#### Using the buttons and the joystick.

The buttons and the joystick input is mapped to individual keyboard keys.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/jf_2p3.png)

The edge connectors are mapped to the number keys.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/jf13.png)

#### Making a Piano:

We can make a basic piano using the edge connectors.

Try connecting different conductive objects to create your own unique keyboard!

```
The notes correspond to numbers 1~8.
```

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/jf14.png)

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/piano1.png)

You can connect earphones or speakers to the 3.5mm audio jack.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/joyfrog_3.5.png)

#### InfraRed Trasmission and Receive:

Transmitting and receiving an infrared signal.

```
The infrared signals are in a hexadecimal format.
```

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/jf15.png)

#### Digital read and write:

Reading and writing digital values.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/joyfrogButton.png)

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/jf16.png)

#### Analog read and write:

Reading and writing analog(PWM) values.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/joyfrogServo.png)

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/jf17.png)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sharinghub-eng.kittenbot.hk/extension-boards/joyfrog/joyfrogkb.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
