All Projects → enzoh → motoko-qr

enzoh / motoko-qr

Licence: Apache-2.0 license
The Motoko QR Package

Programming Languages

Modelica
51 projects
shell
77523 projects

The QR Package

Build Status

This package implements a QR-code generator for the Motoko programming language.

Prerequisites

Usage

Generate a QR-code.

public func encode(
  version : { #Version : Nat },
  level : { #L; #M; #Q; #H },
  mode : { #Alphanumeric; #EightBit; #Kanji; #Numeric },
  text : Text
) : ?{ #Matrix : [[Bool]] }

Demo

Start a local internet computer.

dfx start

Execute the following commands in another tab.

dfx canister create --all
dfx build
dfx canister install --all
dfx canister call demo encode '(variant{Version = 1}, variant{Q}, variant{Alphanumeric}, "HELLO WORLD")' | sed 's/#/█/g'
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].