Shellminator V3.0.1
Simple Terminal
Loading...
Searching...
No Matches
ShellminatorQR Class Reference

QR-Code generator. More...

#include <Shellminator-QR-Code-Module.hpp>

Collaboration diagram for ShellminatorQR:

Public Member Functions

void generate (Stream *channel_p, const char *text, enum qrcodegen_Ecc ecc=qrcodegen_Ecc_MEDIUM)
 Generates a QR-Code. More...
 

Detailed Description

QR-Code generator.

With this class, you can generate a QR code directly to the command line. Big thanks to Nayuki for this awesome library. The C implementation from it is required to make this object work.

Note
This object requires a relatively large amount of dynamic memory. Sadly AVR boards are not supported due to the lack of memory.

Definition at line 73 of file Shellminator-QR-Code-Module.hpp.

Member Function Documentation

◆ generate()

void ShellminatorQR::generate ( Stream *  channel_p,
const char *  text,
enum qrcodegen_Ecc  ecc = qrcodegen_Ecc_MEDIUM 
)

Generates a QR-Code.

Generates a QR-Code to the specified channel.

Parameters
channel_pPointer to the output Stream object.
textQR-Code will be generated from this text. It has to be NULL terminated.
eccError correction level. Possible options:
  1. qrcodegen_Ecc_LOW - tolerate ~ 7% error
  2. qrcodegen_Ecc_MEDIUM - tolerate ~ 15% error
  3. qrcodegen_Ecc_QUARTILE - tolerate ~ 25% error
  4. qrcodegen_Ecc_HIGH - tolerate ~ 30% error

Definition at line 178 of file Shellminator-QR-Code-Module.cpp.