课程: Raspberry Pi Weekly

免费学习该课程!

今天就开通帐号,24,600 门业界名师课程任您挑!

Minecraft and GPIO

Minecraft and GPIO

- [mark] Minecraft is a popular game, and comes bundled with the Raspbian operating system. But did you know Minecraft for Raspberry Pi has a programming interface? And with that interface, you can use Python to interact with a Minecraft world. Better yet, Python can also be used to control the Raspberry Pi GPIO. In essence, Minecraft can be used as a limited user interface to interact with the internet of things. This week, I'm going to show you how to use the Minecraft programming interface to add a teleport tool using buttons and lights controlled by the Raspberry Pi. Hi, I'm Mark Niemann-Ross, and welcome to this week's edition of Raspberry Pi weekly. Every week we explore the Raspberry Pi, and share useful tips. I've already connected a push button and RGB LED to the Raspberry Pi GPIO. In the example files, I've included instructions for how to make these connections. I've also written a program to implement a…

内容