-
Notifications
You must be signed in to change notification settings - Fork 318
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
SH1106 or SSD1306 on SW SPI with Atmel Studio 7 working slowly #494
Comments
Software emulated SPI is always a little bit slow. Please note that I do not support u8glib any more and also note, that u8glib was designed for Arduino. So in general you need to implement your own HAL for u8g (or u8g2) U8g2 has some more hints on this topic: https://github.com/olikraus/u8g2/wiki/Porting-to-new-MCU-platform |
Hello, with old library u8g - correctly viewed now im try - not correctly viewed and if try view is correct, but data not loaded from PROGMEM thank you for your help with this last problem :-) |
Yes, DrawBitmapP is not supported any more. I wanted users to use XBM only. |
Hello, U8g2 showing byte mirrorly, i.e. i have original bitmap, now im try convert with Gimp |
Hello, thank you very much for your help,. now working fine :-) |
:) |
Hello,
im use Atmel Studio 7 and u8g library 1.18.1 (or older version - the same effect) with atmega32 and 16MHz xtal, Oled displays SH1106 or SSD1306 - the same function
#include "u8g.h"
u8g_t u8g;
initialize:
u8g_InitSPI(&u8g, &u8g_dev_sh1106_128x64_sw_spi, PN(1, 3), PN(1, 4), PN(1, 7), PN(1, 6), PN(1, 5));
void draw1(void)
{
u8g_SetFont(&u8g, u8g_font_6x10);
u8g_DrawStr(&u8g, 0, 10, "Hello World! 1");
u8g_DrawStr(&u8g, 0, 20, "Hello World! 2");
u8g_DrawStr(&u8g, 0, 30, "Hello World! 3");
u8g_DrawStr(&u8g, 0, 40, "Hello World! 4");
u8g_DrawStr(&u8g, 0, 50, "Hello World! 5");
u8g_DrawStr(&u8g, 0, 60, "Hello World! 6");
}
void draw2(void)
{
u8g_SetFont(&u8g, u8g_font_6x10);
u8g_DrawStr(&u8g, 0, 10, "Nazdar svete! 1");
u8g_DrawStr(&u8g, 0, 20, "Nazdar svete! 2");
u8g_DrawStr(&u8g, 0, 30, "Nazdar svete! 3");
u8g_DrawStr(&u8g, 0, 40, "Nazdar svete! 4");
u8g_DrawStr(&u8g, 0, 50, "Nazdar svete! 5");
u8g_DrawStr(&u8g, 0, 60, "Nazdar svete! 6");
}
and loop in main() function
... and drawing slowly, one draw is abt 0.7 sec if the same code compiled and loaded from Arduino IDE with U8glib library, working fine fast.
What is missing in my code ? Thank you very much
The text was updated successfully, but these errors were encountered: