Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
imgs
.gitignore
LICENSE
README.md
espruino_gpio_pins.py

README.md

#mcpi with Espruino

This project will serve as a holding place for resources related to interacting between the Espruino and Minecraft using mcpi. Unless otherwise noted all of these projects and sample codes were created and tested using RaspberryJuice on Canarymod, with the PC Minecraft game. Though it should theoretically work on the Raspberry Pi edition of Minecraft as well.


#Getting Started You need a few things in place to begin.

  • Canarymod server with RaspberryJuice plugin running
  • Minecraft client running, connected to canarymod server.
  • Python installed on your machine + mcpi python module (included with RaspberryJuice project)
  • Espruino Web IDE
  • Espruino plugged in to PC

#Basic concept RaspberryJuice exposes an easy to use python API to manipulate things inside of the minecraft world. Espruino exsposes a serial device that accepts and executes JavaScript commands. You can create python scripts that run commands on the Espruino, and then read the results, then use those results to manipulate things inside of minecraft.

#Example 1 - Redstone Button In this example we will hook up a physical button and have it turn on/off a redstone circuit in Minecraft. We will continually poll the Espruino to find out if the button is being pressed. If it is we'll spawn a redstone torch, it is isn't we'll spawn air.

#Example 2 - Redstone Switch LED In this example we will hook up a redstone switch inside of Minecraft to control a physical LED on the espruino board.

#Example 3 - Using the McPin object This example is a re-write of examples 1 and 2 using the McPin object

#Example 4 - Musical Notes In this example we will use a hardware speaker to play musical notes from a virtual piano.

#Example 5 - Virtual Pico Create an Espruino Pico inside the game that controls a hardware Espruino Pico.

You can’t perform that action at this time.