All Projects → RT-Thread-packages → qrcode

RT-Thread-packages / qrcode

Licence: MIT license
A simple library for generating QR codes in C.

Programming Languages

c
50402 projects - #5 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to qrcode

ips-qr-code
IPS QR Code Generator
Stars: ✭ 30 (+30.43%)
Mutual labels:  qrcode, qrcode-generator
nova-qrcode-field
A Laravel Nova field to generate QR Code
Stars: ✭ 28 (+21.74%)
Mutual labels:  qrcode, qrcode-generator
QRCodeGenLib4Pascal
Generates QR Codes from text strings and byte arrays.
Stars: ✭ 42 (+82.61%)
Mutual labels:  qrcode, qrcode-generator
qrrs
CLI QR code generator and reader written in rust
Stars: ✭ 29 (+26.09%)
Mutual labels:  qrcode, qrcode-generator
wifiqr
Create a QR code with your Wi-Fi login details
Stars: ✭ 207 (+800%)
Mutual labels:  qrcode, qrcode-generator
QRCode
A QRCode Generator in Swift
Stars: ✭ 67 (+191.3%)
Mutual labels:  qrcode, qrcode-generator
EasyQRCodeJS-NodeJS
EasyQRCodeJS-NodeJS is a NodeJS server side javascript QRCode image(PNG/JPEG/SVG/Base64 data url) generator. Support setting Dot style, Logo, Background image, Colorful, Title and more. Support binary(hex) data mode.
Stars: ✭ 73 (+217.39%)
Mutual labels:  qrcode, qrcode-generator
luaqrcode
Pure Lua qrcode library
Stars: ✭ 114 (+395.65%)
Mutual labels:  qrcode, qrcode-generator
otp-authenticator-webapp
A 'Google Authenticator' like Single Page Application
Stars: ✭ 69 (+200%)
Mutual labels:  qrcode, qrcode-generator
SkiaSharp.QrCode
Qr Code Generator with Skia. (no System.Drawing)
Stars: ✭ 72 (+213.04%)
Mutual labels:  qrcode, qrcode-generator
qrencoder
🔳 Make QR codes in R via libqrencode
Stars: ✭ 59 (+156.52%)
Mutual labels:  qrcode, qrcode-generator
art-qr
JavaScript library to generate beautiful QR code in browser 艺术二维码
Stars: ✭ 19 (-17.39%)
Mutual labels:  qrcode, qrcode-generator
QRCodeFX
Simple tool to generate/read QR Code and export it.
Stars: ✭ 31 (+34.78%)
Mutual labels:  qrcode, qrcode-generator
QRCodeGenerator
QRCode generator (c++/Qt #gui)
Stars: ✭ 57 (+147.83%)
Mutual labels:  qrcode, qrcode-generator
BGAQRCode-Android
QRCode 扫描二维码、扫描条形码、相册获取图片后识别、生成带 Logo 二维码、支持微博微信 QQ 二维码扫描样式
Stars: ✭ 7,714 (+33439.13%)
Mutual labels:  qrcode, qrcode-generator
QRCode-Telegram-bot
This is a simple bot. You generate QRcode with this bot
Stars: ✭ 12 (-47.83%)
Mutual labels:  qrcode, qrcode-generator
next-qrcode
React hooks for generating QRCode for your next React apps.
Stars: ✭ 87 (+278.26%)
Mutual labels:  qrcode, qrcode-generator
QRCode-Generator-PHP-Class
🚀 QRCode PHP class (library). QR Code Generator using vCard 4.0 and the Google Chart API
Stars: ✭ 91 (+295.65%)
Mutual labels:  qrcode, qrcode-generator
qikQR
minimal desktop app to create QR codes.
Stars: ✭ 20 (-13.04%)
Mutual labels:  qrcode, qrcode-generator
qrencode-el
QRCode encoder for Emacs in pure elisp
Stars: ✭ 18 (-21.74%)
Mutual labels:  qrcode, qrcode-generator

qrcode

中文页 | English | Offical

1 Introduction

qrcode is a software package used to generate a QR code from a string. This software package is a port of RT-Thread based on ricmoo/QRCode open source library.

1.1 Directory structure

Name Description
samples Examples directory, and some corresponding instructions
examples Arduino
inc Header file directory
src Source Code Directory

1.2 License

The qrcode software package extends the QRCode software package license agreement, please see the qrcode/LICENSE file.

1.3 Dependency

  • RT-Thread 3.0+

2. How to open qrcode

To use qrcodepackage, you need to select it in the package manager of RT-Thread. The specific path is as follows:

RT-Thread online packages
    tools packages --->
        [*] qrcode: A simple library for generating QR codes in C
            [*] Enable qrcode sample
  • Enable qrcode sample: Enable QR code sample;

Then let RT-Thread's package manager automatically update, or use the pkgs --update command to update the package to the BSP.

3. Use qrcode

Generate QR code

When using the qrcode software package, you must first define a structure to manage the QR code.

QRCode qrcode;

Then apply for dynamic memory according to the version number to save the generated QR code,

uint8_t *qrcodeBytes = (uint8_t *)rt_calloc(1, qrcode_getBufferSize(DEFAULT_QR_VERSION));

Finally, use the QR code generation function to generate the QR code.

qrcode_initText(&qrcode, qrcodeBytes, DEFAULT_QR_VERSION, ECC_LOW, "HELLO WORLD");

Print QR code

The generated two-dimensional code is dot matrix data, 8 dots constitute a Byte. The following codes can be used to display the QR code

for (uint8_t y = 0; y <qrcode.size; y++) {
    for (uint8_t x = 0; x <qrcode.size; x++) {
        if (qrcode_getModule(&qrcode, x, y)) {
            rt_kprintf("**");
        } else {
            rt_kprintf(" ");
        }
    }
    Serial.print("\n");
}

4. Demo

In this example, the QR code routine needs to be opened in the qrcode software package.

Enter the command qrcode RT-Thread in MSH, you can print out a QR code on the serial port assistant, scan it with the mobile phone code scanning software, you can see the result is RT-Thread.

qrcode

Other examples

https://github.com/RT-Thread/rt-thread/tree/master/bsp/stm32/stm32l475-atk-pandora/board/ports/lcd

https://github.com/onelife/RTT-QRCode

5. Matters needing attention

  • When generating a QR code, the higher the version used, the larger the dynamic memory that needs to be applied for.

6. Contact & Thanks

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].