Skip to content
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

add constructors with reference to SPI / I2C objects #1083

Open
olikraus opened this issue Jan 2, 2020 · 1 comment
Open

add constructors with reference to SPI / I2C objects #1083

olikraus opened this issue Jan 2, 2020 · 1 comment
Milestone

Comments

@olikraus
Copy link
Owner

olikraus commented Jan 2, 2020

This could replace the current 2nd device approach.
Also the testing for other interfaces could be removed.
It also would be more flexible.

See: rogerclarkmelbourne/Arduino_STM32#680

@Zipdox2
Copy link

Zipdox2 commented Nov 15, 2024

As a workaround you can use this before calling u8g2.begin():

    u8x8_t *u8x8 = u8g2.getU8x8();
    u8x8->pins[U8X8_PIN_SPI_CLOCK] = CLOCK_PIN;
    u8x8->pins[U8X8_PIN_SPI_DATA] = DATA_PIN;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants