From 6cdd0a4e737112bb8b19523781b6e42a75d2f76e Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Tue, 21 Mar 2023 17:10:53 +0000 Subject: [PATCH] QRGen: Correct details for each Badger. --- badger_os/examples/qrgen.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/badger_os/examples/qrgen.py b/badger_os/examples/qrgen.py index e0f3209..0914819 100644 --- a/badger_os/examples/qrgen.py +++ b/badger_os/examples/qrgen.py @@ -15,16 +15,28 @@ text = open("/qrcodes/qrcode.txt", "r") except OSError: text = open("/qrcodes/qrcode.txt", "w") - text.write("""https://pimoroni.com/badger2040 + if badger2040.is_wireless(): + text.write("""https://pimoroni.com/badger2040w Badger 2040 W * 296x128 1-bit e-ink -* 2.4GHz wireless +* 2.4GHz wireless & RTC * five user buttons * user LED * 2MB QSPI flash Scan this code to learn more about Badger 2040 W. +""") + else: + text.write("""https://pimoroni.com/badger2040 +Badger 2040 +* 296x128 1-bit e-ink +* five user buttons +* user LED +* 2MB QSPI flash + +Scan this code to learn +more about Badger 2040. """) text.flush() text.seek(0)