arduino通过热敏打印机打印二维码

问题描述 投票:0回答:1

我正在使用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)进行打印...

arduino
1个回答
0
投票

static const uint8_t PROGMEM adaqrcode_data[]就是它所说的static const,并存储在程序存储器中。

© www.soinside.com 2019 - 2024. All rights reserved.