我正在使用qrcode库https://github.com/ricmoo/QRCode
用于在运行时生成QR代码
但是我无法使用Adafruit热敏打印机进行打印
使用方法printer.printBitmap(x,y,qrdata)
现在我的问题是如何将从qrcode库生成的qrcode转换为静态常量uint8_t PROGMEM adaqrcode_data [] = {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,.....]]
我正在使用qrcode库https://github.com/ricmoo/QRCode在运行时生成QR代码,但我无法使用Adafruit Thermal Printer使用方法printer.printBitmap(x,y,qrdata)进行打印...
static const uint8_t PROGMEM adaqrcode_data[]
就是它所说的static const
,并存储在程序存储器中。