Skip to content

Commit a574aa6

Browse files
authored
Merge pull request #167 from Marzogh/stable
Final v3.3.0 code being pushed to master prior to release
2 parents 341c29a + 78053d6 commit a574aa6

28 files changed

Lines changed: 2222 additions & 369 deletions

.github/ISSUE_TEMPLATE.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
![GitHub issue author](https://img.shields.io/github/issues/detail/u/Marzogh/SPIFlash/14.svg) ![GitHub issue label](https://img.shields.io/github/issues/detail/label/Marzogh/SPIFlash/14.svg) ![GitHub issue comments](https://img.shields.io/github/issues/detail/comments/Marzogh/SPIFlash/14.svg)
33
![GitHub issue age](https://img.shields.io/github/issues/detail/age/Marzogh/SPIFlash/14.svg) ![GitHub issue last update](https://img.shields.io/github/issues/detail/last-update/Marzogh/SPIFlash/14.svg)
44
###### ---------------------------- **DO NOT DELETE OR EDIT** anything above this line ----------------------------
5-
###### ---------------------------- **DO NOT DELETE OR EDIT** anything above this line ----------------------------
5+
66

77
Hey there! Thanks for using the SPIFlash library for Arduino.
88
### Please note that starting 01.03.2018 any issue raised here MUST be submitted according to this template or it will be flagged with 'Not enough information'. No action will be taken till all the prerequisite information is provided. If no information is provided for over a month, the issue will be closed.
@@ -20,7 +20,7 @@ Do the checklist before filing an issue:
2020

2121
- [ ] Is this something you can **debug and fix**? Send a pull request! Bug fixes and documentation fixes are welcome.
2222
- [ ] Is this an idea for a feature? Post the feature request as an issue here with a title that clearly says "Feature Request".
23-
- [ ] Is this a bug that you cannot fix? Post the bug report as an issue here with a title that cleary says "Bug Report".
23+
- [ ] Is this a bug that you cannot fix? Post the bug report as an issue here with a title that clearly says "Bug Report".
2424

2525
When opening an issue please include the following details:
2626
-------------------------------------------------------------
@@ -29,7 +29,7 @@ When opening an issue please include the following details:
2929
- [ ] Which library version are you using?
3030
- [ ] Which Arduino IDE version are you compiling the library on?
3131
- [ ] Which OS are you compiling your code on? [Linux / Mac / Windows]
32-
- [ ] Which microcontroller platform are you using?
32+
- [ ] Which micro controller platform are you using?
3333
- [ ] Which Flash memory module are you using?
3434
- [ ] What is the current behavior?
3535
- [ ] What is the expected behavior?
@@ -38,19 +38,15 @@ When opening an issue please include the following details:
3838
###### Bug reports only
3939
- If this is a bug report -
4040

41-
- [ ] Make sure you have run FlashDiagnostics.ino with ``` #define RUNDIAGNOSTICS ``` uncommented in SPIFlash.h. **List any error codes** that pop up in your Serial output when you run FlashDiagnostics.ino.here:
42-
Error codes
43-
------------
44-
-
45-
-
46-
-
47-
-
48-
-
41+
- [ ] Make sure you have run FlashDiagnostics.ino with ``` #define RUNDIAGNOSTICS ``` uncommented in SPIFlash.h. Paste the **relevant sections** of the output from your Serial console when you run FlashDiagnostics.ino.here:
42+
```
43+
```FlashDiagnostics output```
44+
```
4945
- [ ] If you have a problem with a particular function, call the flash.error() function (after you have made sure you have started up your Serial port with a ``` Serial.begin(BAUD) ``` ). Provide details of the function, the data given to/ expected from the function and the error code here: (**Please repeat this for every function you have an error with***)
5046
Function -
5147
Data -
5248
Error code -
53-
- [ ] Provide a **minimal code snippet** example that reproduces the bug. Please make sure you wrap any code in the proper code blocks like below
49+
- [ ] Provide a **minimal code snippet** example that reproduces the bug (If you're using one of the examples that came with the library, just tell us which one). Please make sure you wrap any code in the proper code blocks like below
5450
```
5551
```CODE HERE```
5652
```

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Hey there! Thanks for using the SPIFlash library for Arduino.
2323

2424

2525

26-
* **What is the new behavior (if this is a feature change)?**
26+
* **What is the new behavior?** (if this is a feature change)
2727

2828

2929

README.md

Lines changed: 135 additions & 178 deletions
Large diffs are not rendered by default.

docs/pages/SPIFlash/chipID.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Example code:
5454
flash.begin();
5555
uint16_t manID = flash.getManID(); // Function is used to get the manufacturer ID and store it as
5656
// a 16 bit unsigned integer
57-
Serial.print("Chip Manufacturer ID: 0x");
57+
Serial.print(F("Chip Manufacturer ID: 0x"));
5858
Serial.println(manID, HEX); // The manufacturer ID is printed as a Hexadecimal number
5959
...
6060
}
@@ -101,7 +101,7 @@ Example code:
101101
flash.begin();
102102
uint32_t JEDEC = flash.getJEDECID(); // Function is used to get the JEDEC ID and store it as
103103
// a 32 bit unsigned integer
104-
Serial.print("JEDEC ID: 0x");
104+
Serial.print(F("JEDEC ID: 0x"));
105105
Serial.println(JEDEC, HEX); // The JEDEC ID is printed as a Hexadecimal number
106106
...
107107
}
@@ -150,7 +150,7 @@ Example code:
150150
flash.begin();
151151
uint64_t uniqueID = flash.getUniqueID(); // Function is used to get the unique ID and store it as
152152
// a 64 bit unsigned integer
153-
Serial.print("Unique ID: 0x");
153+
Serial.print(F("Unique ID: 0x"));
154154
Serial.println(uniqueID, HEX); // The unique ID is printed as a Hexadecimal number
155155
...
156156
}
@@ -197,7 +197,7 @@ Example code:
197197
flash.begin();
198198
uint32_t cap = flash.getCapacity(); // Function is used to get the unique ID and store it as
199199
// a 32 bit unsigned integer
200-
Serial.print("Capacity: ");
200+
Serial.print(F("Capacity: "));
201201
Serial.println(cap); // The unique ID is printed as a decimal number - in bytes
202202
...
203203
}
@@ -253,7 +253,7 @@ Example code:
253253
flash.begin();
254254
uint32_t maxPage = flash.getMaxPage(); // Function is used to get the number of pages and store it as
255255
// a 32 bit unsigned integer
256-
Serial.print("Maximum pages: ");
256+
Serial.print(F("Maximum pages: "));
257257
Serial.println(maxPage); // The number of pages is printed
258258
...
259259
}

