Skip to content

bbbbbr/gameboy_qrcode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Origin

This is a fork of msx_qrcode: https://github.com/MartinezTorres/msx_qrcode/tree/master

Which in turn is a fork of Nayuki's QR Code: https://github.com/nayuki/QR-Code-generator

Optimization

If this (generic) version is too slow there is another which is faster. I've made some optimizations to it for a 2-3x speedup (generating and drawing), though it takes up more space (several banks of look-up tables). It's not meant for general purpose integration like this version, nevertheless it can be extracted from the following project if desired: https://github.com/bbbbbr/gameboy_qr_paint

A runtime QR Code generator for the Game Boy that can build with GBDK-2020

  • The QR Code functions are configured to be ROM banked (~4800 bytes)
  • The RAM usage appears to be modest
  • The QR Code size must be selected at compile time. See src/qr/qrcodegen.h
  • This demo does a very slow APA mode render of the QR Code at 4x. You can implement your own more optimized rendering. See src/qr_wrapper.c

Game Boy QR Code Example

See: https://github.com/gbdk-2020/gbdk-2020

TODO: There are a bunch of dead code warnings in the qr code generation that could be removed.

About

Dynamically generate and show arbitrary QR codes at Runtime(!) on the Game Boy, built with GBDK-2020 (not pre-rendered ones)

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • C 91.3%
  • Makefile 8.7%