heneault / yocto-pitrezor

raspberry pi zero platform to run the trezor port pitrezor as a bitcoin wallet
https://www.pitrezor.com
MIT License
116 stars 30 forks source link

waveshare oled 1.3 stays black on first boot #9

Closed phenomeus closed 3 years ago

phenomeus commented 3 years ago

hi,

I got this display and it has the same driver you used from your Bonet: https://www.berrybase.de/raspberry-pi-co/raspberry-pi/displays/1.3-oled-display-hat-f-252-r-raspberry-pi-einfarbig-40-blau-41

I connected it, etched the SD card, also inserted a HDMI cable and bootet the pitrezor. the hdmi display tells me to got to Trevor.io/start but the waveshare display stays black.

is there anything in the config I need to change? thank you in advance

phenomeus commented 3 years ago

got myself an answer by starting to use my brain…

go to "pitrezor.config" on your boot partition after etching the image onto the SD card. and change the following

export TREZOR_OLED_TYPE=5
export TREZOR_GPIO_YES=21
export TREZOR_GPIO_NO=16

complete config for this waveshare oled display

# Scale factor of display when using hdmi (1 to 16 inclusively)
export TREZOR_OLED_SCALE=2

# Type of oled to use
#  NO OLED                  = 0
#  OLED_ADAFRUIT_I2C_128x64 = 1
#  OLED_SEEED_I2C_128x64    = 2
#  OLED_SH1106_I2C_128x64   = 3
#  OLED_ADAFRUIT_SPI_128x64 = 4
#  OLED_SH1106_SPI_128x64   = 5
export TREZOR_OLED_TYPE=5

# Flip the display vertically. Set to 0 or 1 
export TREZOR_OLED_FLIP=0

# Set gpio number to use for the yes/no buttons
export TREZOR_GPIO_YES=21
export TREZOR_GPIO_NO=16