Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (28 sloc) 814 Bytes
#ifndef __AVR__
#define PROGMEM
#define memcpy_P memcpy
#define __LPM(x) *x
#define pgm_read_word(x) *x
#include <avr/pgmspace.h>
// malloc-ed by initframe, free manually
extern unsigned char *strinbuf; // string iput buffer
extern unsigned char *qrframe;
// setup the base frame structure - can be reused
void initframe(void);
// free the basic frame malloced structures
void freeframe(void);
// these resturn maximum string size to send in
unsigned initeccsize(unsigned char ecc, unsigned size);
unsigned initecc(unsigned char level,unsigned char version);
#else // precalc-ed arrays
extern unsigned char strinbuf[];
extern unsigned char qrframe[];
extern unsigned char WD, WDB;
#include "qrbits.h"
// strinbuf in, qrframe out
void qrencode(void);
Jump to Line
Something went wrong with that request. Please try again.