Closed jerryneedell closed 5 years ago
I think it may be related to #1758 — the SPI speed is no longer hardcoded, and the nrf's defaults may be wrong for that display? Can you try adding display_bus.configure(baudrate=12000000)
in there before you create the FourWire bus?
I don't understand -- display_bus is created by the line
display_bus = displayio.FourWire(board.SPI(), command=board.D10, chip_select=board.D9)
when should I execute the display_bus.configure(baudrate=12000000) - after that?
that does not work - not the same issue -- but the is no display_bus.configure()
@deshipu how do I set the baudrate as you suggested?
nevermind -- the original code is now working with the current master.
Press any key to enter the REPL. Use CTRL-D to reload.
Adafruit CircuitPython 4.0.0-beta.6-72-gde38ce798 on 2019-04-10; Adafruit Feather nRF52840 Express with nRF52840
>>>
>>>
>>> import slideshow_sd
cat_rug_320x240.bmp Size: 153.7 KB
cats_320x240.bmp Size: 163.3 KB
sibs_320x240.bmp Size: 153.7 KB
skye320x240.bmp Size: 153.7 KB
I think that #1773 may have fixed this.
@jerryneedell sorry, I didn't see your questions. You have it resolved, but just for reference, you would do:
spi = board.SPI
spi.configure(baudrate=12000000)
display_bus = displayio.FourWire(spi, command=board.D10, chip_select=board.D9)
I have been testing a "slideshow" using a feather_m4_express and an feather_nrf52840 wiht a TFT featherewing (ILI9341).
It runs fine on the feather_m4_express but it does not work on the feather_nrf52840 It starts up OK, but only displays a small part of each image then eventually (after a few images) goes to a white screen.
This used to work on the nrf52840, but if I recall correctly, some changes were made to accommodate the BLE timing. The REPL response is very sluggish on the nrf52840.
Both boards show the same output:
here is the code being run on both boards: