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

Why can't the parameter OLED_I2C_RESET in init() be dropped? #25

Open
dsyleixa opened this issue May 31, 2021 · 0 comments
Open

Why can't the parameter OLED_I2C_RESET in init() be dropped? #25

dsyleixa opened this issue May 31, 2021 · 0 comments

Comments

@dsyleixa
Copy link

dsyleixa commented May 31, 2021

what are the RESET pins for? especially OLED_I2C_RESET ?

OLED SSD1306 boards normally don't have a breakout pin for reset GPIOs,
and on the RPi GPIO pin bcm 25 (physical pin 22) is probably used for arbitrary purposes (conflicting!)

and why does the init() method require then to get passed the parameter OLED_I2C_RESET at all?
Why can't the parameter OLED_I2C_RESET in init() be dropped?

Or can one pass -1 for reset instead of OLED_I2C_RESET if there is no reset pin connected?
e.g.,
display.init(-1, opts.oled)
:?:

(edit: I tested passing -1, seems to work at first view, but not sure if failsafe though)

// Configuration Pin for ArduiPi board
#define OLED_SPI_RESET RPI_V2_GPIO_P1_22 /* GPIO 25 pin 22  */
//
#define OLED_I2C_RESET RPI_V2_GPIO_P1_22 /* GPIO 25 pin 12  */   //<<<<<<<< pin 22 ?! typo ?!

(just to mention, the latest comment
/* GPIO 25 pin 12 */
is probably faulty, should be "pin 22" instead, probably)

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

No branches or pull requests

1 participant