Skip to content

Commit 7d5518d

Browse files
committed
Updte examples for new rotation constant.
1 parent 1c21609 commit 7d5518d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/test-app/main/main.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#define PIN_DISPLAY_RESET (5)
1717

1818
static void delay(uint32_t duration) {
19-
vTaskDelay((duration + portTICK_PERIOD_MS - 1) / portTICK_PERIOD_MS);
19+
vTaskDelay((duration + portTICK_PERIOD_MS - 1) / portTICK_PERIOD_MS);
2020
}
2121

2222
// Copy the logo.h onto the display
@@ -32,7 +32,8 @@ void renderFunc(uint8_t *buffer, uint32_t y0, void *context) {
3232
}
3333

3434
void app_main(void) {
35-
FfxDisplayContext display = ffx_display_init(DISPLAY_BUS, PIN_DISPLAY_DC, PIN_DISPLAY_RESET, FfxDisplayRotationPinsLeft, renderFunc, NULL);
35+
FfxDisplayContext display = ffx_display_init(DISPLAY_BUS, PIN_DISPLAY_DC,
36+
PIN_DISPLAY_RESET, FfxDisplayRotationRibbonRight, renderFunc, NULL);
3637

3738
while (1) {
3839
uint32_t frameDone = ffx_display_renderFragment(display);

0 commit comments

Comments
 (0)