Merge pull request #218 from ProgramMax/main

Improve ST7789 frame rate ~4x
pull/231/head v0.3.2
Philip Howard 2021-12-08 15:50:48 +00:00 zatwierdzone przez GitHub
commit 9f6ddb86ae
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -29,7 +29,9 @@ namespace pimoroni {
uint bl = SPI_BG_FRONT_PWM;
uint vsync = PIN_UNUSED; // only available on some products
static const uint32_t SPI_BAUD = 16 * 1000 * 1000;
// The ST7789 requires 16 ns between SPI rising edges.
// 16 ns = 62,500,000 Hz
static const uint32_t SPI_BAUD = 62'500'000;
public:
// frame buffer where pixel data is stored

Wyświetl plik

@ -49,7 +49,7 @@ namespace pimoroni {
gpio_set_function(Y, GPIO_FUNC_SIO); gpio_set_dir(Y, GPIO_IN); gpio_pull_up(Y);
// initialise the screen
screen.init(true, false, 74 * 1000 * 1000);
screen.init(true, false);
}
void PicoDisplay2::update() {