Skip to content

Latest commit

 

History

History
48 lines (38 loc) · 1.74 KB

README.md

File metadata and controls

48 lines (38 loc) · 1.74 KB

One Day Workshop for Raspberry Pi GPIO Tutorial

Demo for GPIO Game Console Workshop

Intro

In this workshop, we will introudce the Raspberry Pi GPIO, including:

  1. Basic of electronic circuit
  2. How to write the code for the hardware specification
  3. Design a game console with simple hardware component

The slide is available on 用Raspberry Pi學GPIO - 自己做遊戲機

Environment

Raspberry Pi 4B/2G/Raspberry Pi 3B+ + SanDisk 32G microSD + Raspberry Pi GPIO Game Console Kit + 2021-01-11-raspios-buster-armhf-full.img

Prerequisite

Install required package and Python module

$ sudo apt-get update
$ sudo apt-get install -y x11vnc python3-dev python3-pip libsdl1.2-dev 
$ sudo pip3 install spidev evdev

Emulator

  1. Download pre-built emultation
$ cd ~
$ wget http://bit.ly/2OnUMwh -O ~/advmame
  1. Create RC file
$ cd ~
$ chmod 755 advmame
$ ./advmame
  1. Download Super Mario ROM
$ cd ~
$ wget http://bit.ly/2K1dhUb -O ~/.advance/rom/suprmrio.zip

Buy Raspberry Pi and GPIO Starter Kit