diff --git a/meta-pitrezor/recipes-core/pitrezor/files/pitrezor.config b/meta-pitrezor/recipes-core/pitrezor/files/pitrezor.config index c2c6fb8..34c57ac 100644 --- a/meta-pitrezor/recipes-core/pitrezor/files/pitrezor.config +++ b/meta-pitrezor/recipes-core/pitrezor/files/pitrezor.config @@ -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 diff --git a/meta-pitrezor/recipes-core/pitrezor/pitrezor_git.bb b/meta-pitrezor/recipes-core/pitrezor/pitrezor_git.bb index ab85f98..509962e 100644 --- a/meta-pitrezor/recipes-core/pitrezor/pitrezor_git.bb +++ b/meta-pitrezor/recipes-core/pitrezor/pitrezor_git.bb @@ -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 @@ -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" @@ -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"