JoyFrog Micro:bit Controller - 02 Coding with MakeCode

 Go back to Product Documents Navigation 

 Go back to Joyfrog Documents Navigation 

 

../../_images/mcbanner.png

../../_images/jf1.png

Load JoyFrog Extension: kittenbot/pxt-joyfrog

 

Blocks for JoyFrog:

../../_images/jf2.png

 

Using the Analog Stick:

Showing the value of the stick’s position.

../../_images/jf3.png

Sample Code Link

 

Using the buttons:

Each button can be individually triggered.

../../_images/jf4.png

Sample Code Link

 

Using the IO pins.

The Edge Connectors on JoyFrog can be used like a piano.

Try Connecting different conductive objects to create your unique piano!

../../_images/joyfrog18.png

Sample Code

../../_images/piano1.png

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

../../_images/joyfrog_3.5.png

 

Transmitting an InfraRed signal:

Transmitting an InfraRed signal on button press.

The infrared signals are in a hexadecimal format.

../../_images/jf5.png

Sample Code Link

 

Receiving an InfraRed signal:

Displaying the received signal.

The infrared signals are in a hexadecimal format.

../../_images/jf6.png

Sample Code Link

 

Analog Read:

Reading analog values.

../../_images/joyfrogPoten.png

../../_images/jf7.png

Sample Code Link

 

Analog(PWM) Write:

Writing analog(PWM) values.

../../_images/jf8.png

../../_images/joyfrogLED.png

Sample Code Link

 

Digital Read:

Reading digital values.

../../_images/joyfrogButton.png

../../_images/jf9.png

Sample Code Link

 

Digital Write:

Writing digital values.

../../_images/jf10.png

Sample Code Link

 

 

If you have any question, please feel free to contact us at Discord, we will always be there to help.

 

KittenBot Team

 

 Go back to Product Documents Navigation 

 Go back to Joyfrog Documents Navigation 

Leave a comment

Please note, comments need to be approved before they are published.