We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With an explicit qr_type of 9, it's possible to make a large pattern
qr_type
>>> import adafruit_miniqr >>> _q = adafruit_miniqr.QRCode(qr_type = 9) >>> _q.add_data(b"x" * 230) >>> _q.make() >>> _q.matrix.width 53
But attempting to do the same with automatic sizing gives an error:
>>> import adafruit_miniqr >>> _q = adafruit_miniqr.QRCode() >>> _q.add_data(b"x" * 230) >>> _q.make() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/jamesb/Adafruit_CircuitPython_miniQR/adafruit_miniqr.py", line 113, in make self.module_count = self.type * 4 + 17 ~~~~~~~~~~^~~ TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'
From inspection, it looks like the code only attempts sizes 1-5.
The text was updated successfully, but these errors were encountered:
Try all qr_types when automatically sizing
64af6e5
Add test coverage adafruit#27
Resolved by #28
Sorry, something went wrong.
No branches or pull requests
With an explicit
qr_type
of 9, it's possible to make a large patternBut attempting to do the same with automatic sizing gives an error:
From inspection, it looks like the code only attempts sizes 1-5.
The text was updated successfully, but these errors were encountered: