MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / qrcode_getModule

Function qrcode_getModule

Libraries/QRCode/src/qrcode.c:850–857  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

848}
849
850bool qrcode_getModule(QRCode *qrcode, uint8_t x, uint8_t y) {
851 if (x >= qrcode->size || y >= qrcode->size) {
852 return false;
853 }
854
855 uint32_t offset = y * qrcode->size + x;
856 return (qrcode->modules[offset >> 3] & (1 << (7 - (offset & 0x07)))) != 0;
857}

Callers 2

onShowMethod · 0.85
checkFunction · 0.85

Calls

no outgoing calls

Tested by 1

checkFunction · 0.68