#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
#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.