> For the complete documentation index, see [llms.txt](https://sharinghub-eng.kittenbot.hk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sharinghub-eng.kittenbot.hk/extension-boards/joyfrog/joyfrogkb.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
