Skip to content

Commit 95bca9d

Browse files
author
brentru
committed
add hardware reset pin to oled initialization. remove fritzings
1 parent 9e4452a commit 95bca9d

File tree

7 files changed

+10
-5
lines changed

7 files changed

+10
-5
lines changed

pi_radio/radio_lorawan.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
i2c = busio.I2C(board.SCL, board.SDA)
3535

3636
# 128x32 OLED Display
37-
display = adafruit_ssd1306.SSD1306_I2C(128, 32, i2c, addr=0x3c)
37+
reset_pin = DigitalInOut(board.D4)
38+
display = adafruit_ssd1306.SSD1306_I2C(128, 32, i2c, reset=reset_pin)
3839
# Clear the display.
3940
display.fill(0)
4041
display.show()

pi_radio/radio_rfm69.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
i2c = busio.I2C(board.SCL, board.SDA)
3535

3636
# 128x32 OLED Display
37-
display = adafruit_ssd1306.SSD1306_I2C(128, 32, i2c, addr=0x3c)
37+
reset_pin = DigitalInOut(board.D4)
38+
display = adafruit_ssd1306.SSD1306_I2C(128, 32, i2c, reset=reset_pin)
3839
# Clear the display.
3940
display.fill(0)
4041
display.show()

pi_radio/radio_rfm9x.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
i2c = busio.I2C(board.SCL, board.SDA)
3535

3636
# 128x32 OLED Display
37-
display = adafruit_ssd1306.SSD1306_I2C(128, 32, i2c, addr=0x3c)
37+
reset_pin = DigitalInOut(board.D4)
38+
display = adafruit_ssd1306.SSD1306_I2C(128, 32, i2c, reset=reset_pin)
3839
# Clear the display.
3940
display.fill(0)
4041
display.show()

pi_radio/rfm69.fzz

-77.4 KB
Binary file not shown.

pi_radio/rfm69_check.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
i2c = busio.I2C(board.SCL, board.SDA)
3333

3434
# 128x32 OLED Display
35-
display = adafruit_ssd1306.SSD1306_I2C(128, 32, i2c, addr=0x3c)
35+
reset_pin = DigitalInOut(board.D4)
36+
display = adafruit_ssd1306.SSD1306_I2C(128, 32, i2c, reset=reset_pin)
3637
# Clear the display.
3738
display.fill(0)
3839
display.show()

pi_radio/rfm9x.fzz

-78.9 KB
Binary file not shown.

pi_radio/rfm9x_check.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
i2c = busio.I2C(board.SCL, board.SDA)
3333

3434
# 128x32 OLED Display
35-
display = adafruit_ssd1306.SSD1306_I2C(128, 32, i2c, addr=0x3c)
35+
reset_pin = DigitalInOut(board.D4)
36+
display = adafruit_ssd1306.SSD1306_I2C(128, 32, i2c, reset=reset_pin)
3637
# Clear the display.
3738
display.fill(0)
3839
display.show()

0 commit comments

Comments
 (0)