~/talk

Create interactive games using MicroPython and electronics

Talkat PyCon US 2023 · 2023-04-19..04-27· [creative-coding]
slides:none on file

Shows how to build interactive games on a BBC micro:bit using MicroPython, covering hardware inputs (push buttons, accelerometer) and the LED matrix for output. It walks through three concrete game examples—Chase the Dot, Genius, and Car Crash—explaining how each game operates, presenting the source code, and demonstrating them.

AI-written summary · about

  1. 0:00Intro
  2. 1:08DEVELOPMENT BOARDS I'VE USED
  3. 1:59WHAT I WILL USE FOR THIS PRESENTATION
  4. 2:52BBC MICRO:BIT PROJECT OVERVIEW
  5. 3:36BBC MICRO:BIT V2 SPECIFICATIONS
  6. 5:22ANALOG AND DIGITAL SIGNALS
  7. 6:32GAMEPAD FOR MICRO:BIT SPECIFICATIONS
  8. 7:49GAMEPAD PINOUT
  9. 8:31DIGITAL AND ANALOG INPUT/OUTPUT
  10. 10:15MICRO:BIT PYTHON TEXT EDITOR
  11. 11:59DISPLAY EXAMPLE
  12. 12:53BUTTON EXAMPLE
  13. 13:32BUZZER EXAMPLE
  14. 14:08ACCELEROMETER EXAMPLE
  15. 14:43GPIO EXAMPLE
  16. 15:25JOYSTICK EXAMPLE
  17. 17:56GENIUS: START GAME
  18. 18:21GENIUS: GENERATE THE SEQUENCE
  19. 19:00GENIUS: READ THE USER INPUT
  20. 19:37GENIUS: VALIDATE THE USER INPUT
  21. 20:02GENIUS: END GAME
  22. 20:18#1 GENIUS: RUN THE GAME
  23. 22:09CHASE THE DOT: GENERATE THE DOT
  24. 22:31CHASE THE DOT: READ THE USER INPUT
  25. 22:43CHASE THE DOT: MOVE THE PLAYER
  26. 23:00CHASE THE DOT: CHECK COLLISION
  27. 25:41CAR CRASH: PLAYER AND OBSTACLE
  28. 26:05CAR CRASH: BORDER
  29. 26:54CAR CRASH: SCREEN BUFFER
  30. 28:16CAR CRASH: RUN THE GAME
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.