Skip to content

feat(ism330dl): Add Tetris example with accelerometer tilt controls. #422

@MatteoCnda1

Description

@MatteoCnda1

Description

Summary

Add a playable Tetris game example using the ISM330DL accelerometer
for tilt-based controls on the STeaMi board.

Controls

  • Tilt left/right → move piece
  • Shake → rotate piece
  • Button A → hard drop
  • Button B → rotate piece

Features

  • 7 classic tetrominoes with greyscale colors
  • Ghost piece preview
  • Score, level, lines counter
  • Next piece preview
  • Speed increases with level
  • Start screen and game over screen

Hardware

  • Display: SSD1327 128x128 OLED
  • Sensor: ISM330DL accelerometer
  • Buttons: A, B

Driver / Component

ism330dl

Proposed API

Alternatives considered

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions