Skip to content

How can I use this sketch? #2

Open

Description

@daparra

Hi, I hope to be in the right side, I like to do an QR application for arduino mega with lcd 3,2 touchscreen, I would like insert text from serial input and convert it in QR code, I'm looking for an example or manual but I don't understantd, there are many files and libraries and I'm very confussed, please can you help me with an aplication for guide? Thanks you

Activity

  1. tz1 commented on Jul 1, 2015

    @tz1
    Owner

    What is your hardware setup? There are multiple Arduinos and displays.
    The library will return a bitmap from ASCII texts. You can then go through the bitmap and display white or black pixels.

  2. daparra commented on Jul 1, 2015

    @daparra
    Author

    Hi, thanks for your answer. I have an arduino mega 2560 REV3, with ATmega2560-16AU and TFT LCD display 320 X 480 model HX8357B. I have the libraries for communication and driver the display.

  3. tz1 commented on Jul 1, 2015

    @tz1
    Owner

    Adjust the makefile for the Avr/Arduino for the size of QR code you want since you have to build some tables using the host.

    Look at my "lcd.c" for an example - it isn't a sketch per se, but might works as lcd.ino.

    #include "qrencode.h"
    ...
    strcpy((char *)strinbuf, "Your String Here");
    qrencode();
    ...
    //This is the loop that assembles bits and writes them to my LCD
    t = 0;
    b = 0;
    for ( k = 0; k < 84 ; k++) {
    for ( i = 0; i < 48 ; i++) {
    b >>= 1;
    if( i < WD && k < WD )
    if( QRBIT(WD-i-1,k) )
    b |= 0x80;
    if( ++t > 7 ) {
    t = 0;
    LcdWrite(1, b);
    b = 0;
    }
    }
    }

  4. itsfever commented on Jul 8, 2015

    @itsfever

    Hi, Thank you for your awesome library. I have Arduino UNO, adafuit 1.44 display and usb barcode scanner module with usb shield. How can I use your Qrduino? Could you give me some example or guide to use? I can find the way to use it on sketch. Thanks for your help.

  5. tz1 commented on Jul 8, 2015

    @tz1
    Owner

    Create a folder called lcd, put all the files into that directory, rename lcd.c into lcd.ino and change main() to setup() and add a loop(). You might need to change some of the settings and remove some files (intended for larger systems). But this should get things started.

    A fork for a thermal printer (also Adafruit) is at https://github.com/grintor/QRprint

  6. daparra commented on Jul 8, 2015

    @daparra
    Author

    Thanks you Tom, I'm trying, it´s a new concept for me :) Just like tell you

  7. itsfever commented on Jul 10, 2015

    @itsfever

    Thank you for your help! I'll try it!

  8. tz1 commented on Jul 27, 2015

    @tz1
    Owner

    I have only used GCC, not clang. You may only have the 32 bit libraries and are trying to compile for 64 bits or vice versa

  9. daparra commented on Jul 29, 2015

    @daparra
    Author

    Hi, I've trying but really I can't do to run it, the last time I uninstall all data and arduino ide and reinstall it, I make a folder called LCD and rename the lcd.c to lcd.ino, and trying compiler but show me the next message:

    Arduino:1.6.5 (Windows 7), Placa:"Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

    Opciones de compilación cambiadas, reconstruyendo todo

    qrencode.c:19: error: variable 'framebase' must be const in order to be put into read-only section by means of 'attribute((progmem))'
    extern unsigned char framebase[] PROGMEM;
    ^
    qrencode.c:20: error: variable 'framask' must be const in order to be put into read-only section by means of 'attribute((progmem))'
    extern unsigned char framask[] PROGMEM;
    ^
    variable 'framebase' must be const in order to be put into read-only section by means of 'attribute((progmem))'

    This report would have more information with
    "Show verbose output during compilation"
    activala desde Archivo > Preferencias
    I don't understand. What can I do? Excuse me for my english... :S Thank you

  10. daparra commented on Aug 5, 2015

    @daparra
    Author

    I can compiller it, but now I can´t see nothing in the display, only show me a big black back end. I installed the library UTFT. The display is HX8357B size 320x480.

    Thanks you Tom

  11. dirtydevil commented on Feb 25, 2016

    @dirtydevil

    Thanks Thomas for the qr code generation using arduino.

    I have been following the tips you gave in this issue thread. On compiling using Arduino IDE, I am getting an error "size of array 'f' is too large" in imageproc/finder.c: 4.15.

    Can you please help me in solving this issue?

    Thanks.

    Kunal Gupta

  12. tz1 commented on Feb 25, 2016

    @tz1
    Owner

    I don't know specifically but I suspect the IDE is set to the wrong chip or something else so that the array can't fit. Check your compile settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions