Skip to content

Commit 3d7a3fe

Browse files
committed
0.1.5 I2C_24LC1025
1 parent f7e3817 commit 3d7a3fe

File tree

10 files changed

+32
-21
lines changed

10 files changed

+32
-21
lines changed

libraries/I2C_24LC1025/.github/workflows/arduino_test_runner.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ name: Arduino CI
44
on: [push, pull_request]
55

66
jobs:
7-
arduino_ci:
7+
runTest:
88
runs-on: ubuntu-latest
99

1010
steps:
1111
- uses: actions/checkout@v2
12-
- uses: Arduino-CI/action@master
13-
# Arduino-CI/[email protected]
12+
- uses: ruby/setup-ruby@v1
13+
with:
14+
ruby-version: 2.6
15+
- run: |
16+
gem install arduino_ci
17+
arduino_ci.rb

libraries/I2C_24LC1025/I2C_24LC1025.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// 0.1.2 2021-01-31 fix reading over 64K block border
1111
// 0.1.3 2021-02-02 add updateBlock();
1212
// 0.1.4 2021-05-27 fix library.properties;
13+
// 0.1.5 2021-08-30 fix #3 I2C_DEVICESIZE_24LC512 => I2C_DEVICESIZE_24LC1025
1314

1415

1516
#include "I2C_24LC1025.h"
@@ -31,8 +32,8 @@
3132
I2C_24LC1025::I2C_24LC1025(uint8_t deviceAddress, TwoWire * wire)
3233
{
3334
_deviceAddress = deviceAddress;
34-
_deviceSize = I2C_DEVICESIZE_24LC512;
35-
_pageSize = I2C_24LC1025_PAGESIZE;
35+
_deviceSize = I2C_DEVICESIZE_24LC1025;
36+
_pageSize = I2C_PAGESIZE_24LC1025;
3637
_wire = wire;
3738
}
3839

libraries/I2C_24LC1025/I2C_24LC1025.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// FILE: I2C_24LC1025.h
44
// AUTHOR: Rob Tillaart
5-
// VERSION: 0.1.4
5+
// VERSION: 0.1.5
66
// PURPOSE: I2C_24LC1025 library for Arduino with EEPROM 24FC1025 et al.
77
// HISTORY: See I2C_24LC1025.cpp
88
// URL: https://github.com/RobTillaart/I2C_24LC1025
@@ -12,11 +12,11 @@
1212
#include "Wire.h"
1313

1414

15-
#define I2C_24LC1025_VERSION (F("0.1.4"))
15+
#define I2C_24LC1025_VERSION (F("0.1.5"))
1616

1717

18-
#define I2C_DEVICESIZE_24LC512 131072
19-
#define I2C_24LC1025_PAGESIZE 128
18+
#define I2C_DEVICESIZE_24LC1025 131072
19+
#define I2C_PAGESIZE_24LC1025 128
2020

2121

2222
class I2C_24LC1025
@@ -63,8 +63,8 @@ class I2C_24LC1025
6363
uint8_t _deviceAddress;
6464
uint8_t _actualAddress; // a.k.a. controlByte
6565
uint32_t _lastWrite;
66-
uint32_t _deviceSize = I2C_DEVICESIZE_24LC512;
67-
uint8_t _pageSize = I2C_24LC1025_PAGESIZE;
66+
uint32_t _deviceSize = I2C_DEVICESIZE_24LC1025;
67+
uint8_t _pageSize = I2C_PAGESIZE_24LC1025;
6868
int _error; // TODO.
6969

7070

libraries/I2C_24LC1025/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11

22
[![Arduino CI](https://github.com/RobTillaart/I2C_24LC1025/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci)
3+
[![Arduino-lint](https://github.com/RobTillaart/I2C_24LC1025/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/I2C_24LC1025/actions/workflows/arduino-lint.yml)
4+
[![JSON check](https://github.com/RobTillaart/I2C_24LC1025/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/I2C_24LC1025/actions/workflows/jsoncheck.yml)
35
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/I2C_24LC1025/blob/master/LICENSE)
46
[![GitHub release](https://img.shields.io/github/release/RobTillaart/I2C_24LC1025.svg?maxAge=3600)](https://github.com/RobTillaart/I2C_24LC1025/releases)
57

68

7-
# I2C_24FC1025 - I2C 1MB EEPROM
9+
# I2C_24LC1025 - I2C 1MB EEPROM
810

9-
Arduino library for for external I2C EEPROM - 24LC1025 and equivalents.
11+
Arduino library for for external I2C EEPROM - 24LC1025 and equivalents e.g. 24AA1025/24FC1025
1012

1113

1214
## Description
1315

1416
This library is to access external I2C EEPROM of 128 KB in size,
15-
typically the 24LC1025 and equivalents.
17+
typically the 24LC1025 and equivalents e.g. 24AA1025/24FC1025.
1618

1719
**Warning**
1820
A2 = Non-Configurable Chip Select.

libraries/I2C_24LC1025/examples/24LC1025_format/24LC1025_format.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ void setup()
2525
Serial.println("Formatting takes 32 dots ( < 45 seconds).");
2626

2727
start = millis();
28-
for (uint32_t i = 0; i < I2C_DEVICESIZE_24LC512; i+=128)
28+
for (uint32_t i = 0; i < I2C_DEVICESIZE_24LC1025; i+=128)
2929
{
3030
if (i % 0x1000 == 0) Serial.print('.');
3131
ee.setBlock(i, 0x00, 128);

libraries/I2C_24LC1025/examples/24LC1025_test/24LC1025_test.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void loop()
5151

5252
void dump(uint32_t from, uint32_t to)
5353
{
54-
for (uint32_t i = from; i < to; i++) // I2C_DEVICESIZE_24LC512
54+
for (uint32_t i = from; i < to; i++) // I2C_DEVICESIZE_24LC1025
5555
{
5656
volatile int x = ee.readByte(i);
5757
char buffer[24];

libraries/I2C_24LC1025/examples/24LC1025_test_read/24LC1025_test_read.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ void loop()
117117

118118
void dump(uint32_t from, uint32_t to)
119119
{
120-
for (uint32_t i = from; i < to; i++) // I2C_DEVICESIZE_24LC512
120+
for (uint32_t i = from; i < to; i++) // I2C_DEVICESIZE_24LC1025
121121
{
122122
char buffer[24];
123123
if (i % 16 == 0)

libraries/I2C_24LC1025/keywords.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Syntax Coloring Map For I2C_24LC1025
1+
# Syntax Colouring Map For I2C_24LC1025
22

33

4-
# Datatypes (KEYWORD1)
4+
# Data types (KEYWORD1)
55
I2C_24LC1025 KEYWORD1
66

77

@@ -24,3 +24,7 @@ getLastWrite KEYWORD2
2424

2525

2626
# Constants (LITERAL1)
27+
I2C_24LC1025_VERSION LITERAL1
28+
I2C_DEVICESIZE_24LC1025 LITERAL1
29+
I2C_PAGESIZE_24LC1025 LITERAL1
30+

libraries/I2C_24LC1025/library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"type": "git",
1616
"url": "https://github.com/RobTillaart/I2C_24LC1025"
1717
},
18-
"version":"0.1.4",
18+
"version": "0.1.5",
1919
"license": "MIT",
2020
"frameworks": "arduino",
2121
"platforms": "*"

libraries/I2C_24LC1025/library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=I2C_24LC1025
2-
version=0.1.4
2+
version=0.1.5
33
author=Rob Tillaart <[email protected]>
44
maintainer=Rob Tillaart <[email protected]>
55
sentence=Library for 24FC1025 I2C EEPROM

0 commit comments

Comments
 (0)