aboutsummaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
new file mode 100644
index 0000000..d95e45d
--- /dev/null
+++ b/config.def.h
@@ -0,0 +1,15 @@
+/* pixels are scaled up by this factor */
+#define QRCODE_SCALE 2
+
+/* width of the border
+ * this is defined to at least 4, but works well with less */
+# define QRCODE_BORDER 1
+
+/* error correction level used for QR code
+ * possible values: QR_ECLEVEL_L (lowest, about 7% error can be corrected)
+ * QR_ECLEVEL_M (about 15%)
+ * QR_ECLEVEL_Q (about 25%)
+ * QR_ECLEVEL_H (highest, about 30%)
+ * image size raises with higher levels */
+#define QRCODE_LEVEL QR_ECLEVEL_L
+