-
Notifications
You must be signed in to change notification settings - Fork 1.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
Incorrectly documented setup call for SSD1306 i2c in Wiki #1578
Comments
Nice finding, thanks a lot. |
I added the first argument to the c setup. Looks like noone ever noticed this. It must be there since the beginning of this project :-/
|
Cool thanks. Im happy to update the https://github.com/olikraus/u8g2/wiki/Porting-to-new-MCU-platform#atmel-avr if I can get access...not sure if I can.
|
Ah, ok well, that code was contributed by someone else. |
Hmm... yes, I see the problem: u8g2/sys/avr/avr-libc/lib/u8x8_avr.c Lines 1 to 8 in e5b82a6
|
I have updated the readme: |
Hiya, Ive produced a video in Youtube - https://youtu.be/TO7-yxT6Gvw. Please feel free to link to it |
Thanks for the video. Great contribution. I have placed a link on the porting page: https://github.com/olikraus/u8g2/wiki/Porting-to-new-MCU-platform |
Oli, many thanks for your trouble to write this stuff! Today I got it working on a barebones HW I2C on the Atmega328p using Microchip Studio (GCC) and that brought much joy! I have found what I thought is a documentation bug in the 8x8 Wiki C setup for the SSD1306 128x64_noname setup. I thought it would make life easier for other newbies like me to raise it...
The setup in the "C" Wiki is:
u8x8_Setup(u8x8_d_ssd1306_128x64_noname, u8x8_cad_001, uc specific, uC specific);
and I think it should be:
u8x8_Setup(u8x8_t *u8x8, u8x8_d_ssd1306_128x64_noname, u8x8_cad_ssd13xx_i2c, uc specific, uC specific);
or if using fast i2c :
u8x8_Setup(u8x8_t *u8x8, u8x8_d_ssd1306_128x64_noname, u8x8_cad_ssd13xx_fast_i2c, uc specific, uC specific);
When copied the setup as posted I got a "missing argument" compile error and gibberish on a flashing screen when using u8x8_cad_001. With the fixes it works beautifully!
It seems to apply to all the SSD1306 "C" setup strings in the Wiki.
Another titbit, if you care to add it to your (otherwise working) AS7 AVR setup for HW i2c instructions is to add the "AVR_USE_HW_I2C" as a defined symbol... I got stuck there for a long time with "error: undefined reference to "u8x8_byte_avr_hw_i2c"
If you have no objection, Ill have a bash at producing a short Youtube video with the setup in AS7 I use with a simple example.
The text was updated successfully, but these errors were encountered: