Wykres commitów

82 Commity (master)

Autor SHA1 Wiadomość Data
Peter Hinch ff62510965 README.md: Add comments re EEPROM chips. 2024-02-09 09:34:27 +00:00
Peter Hinch 308dc542dd
Merge pull request #24 from adeuring/master
Fix `eep_i2c.py` for testing with smaller EEPROMs.
2024-02-04 08:43:48 +00:00
Abel Deuring 640af0f1bf
Merge branch 'peterhinch:master' into master 2024-02-03 20:14:06 +01:00
Abel Deuring a7f3dbdaba
Address selection for tests of small I2C EEPROMs fixed. 2024-02-03 19:59:15 +01:00
Peter Hinch 51f7a136a7 SPI EEPROM: Document impact of PR13549. 2024-02-01 08:40:42 +00:00
peterhinch 80dc293c17 eeprom SPI: Fix ready timeout. 2024-01-23 16:54:07 +00:00
Peter Hinch 1fa3fea9e3 eeprom SPI: Add ready timeout. 2024-01-18 10:34:25 +00:00
Peter Hinch 75e8311ffb EEPROM: spi presence detect address randomisation. 2024-01-17 09:34:08 +00:00
Peter Hinch 5861e93f48 EEPROM: SPI and I2C full_test now more rigorous. 2024-01-15 12:05:21 +00:00
Peter Hinch 3b2e2530ef EEPROM: Add release notes. 2024-01-14 13:56:07 +00:00
Peter Hinch 2a2ceab903 EEPROM: Support i2c 2KiB eeproms, also MIP install. 2024-01-14 11:28:15 +00:00
Peter Hinch e06fd66bb3 spi: Bug in presence detect. 2024-01-12 08:39:07 +00:00
Peter Hinch 9a9c588f9b bdevice.py: Protect _set_pagesize against exceptions. 2024-01-10 08:20:39 +00:00
Peter Hinch a5ebd63bfa Merge branch 'master' of https://github.com/peterhinch/micropython_eeprom
Merge _getaddr bugfix.
2024-01-09 14:41:13 +00:00
Peter Hinch ab0adab7d8 Fix bugs in I2C EEPROM. Auto detect page size. 2024-01-09 14:38:53 +00:00
Peter Hinch b26867febc
Merge pull request #23 from adeuring/master
Fix the page end calculation in eeprom_i2c.py for multiple chip arrays.
2024-01-09 09:51:51 +00:00
Abel Deuring d3bdef839a
Fix the page end calculation in eeprom_i2c.py for multiple chip arrays. 2024-01-08 16:21:29 +01:00
Peter Hinch 4a8c00bf98 eep_i2c.py: Fix cptest path handling. 2024-01-07 18:05:40 +00:00
Peter Hinch 0a1bdce0d2 eep_i2c.py: Fix cptest path handling. 2024-01-07 18:04:06 +00:00
Peter Hinch b5e9bcb160
Merge pull request #22 from adeuring/master
Add support for I2C EEPROMs with page sizes other than 128 in eeprom_…
2024-01-07 08:29:24 +00:00
Abel Deuring 6399f9f6d3
- "Meaning" of the new EEPROM constructor parameter `page_size` changed from
the size itself to the binary logarithm of the size.
- Default value of this parameter changed from None to 7, to match the
  behaviour of the constructor in its previous form, as discussed in the PR.
- Dictionary _PAGE_SIZES removed.
- Documentation updated.
2024-01-06 16:07:04 +01:00
Peter Hinch 26f2726fee Docs: Add warnig re block protocol methods. 2024-01-05 17:47:35 +00:00
Abel Deuring 208b3089bb
Add support for I2C EEPROMs with page sizes other than 128 in eeprom_i2c.py. 2024-01-03 17:24:41 +01:00
Peter Hinch 98ebb3c7db
Merge pull request #19 from puppet13th/puppet13th-patch-1
Update eeprom_i2c.py: Allow address and chip count to be overridden.
2023-10-16 13:00:45 +01:00
Rinaldi Jandrinata 721f35918f
Update I2C.md 2023-10-16 14:32:05 +07:00
Rinaldi Jandrinata 29fe5e1aab
Update I2C.md
add `addr` and `max_chips_count` example code
2023-10-16 14:30:46 +07:00
Rinaldi Jandrinata 0b08e08b74
Update I2C.md
update constructor
2023-10-16 10:54:02 +07:00
Rinaldi Jandrinata 95215ebf3c
Update eeprom_i2c.py
fixed missing parameter for scan in __init__
2023-10-16 10:40:16 +07:00
Rinaldi Jandrinata b80fde066f
Update eeprom_i2c.py
allow to override addr and max_chips_count
2023-10-13 20:52:26 +07: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
adminpete 5037f0999a FLASH.md: Add design notes. 2022-12-13 15:32:49 +00:00
adminpete 6b42d58b8c flash_spi.py: Can specify size where auto-detect fails. 2022-12-09 17:41:37 +00:00
peterhinch 7d804c5b59 FLASH.md: Add reference to minimal driver from Robert. 2022-11-16 09:35:53 +00:00
Peter Hinch 7c1496783e
Merge pull request #14 from JFF-Bohdan/master
Add support of Microchip AT24C32
2022-10-29 17:35:33 +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 9d77347007 Run black over all Python files. 2022-09-22 10:04:29 +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 da8c9f54f1 fram_spi.py: Correct code comments. 2021-10-29 18:42:21 +01: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 36f67b7b54 Support SPI FRAM 256 and 512KiB devices. 2020-09-04 18:44:30 +01:00
Peter Hinch 9ebeeda5b0 Support SPI FRAM 256 and 512KiB devices. 2020-09-04 18:37:03 +01:00
Peter Hinch 55f62ce514 Flash: cmdlen constructor arg renamed cmd5. 2020-06-10 14:08:42 +01:00
Peter Hinch e8a29df07b Flash: support override of default command set. 2020-06-08 18:37:54 +01:00
Peter Hinch 33f4dc0658 Document support for extra flash chips. 2020-02-13 14:01:02 +00:00
Peter Hinch cb1c33303e Save problematic version. 2020-02-13 09:09:07 +00:00