docs/pages/SPIFlash/readArray.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,16 @@ Example code:
5858
void setup() {
5959
flash.begin();
6060
_address = flash.getAddress(sizeof(dataIn));
61-
Serial.print("Address = ");
61+
Serial.print(F("Address = "));
6262
Serial.println(_address);
6363
6464
dataIn = flash.readByteArray(_address, dataIn, _bufferSize);
6565
// This function should be changed depending on the type of data being read from the flash memory
6666
67-
Serial.print("Data read: ");
67+
Serial.print(F("Data read: "));
6868
for (uint8_t i = 0; i < _bufferSize; i++) {
6969
Serial.print(dataIn[i]);
70-
Serial.print(", ");
70+
Serial.print(F(", "));
7171
}
7272
Serial.println();
7373

docs/pages/SPIFlash/readDataIndependent.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ Example code:
5454
void setup() {
5555
flash.begin();
5656
_address = flash.getAddress(sizeof(dataIn));
57-
Serial.print("Address = ");
57+
Serial.print(F("Address = "));
5858
Serial.println(_address);
59-
Serial.print("readAnything()");
59+
Serial.print(F("readAnything()"));
6060
if (!flash.readAnything(_address, dataIn)) { // Function is used to get the data from
6161
// address '_address' and save it to the struct 'test'
62-
Serial.println("Failed");
62+
Serial.println(F("Failed"));
6363
}
6464
else {
65-
Serial.println("Passed");
65+
Serial.println(F("Passed"));
6666
}
6767
...
6868
}

docs/pages/SPIFlash/readSingleVariable.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ Example code:
6262
_address = flash.getAddress(sizeof(dataIn));
6363
dataIn = flash.readByte(_address); // This function should be changed depending on the type of data
6464
// being read from the flash memory
65-
Serial.print("Address = ");
65+
Serial.print(F("Address = "));
6666
Serial.println(_address);
67-
Serial.print("Data read : 0x");
67+
Serial.print(F("Data read : 0x"));
6868
Serial.println(dataIn, HEX);
6969
}
7070

docs/pages/SPIFlash/writeArray.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,16 @@ Example code:
5353
void setup() {
5454
flash.begin();
5555
_address = flash.getAddress(sizeof(dataIn));
56-
Serial.print("Address = ");
56+
Serial.print(F("Address = "));
5757
Serial.println(_address);
5858
59-
Serial.print("Data write: ");
59+
Serial.print(F("Data write: "));
6060
if (flash.writeByteArray(_address, dataOut, _bufferSize) {
6161
// This function should be changed depending on the type of data being written to the flash memory
62-
Serial.println ("Successful");
62+
Serial.println(F("Successful"));
6363
}
6464
else {
65-
Serial.println("Failed");
65+
Serial.println(F("Failed"));
6666
}
6767
6868
}

docs/pages/SPIFlash/writeDataIndependent.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,16 @@ Example code:
5454
void setup() {
5555
flash.begin();
5656
_address = flash.getAddress(sizeof(dataIn));
57-
Serial.print("Address = ");
57+
Serial.print(F("Address = "));
5858
Serial.println(_address);
5959
60-
Serial.print("writeAnything()");
60+
Serial.print(F("writeAnything()"));
6161
if (!flash.writeAnything(_address, dataOut)) { // Function is used to write the data to
6262
// address '_address'
63-
Serial.println("Failed");
63+
Serial.println(F("Failed"));
6464
}
6565
else {
66-
Serial.println("Passed");
66+
Serial.println(F("Passed"));
6767
}
6868
...
6969
}

docs/pages/SPIFlash/writeSingleVariable.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,16 @@ Example code:
6969
void setup() {
7070
flash.begin();
7171
_address = flash.getAddress(sizeof(dataIn));
72-
Serial.print("Address = ");
72+
Serial.print(F("Address = "));
7373
Serial.println(_address);
7474
75-
Serial.print("Data write ");
75+
Serial.print(F("Data write "));
7676
// This function should be changed depending on the type of data being written to the flash memory
7777
if (flash.writeStr(_address, dataOut)) {
78-
Serial.println("successful");
78+
Serial.println(F("successful"));
7979
}
8080
else {
81-
Serial.println("failed");
81+
Serial.println(F("failed"));
8282
}
8383
}
8484

0 commit comments

Comments
 (0)