Open cvonk opened 2 years ago
I accepted your suggestion and changed the unit of the width parameter from bytes to pixels.
However, width only supports multiples of 8. I can get rid of this limitation with a little code addition, but I decided it wasn't practical.
//ssd1306_bitmaps(&dev, xpos, ypos, batman, 4, 12, false);
ssd1306_bitmaps(&dev, xpos, ypos, batman, 32, 13, false);
Thank you for your suggestion.
thanks
On Tue, Apr 26, 2022 at 9:58 PM nopnop2002 @.***> wrote:
I accepted your suggestion and changed the unit of the width parameter from bytes to pixels.
However, width only supports multiples of 8.
//ssd1306_bitmaps(&dev, xpos, ypos, batman, 4, 12, false); ssd1306_bitmaps(&dev, xpos, ypos, batman, 32, 13, false);
— Reply to this email directly, view it on GitHub https://github.com/nopnop2002/esp-idf-ssd1306/issues/19#issuecomment-1110541248, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACKIDGWQSIXVGJXPSAXITFTVHDCOFANCNFSM5UNVVYYA . You are receiving this because you authored the thread.Message ID: @.***>
-- /c
I found that ssd1306_bitmaps can't be drawn too quickly. Please try this.
https://github.com/nopnop2002/esp-idf-ssd1306/tree/master/AnimationDemo https://github.com/nopnop2002/esp-idf-ssd1306/tree/master/MeterDemo
Will look, but I couldn't use the bitmaps, because they clear the screen. I resorted back to displaying a 16x8 bitmap using two character bitmaps.
Cheers, /c
On Sun, May 1, 2022 at 6:11 AM nopnop2002 @.***> wrote:
I found that ssd1306_bitmaps can't be drawn too quickly. Please try this.
https://github.com/nopnop2002/esp-idf-ssd1306/tree/master/AnimationDemo https://github.com/nopnop2002/esp-idf-ssd1306/tree/master/MeterDemo
— Reply to this email directly, view it on GitHub https://github.com/nopnop2002/esp-idf-ssd1306/issues/19#issuecomment-1114233661, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACKIDGQXJ3VLBISC7YNRNRDVHZ7IHANCNFSM5UNVVYYA . You are receiving this because you authored the thread.Message ID: @.***>
-- /c
Noticed you run SPI_CLK at 1 MHz. Surprised you need short wires. Remember seeing it should go up to 8 or 10 MHz.
I tried it at a frequency of 2M but it didn't draw correctly in my module.
Thanks for the bitmaps function. I am using it!
Just ran into something that could use some attention.
In the new function
The
xpos
,ypos
andheight
parameters are in pixels. I suggest either changing the parameterwidth
to mean width in pixels, or renaming it so that it is clear that it is pixels/8.Also, the
ImageDemo
example callsIt passes the height as
12
, but the image in the arraybatman[]
is 13 pixels heigh./Coert