-
Notifications
You must be signed in to change notification settings - Fork 1k
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
ST7920 parallel mode (8080 / 6800) not working #90
Comments
hmmm... i have to check this.... |
it is working, however you have to set the R/W input of the display to 0. Additionally there is no CS in parallel mode of the ST7920, so in the constructor CS has to be set to U8X8_PIN_NONE. For me, this works fine:
|
I added some description here: |
Very nice. Thanks for sharing. |
Thank you so much for this thread! It helped me get my ST7920 working in parallel mode as well, which is so much faster than SPI. 😊 |
Note to anyone else following: don't just change |
Correct |
I've made a straight port of a benchmark I wrote with U8Glib, and while it works perfectly in HW / SW SPI modes, it doesn't in any of the two parallel modes. I've tested all the possible combinations on the constructor (enable, cs, ds) to see if it was my mistake, but none of them work (I found the description of the parameters in the new constructor really confusing). These are the initializations i'm using:
U8GLIB_ST7920_128X64_4X u8g(52, 51, 10); -> Working
U8GLIB_ST7920_128X64_4X u8g(10); -> Working
U8GLIB_ST7920_128X64_4X u8g(37, 35, 33, 31, 29, 27, 25, 23, 52, 10, 51); -> Working
U8G2_ST7920_128X64_2_SW_SPI u8g2(U8G2_R2, 52, 51, 10); -> Working
U8G2_ST7920_128X64_2_HW_SPI u8g2(U8G2_R2, 10); -> Working
U8G2_ST7920_128X64_2_8080 u8g2(U8G2_R2, 37, 35, 33, 31, 29, 27, 25, 23, 52, 10, 51); -> NOT working
U8G2_ST7920_128X64_2_6800 u8g2(U8G2_R2, 37, 35, 33, 31, 29, 27, 25, 23, 52, 10, 51); -> NOT working
The U8G2 version is 2.6.3, and the device is an Arduino Mega 2560
PS. Please forgive my English
The text was updated successfully, but these errors were encountered: