Skip to content
Matthias Görges edited this page Jul 14, 2016 · 3 revisions

The uiform dmencode element creates a data matrix 2D barcode from a string.

Parameter Default Description
text #f String to be encoded

Example

Example 1: A complete page with data matrix encoding and decoding, from LNhealth's apps/WidgetDemo

(ex_barcodes
  "Barcodes"
  ("Prev" ex_camera)
  ("Next" ex_sensors)
  (spacer)
  (label text "Data Matrix Barcode:")
  (spacer)
  (dmencode text "http://lambdanative.org")
  (spacer)
  (label text "Touch button to take photo and\nscan it for DM barcode:" wrap #t)
  (spacer)
  (dmdecode id dmtest default "<no code>")
  (spacer)
)
Clone this wiki locally