-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QR to Bitmap #3
Comments
some days ago,i had try it. |
what is variable u8g? |
where is x0 and y0 defined? |
x0,and y0 is the beginning coordinates of QRcode picture...
|
It depends on the LCD or OLED display you use, but @yifanshu02 code looks good. I usually use the Adafruit Library, but it is similar. I will be posting a more in depth example soon. This library is what I used in my Firefly Hardware Wallet. Once I post the source code for that, I'll link to it from the README as an example. |
One other note on using the 128x64 monochrome OLED; "on" modules in the QR code are black and "off" modules are white, so you will need to take this into account when using the display (since "on" pixels are white and "off" pixels are black). |
Has anyone got this to display on a OLED which is 128 x 64. I am trying to do the something without any luck? |
I used it with a different lcd and it did work fine for me. Can you show what you already have done? |
` HI_GFX_Clear(1);
|
Can you try:
Rather than initializing it to |
That won't do anything. I am just clearing the memory because qrcode is initialised on the stack. |
Yes, a single module is 1 pixel. I don't think that is clearing the stack correctly. You shouldn't need to do either But here is a working use of it: And here is the initialization: The only other thing I can think of is that the |
Try just to set the collor only to 1 and omit the set to 0.
Op wo 13 jun. 2018 22:27 schreef desmond-illumadrive <
notifications@github.com>:
… Thanks for the help, I will dig around more.
Cheers
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AEhQT9ZzXhfh_N4njWFl0fV2MgxsTT5Rks5t8XWpgaJpZM4O_acu>
.
|
The pixel draw works because I used it for many other things. It seems that the buffer is encoded incorrectly. I will start digging through the library. Thanks for the help. |
The function grid is used to determine is a given module is a function module, which is not subject to masking. Can you try running the test cases? You should be able to modify them to use your "12345", which will compare this library against the known-correct CPP library. |
Yup, I am experiencing the same. Printing point by point make it slow printing (it takes around 3-4 second to print the QR code of version 8, while version 3 will be printed within a sec). |
I'm trying to create a BMP of the QR code to display on a 128x64 OLED screen like you mentioned in the readme.
Is there an example for this?
I have tried using your for loop to generate the bits, but that did not work.
The text was updated successfully, but these errors were encountered: