Skip to content

embedibs/connect4-mb2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

connect4-mb2

Connect 4 running on a tft display connected to the BBC Micro:Bit v2 through a Chip-8 interpreter.

gc9a01 TFT With the BBC Micro:Bit V2

MB2 Edge TFT
p0_09 P09 RST
p0_10 P08 DC
p0_12 P01 CS
p0_17 P13 SCL
p0_13 P15 SDA

Dependencies

rustup target add thumbv7em-none-eabihf
rustup component add llvm-tools
cargo install cargo-binutils
cargo install --locked probe-rs-tools

Build and Run

cargo embed --release

Notes

A while ago I made a Chip-8 interpreter and I wanted to try making that library no-std compatible. That's where this project came from. I also was messing around with some funny internal display stuff for the interpreter. This project was pretty simple, mostly dropping in code from other mb2 projects and reading up on how to use the tft-display.

I was messing around with auto trait implementations and a trait to unpack the display in the interpreter, but I didn't end up using them in this project. It is useful for things like WebGPU however. I ended up here, just iterating over the values of the display as provided by the internal BitArray to draw rectangles sized and translated to roughly center the image and large enough to play.

Video

CONNECT4SMALL.mp4

Acknowledgements

Bart Massey mb2-tft-display skeleton code

License

This project is licensed under the MIT License.

About

Connect 4 running on a tft display with a Chip-8 interpreter on the BBC Micro:Bit V2.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages