823 B
823 B
CUTOS Receipt Printer Demo
End-to-end LWA for @cutos/device-receipt-printer and the MS-MA90 Provider.
The Demo covers USB/serial connection, device information, styled text, QR code, paper feed, back feed, cutting, status, and Device events. Text and QR printing explicitly call feed({ dots: 240 }) after printing so the result advances to the paper outlet. The standalone Feed action defaults to 240 dots, and Back feed defaults to 40 dots. Development uses CUTOS Mock through .env.development; deployed builds use CUTOS Runtime and the declared Provider dependency.
The card grid is responsive: portrait displays use two columns, landscape displays use four columns, and narrow displays use one column.
npm install
npx cutos lwa build
npx cutos lwa upload
npx cutos lwa publish --device <device-id>