Skip to content

Commit

Permalink
make translate; fix display pins
Browse files Browse the repository at this point in the history
  • Loading branch information
dhalbert committed Mar 19, 2021
1 parent ea82ca1 commit 47437cb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 36 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,6 @@ TAGS
####################
.venv
.env

# Uncrustify formatting
*.uncrustify
42 changes: 9 additions & 33 deletions locale/circuitpython.pot
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,10 @@ msgstr ""
msgid "All UART peripherals are in use"
msgstr ""

#: shared-bindings/pwmio/PWMOut.c
msgid "All channels in use"
msgstr ""

#: ports/atmel-samd/common-hal/audioio/AudioOut.c
msgid "All event channels in use"
msgstr ""
Expand Down Expand Up @@ -667,7 +671,7 @@ msgstr ""
msgid "Cannot unambiguously get sizeof scalar"
msgstr ""

#: ports/stm/common-hal/pwmio/PWMOut.c
#: shared-bindings/pwmio/PWMOut.c
msgid "Cannot vary frequency on a timer that is already in use"
msgstr ""

Expand Down Expand Up @@ -749,11 +753,7 @@ msgstr ""
msgid "Could not initialize UART"
msgstr ""

#: ports/esp32s2/common-hal/pwmio/PWMOut.c ports/stm/common-hal/pwmio/PWMOut.c
msgid "Could not initialize channel"
msgstr ""

#: ports/esp32s2/common-hal/pwmio/PWMOut.c ports/stm/common-hal/pwmio/PWMOut.c
#: ports/esp32s2/common-hal/pwmio/PWMOut.c
msgid "Could not initialize timer"
msgstr ""

Expand All @@ -777,7 +777,7 @@ msgstr ""
msgid "Could not set address"
msgstr ""

#: ports/stm/common-hal/pwmio/PWMOut.c
#: shared-bindings/pwmio/PWMOut.c
msgid "Could not start PWM"
msgstr ""

Expand Down Expand Up @@ -1026,7 +1026,7 @@ msgstr ""
msgid "Framebuffer requires %d bytes"
msgstr ""

#: ports/stm/common-hal/pwmio/PWMOut.c
#: shared-bindings/pwmio/PWMOut.c
msgid "Frequency must match existing PWMOut using this timer"
msgstr ""

Expand Down Expand Up @@ -1254,10 +1254,6 @@ msgstr ""
msgid "Invalid frequency"
msgstr ""

#: ports/stm/common-hal/pwmio/PWMOut.c
msgid "Invalid frequency supplied"
msgstr ""

#: supervisor/shared/safe_mode.c
msgid "Invalid memory access."
msgstr ""
Expand Down Expand Up @@ -1303,10 +1299,6 @@ msgstr ""
msgid "Invalid pins"
msgstr ""

#: ports/stm/common-hal/pwmio/PWMOut.c
msgid "Invalid pins for PWMOut"
msgstr ""

#: shared-bindings/bitbangio/SPI.c shared-bindings/busio/SPI.c
#: shared-bindings/displayio/FourWire.c
msgid "Invalid polarity"
Expand Down Expand Up @@ -1559,18 +1551,6 @@ msgstr ""
msgid "No long integer support"
msgstr ""

#: ports/esp32s2/common-hal/pwmio/PWMOut.c
msgid "No more channels available"
msgstr ""

#: ports/esp32s2/common-hal/pwmio/PWMOut.c
msgid "No more timers available"
msgstr ""

#: ports/stm/common-hal/pwmio/PWMOut.c
msgid "No more timers available on this pin."
msgstr ""

#: shared-bindings/wifi/Radio.c
msgid "No network with that ssid"
msgstr ""
Expand Down Expand Up @@ -2124,11 +2104,6 @@ msgstr ""
msgid "Timeout is too long: Maximum timeout length is %d seconds"
msgstr ""

#: ports/stm/common-hal/pwmio/PWMOut.c
msgid ""
"Timer was reserved for internal use - declare PWM pins earlier in the program"
msgstr ""

#: supervisor/shared/safe_mode.c
msgid "To exit, please reset the board without "
msgstr ""
Expand Down Expand Up @@ -3737,6 +3712,7 @@ msgstr ""

#: ports/esp32s2/boards/adafruit_feather_esp32s2_nopsram/mpconfigboard.h
#: ports/esp32s2/boards/adafruit_feather_esp32s2_tftback_nopsram/mpconfigboard.h
#: ports/esp32s2/boards/adafruit_funhouse/mpconfigboard.h
#: ports/esp32s2/boards/adafruit_magtag_2.9_grayscale/mpconfigboard.h
#: ports/esp32s2/boards/adafruit_metro_esp32s2/mpconfigboard.h
#: ports/esp32s2/boards/electroniccats_bastwifi/mpconfigboard.h
Expand Down
6 changes: 3 additions & 3 deletions ports/esp32s2/boards/adafruit_funhouse/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ void board_init(void) {
bus->base.type = &displayio_fourwire_type;
common_hal_displayio_fourwire_construct(bus,
spi,
&pin_GPIO38, // TFT_DC Command or data
&pin_GPIO39, // TFT_CS Chip select
&pin_GPIO40, // TFT_RESET Reset
&pin_GPIO39, // TFT_DC Command or data
&pin_GPIO40, // TFT_CS Chip select
&pin_GPIO41, // TFT_RESET Reset
60000000, // Baudrate
0, // Polarity
0); // Phase
Expand Down

0 comments on commit 47437cb

Please sign in to comment.