Skip to content

Commit

Permalink
Use pitrezor 1.6.1 with updated config file to support new SPI OLED, …
Browse files Browse the repository at this point in the history
…flip option and custom GPIO buttons. Also changed EOL of config file to be Windows compatible.
  • Loading branch information
heneault committed Apr 29, 2018
1 parent 956f0b0 commit 6e6612a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
15 changes: 12 additions & 3 deletions meta-pitrezor/recipes-core/pitrezor/files/pitrezor.config
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
#scale factor of display when using hdmi
export TREZOR_SDL_SCALE=2
# Scale factor of display when using hdmi
export TREZOR_OLED_SCALE=2

#type of oled to use
# 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=3

# 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=16
export TREZOR_GPIO_NO=12
5 changes: 3 additions & 2 deletions meta-pitrezor/recipes-core/pitrezor/pitrezor_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ SUMMARY = "Pitrezor application"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=e6a600fd5e1d9cbde2d983680233ad02"

DEPENDS = "libsdl libusbgx bcm2835 protobuf-native python3-protobuf-native python3-six-native"
DEPENDS = "libsdl libusbgx bcm2835 protobuf-native python3-protobuf-native python3-six-native dos2unix-native"
RDEPENDS_${PN} = "rng-tools"

inherit pkgconfig python3native
Expand All @@ -13,7 +13,7 @@ SRC_URI = "gitsm://github.com/heneault/trezor-mcu.git;branch=pitrezor \
file://pitrezor.config \
"

SRCREV = "e1c17b310c8be62e8ccc98ccb237b194cc7377ed"
SRCREV = "1fa5a78c4caeba02a02eeff36773855bb940b153"

S = "${WORKDIR}/git"

Expand All @@ -36,6 +36,7 @@ do_install() {
install -m 0755 ${WORKDIR}/start_pitrezor ${D}${bindir}
install -m 0766 ${B}/firmware/trezor.elf ${D}${bindir}/pitrezor
install -m 0444 ${WORKDIR}/pitrezor.config ${D}${datadir}/pitrezor
unix2dos ${D}${datadir}/pitrezor/pitrezor.config
}

FILES_${PN} = "${bindir} ${datadir}/pitrezor"
Expand Down

0 comments on commit 6e6612a

Please sign in to comment.