Commit Graph

10 Commits

Author SHA1 Message Date
Dan Halbert 021926c96a Fix DotClockFrameBuffer type definition
also remove unnecessary `const` with `MP_DEFINE_CONST_TYPE_OBJ` in I2C
2023-10-13 12:11:14 -04:00
Jeff Epler f80d08e207
Make dot clock displays with a masked portion on the left work 2023-09-27 15:15:32 -05:00
Jeff Epler 6990c37320
Fix calculation of bit-weight for reset pin 2023-09-26 08:33:00 -05:00
Jeff Epler 04ad525c09
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
2023-09-25 11:31:16 -05:00
Jeff Epler 91b98dc9d5
fix constness 2023-09-15 14:45:53 -05:00
Jeff Epler c7b7e22195
remove debug print 2023-09-15 11:16:43 -05:00
Jeff Epler 4b41fdb586
Fast(ish) special purpose bitbang spi over i2c
with the i2c bus operating at 400kHz this achieves a 4.8kHz SPI clock
rate which could be worse.

It accepts the same style of init sequence as displayio.

tested by scoping the pins on the espressif lcd dev kit with a dummy init sequence:
```python
dotclockframebuffer.ioexpander_send_init_sequence(
    bus=bus,
    i2c_address=expander_addr,
    gpio_address=1,
    gpio_data_len=1,
    gpio_data=0xff,
    cs_bit=1,
    mosi_bit=3,
    clk_bit=2,
    init_sequence=init_sequence)
```
2023-09-14 14:42:48 -05:00
Jeff Epler c3c2b84584
fix typo, copyright notice 2023-09-07 12:57:45 -05:00
Jeff Epler 80a1d1a20a
Add support for a non-displayed left portion of screen 2023-08-31 14:52:26 -05:00
Jeff Epler ed9cacf41d
Add DotClockFramebuffer 2023-08-30 10:30:15 -05:00