+ Reply to Thread
Results 1 to 2 of 2

Thread: QR Code encoder

  1. #1
    Join Date
    Aug 2006

    Default QR Code encoder

    Does anyone knows how to create a QRCode encoder (at least for QRCode Level 3), or how to translate the Arduino libraries to PBP from the following link?

    It should be used with a PIC18F family.
    The Arduino library is writed in C and it use pointers and array's pointers... and I'm lost.

    Any clue?

    Thank you.

  2. #2
    Join Date
    Sep 2009

    Default Re: QR Code encoder

    It doesn't look too easy. But it could be done.
    Arrays and pointers are used almost same way as in PBP.
    But I would suggest to store table data in ASM so it would use much less space.
    4 rows with 40 bytes, are same as one array with 160 bytes(word) long. Instead 2 pointers like here numBlocks = NUM_ERROR_CORRECTION_BLOCKS[ecc][version - 1];
    You can use something similar to this:
    ecc=0 to 3
    version=0 to 39
    But you may drop unused 3 rows if you fix Error correction level to one level. So you get only one array with 40 word in it.
    Also if you chose only numbers or text, you can remove more unnecessary stuff...

Similar Threads

  1. Absolute encoder with Petherick code
    By stojakovicv in forum mel PIC BASIC
    Replies: 3
    Last Post: - 1st April 2016, 16:36
  2. Keeloq Encoder example code
    By Ioannis in forum General
    Replies: 7
    Last Post: - 11th November 2015, 08:58
  3. Convert Rotary Encoder Code from 16F628A to 16F1825
    By RossWaddell in forum mel PIC BASIC Pro
    Replies: 27
    Last Post: - 7th June 2012, 04:34
  4. encoder wowes
    By wallaby in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 6th December 2005, 21:56
  5. Quadrature Encoder
    By Plasmajocky in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th June 2004, 17:35

Members who have read this thread : 16

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts