mirror of
https://github.com/adafruit/Adafruit_SSD1306.git
synced 2026-07-28 04:15:57 +00:00
add ability to create object without RST pin (default -1)
This commit is contained in:
@@ -203,7 +203,7 @@ void Adafruit_SSD1306::begin(uint8_t vccstate, uint8_t i2caddr, bool reset) {
|
||||
#endif
|
||||
}
|
||||
|
||||
if (reset) {
|
||||
if (reset >= 0) {
|
||||
// Setup reset pin direction (used by both SPI and I2C)
|
||||
pinMode(rst, OUTPUT);
|
||||
digitalWrite(rst, HIGH);
|
||||
|
||||
Reference in New Issue
Block a user