Skip to content

Commit 7663acd

Browse files
schodetlaurensvalk
authored andcommitted
pbio/drv/display_nxt: Remove synchronous screen update.
This was only needed for assert and abort display which are now removed. This prevented simplification of the code and usage of non blocking operations. Refs: pybricks/support#2425
1 parent cc2885b commit 7663acd

2 files changed

Lines changed: 0 additions & 36 deletions

File tree

lib/pbio/drv/display/display_nxt.c

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -227,31 +227,6 @@ void pbdrv_display_nxt_convert_page(int page) {
227227
}
228228
}
229229

230-
void pbdrv_display_nxt_sync_refresh(void) {
231-
int i, j;
232-
233-
// Start the data transfer.
234-
for (i = 0; i < PBDRV_CONFIG_DISPLAY_NUM_ROWS / 8; i++) {
235-
spi_set_tx_mode(SPI_MODE_COMMAND);
236-
spi_write_command_byte(SET_COLUMN_ADDR0(0));
237-
spi_write_command_byte(SET_COLUMN_ADDR1(0));
238-
spi_write_command_byte(SET_PAGE_ADDR(i));
239-
spi_set_tx_mode(SPI_MODE_DATA);
240-
241-
pbdrv_display_nxt_convert_page(i);
242-
243-
for (j = 0; j < PBDRV_CONFIG_DISPLAY_NUM_COLS; j++) {
244-
// Wait for the transmit register to empty.
245-
while (!(*AT91C_SPI_SR & AT91C_SPI_TDRE)) {
246-
;
247-
}
248-
249-
// Send the data.
250-
*AT91C_SPI_TDR = pbdrv_display_send_buffer[j];
251-
}
252-
}
253-
}
254-
255230
static pbio_os_process_t pbdrv_display_nxt_process;
256231

257232
/*

lib/pbio/drv/display/display_nxt.h

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)