Re-work ioexpander_send_init_sequence · MicroPythonNexus/circuitpython@04ad525 · GitHub
Skip to content

Commit 04ad525

Browse files
committed
Re-work ioexpander_send_init_sequence
* can now send the I2C bus initialization code * can now reset the display on an I/O expander pin * parameters re-ordered to enable easy use with **board.TFT_IO_EXPANDER
1 parent 409d1a8 commit 04ad525

3 files changed

Lines changed: 67 additions & 20 deletions

File tree

shared-bindings/dotclockframebuffer/__init__.c

Lines changed: 39 additions & 15 deletions

shared-bindings/dotclockframebuffer/__init__.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ typedef struct {
5151
uint32_t cs_mask;
5252
uint32_t mosi_mask;
5353
uint32_t clk_mask;
54+
uint32_t reset_mask;
5455
} dotclockframebuffer_ioexpander_spi_bus;
5556

56-
void dotclockframebuffer_ioexpander_send_init_sequence(dotclockframebuffer_ioexpander_spi_bus *bus, const uint8_t *init_sequence, uint16_t init_sequence_len);
57+
void dotclockframebuffer_ioexpander_send_init_sequence(dotclockframebuffer_ioexpander_spi_bus *bus, const mp_buffer_info_t *i2c_bus_init, const mp_buffer_info_t *display_init);

shared-module/dotclockframebuffer/__init__.c

Lines changed: 26 additions & 4 deletions

0 commit comments

Comments
 (0)