Wykres commitów

32 Commity (master)

Autor SHA1 Wiadomość Data
Peter Hinch ff62510965 README.md: Add comments re EEPROM chips. 2024-02-09 09:34:27 +00:00
peterhinch 4003fcef44 README.md: Correct descriprion of W25Q128JV chip. 2023-07-08 13:02:34 +01:00
peterhinch 178af1f5bb README.md: Note support for W25Q64JV flash. 2023-07-07 17:55:44 +01:00
Bohdan Danishevsky f84eb5cec2 Add support of Microchip AT24C32 and support of single chip for `EEPROM` class
[Description]

Adds support of:

1. Microchip AT24C32 (4 KiB)
2. Support of single chip setup for `EEPROM` class when single chip has address is
 0x57 so entire set of chips (1 chip in our case) addresses are not started from 0x50.

Example:

```python
from eeprom_i2c import EEPROM, T24C32

eeprom = PROM(machine.I2C(0), T24C32)
```

Improves tests implementation by adding dependency injection of `EEPROM`
object used during testing with support of old use case when object
had not been provided for testing.

Example (for AT24C32 connected to I2C0 of my Raspberry Pi Pico W) when we
creating instance of `EEPROM` and then passing it to `full_test` and also
providing proper block size for this chip:

```python
import machine
from eeprom_i2c import EEPROM, T24C32
from eep_i2c import full_test

def get_eep():
    return EEPROM(machine.I2C(0), T24C32)

def main():
    print("App started")

    print("Running tests")
    eep = get_eep()
    full_test(eep, block_size=32)
    print("App finished")

if __name__ == "__main__":
    main()
```

[Motivation]

Have DS3231 with soldered AT24C32 chip and want to use both RTC and EEPROM.
In my case AT24C32 has 0x57 as it's address and `EEPROM` class refused to
work with this setup.

[Testing]

Executed `full_test` from `eep_i2c` against AT24C32 (with address 0x57)
connected to my Raspberry Pi Pico W.

Test code:

```python
import machine
from eeprom_i2c import EEPROM, T24C32
from eep_i2c import full_test

def get_eep():
    return EEPROM(machine.I2C(0), T24C32)

def main():
    print("App started")

    print("Running tests")
    eep = get_eep()
    full_test(eep, block_size=32)
    print("App finished")

if __name__ == "__main__":
    main()
```
2022-09-24 17:42:58 +01:00
Peter Hinch 79ef80fa25 README: Add reference to test scripts. 2022-06-13 10:27:21 +01:00
Peter Hinch 295a103965 Add 25LC512 support, make eep_spi.py more self-explanatory. 2022-02-19 09:56:47 +00:00
Peter Hinch 9748b15389 README: fix broken link. 2022-02-11 18:22:47 +00:00
Peter Hinch 2f4bb08820 Add SPIRAM (PSRAM) support. 2021-10-31 17:35:53 +00:00
Peter Hinch 65ac90a559 Reference Winbond W25Q128JV support. Add ioctl code comments. 2021-09-13 07:20:01 +01:00
Peter Hinch 2792ab31d3 EEPROM: replace exception with warning for unsupported chips. 2021-04-25 12:16:02 +01:00
Peter Hinch 9ebeeda5b0 Support SPI FRAM 256 and 512KiB devices. 2020-09-04 18:37:03 +01:00
Peter Hinch 33f4dc0658 Document support for extra flash chips. 2020-02-13 14:01:02 +00:00
Peter Hinch 9c35fb6e98 Flash: extend support to smaller chips. Add note re CS pullups. 2020-02-11 12:16:02 +00:00
Peter Hinch bc8b29ea84 Testing complete. 2020-01-10 18:46:57 +00:00
Peter Hinch cdef377f38 Prior to refactor branch. 2020-01-01 14:15:40 +00:00
Peter Hinch fb0b7ab371 Directory structure: technology/interface. 2019-12-30 10:48:46 +00:00
Peter Hinch 49991d1e02 First pass at flash driver. 2019-12-24 15:16:09 +00:00
Peter Hinch 07def0505c Tested with 256KiB STM chip. SPI bug fixed. 2019-12-21 09:25:32 +00:00
Peter Hinch 4624fb41c6 Littlefs support. Test scripts adapted to use it. 2019-12-20 15:19:21 +00:00
Peter Hinch d792a2be7f Prepare for STM chip. Devolve further code to base class. 2019-12-18 17:24:50 +00:00
Peter Hinch 912e6629d5 Grappling with markdown. 2019-12-17 17:33:47 +00:00
Peter Hinch ea252e0308 Grappling with markdown. 2019-12-17 17:32:33 +00:00
Peter Hinch 236f46265b Grappling with markdown. 2019-12-17 17:30:39 +00:00
Peter Hinch ce9f220d30 Grappling with markdown. 2019-12-17 17:29:15 +00:00
Peter Hinch 590a9c4c7e Grappling with markdown. 2019-12-17 17:25:05 +00:00
Peter Hinch aafae3262a Grappling with markdown. 2019-12-17 17:23:20 +00:00
Peter Hinch f52ec86c32 Add FRAM. Various minor changes. 2019-12-17 17:16:50 +00:00
Peter Hinch 985c09ae4f Add FRAM. Various minor changes. 2019-12-17 17:10:43 +00:00
Peter Hinch 992e35b994 Add SPI support. Reorganise directories. 2019-12-13 18:49:48 +00:00
Peter Hinch 43421c55e7 README fixes. 2019-12-11 09:35:37 +00:00
Peter Hinch efe6e366b3 Initial commit. 2019-12-11 09:23:17 +00:00
Peter Hinch e31ff3983d
Initial commit 2019-12-11 06:59:32 +00:00