Skip to content

Commit 08e1246

Browse files
committed
0.1.5 DEVNULL
1 parent 955c940 commit 08e1246

File tree

7 files changed

+79
-32
lines changed

7 files changed

+79
-32
lines changed

libraries/DEVNULL/.arduino-ci.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
platforms:
2+
rpipico:
3+
board: rp2040:rp2040:rpipico
4+
package: rp2040:rp2040
5+
gcc:
6+
features:
7+
defines:
8+
- ARDUINO_ARCH_RP2040
9+
warnings:
10+
flags:
11+
12+
packages:
13+
rp2040:rp2040:
14+
url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
15+
116
compile:
217
# Choosing to run compilation tests on 2 different Arduino platforms
318
platforms:
@@ -7,5 +22,7 @@ compile:
722
# - leonardo
823
- m4
924
- esp32
10-
# - esp8266
11-
# - mega2560
25+
- esp8266
26+
# - mega2560
27+
- rpipico
28+

libraries/DEVNULL/CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Change Log DEVNULL
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](http://keepachangelog.com/)
6+
and this project adheres to [Semantic Versioning](http://semver.org/).
7+
8+
9+
## [0.1.5] - 2022-10-31
10+
- add changelog.md
11+
- add rp2040 to build-CI
12+
13+
14+
## [0.1.4] - 2022-09-21
15+
- split up .h in .cpp and .h
16+
- add **lastByte()** to check last byte written.
17+
18+
## [0.1.3] - 2021-12-15
19+
- update library.json, license, minor edits
20+
21+
## [0.1.2] - 2021-11-24
22+
- update build-CI
23+
- add badges
24+
- sets the timeout for reading to 0. No need to wait longer with DEVNULL.
25+
this improves the **find(...)** calls substantially.
26+
- added **size_t write( const uint8_t \*buffer, size_t size)** for faster string processing.
27+
28+
## [0.1.1] - 2020-12-18
29+
- add Arduino-CI.
30+
31+
32+
## [0.1.0] - 2020-06-23
33+
- initial version
34+

libraries/DEVNULL/DEVNULL.cpp

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
//
22
// FILE: DEVNULL.cpp
33
// AUTHOR: Rob Tillaart
4-
// VERSION: 0.1.4
4+
// VERSION: 0.1.5
55
// PURPOSE: Arduino library for a /dev/null stream - useful for testing
66
// URL: https://github.com/RobTillaart/DEVNULL
77
//
8-
// HISTORY:
9-
// 0.1.0 2020-06-23 initial version.
10-
// 0.1.1 2020-12-18 add Arduino-CI.
11-
// 0.1.2 2021-11-24 update build-CI, badges, etc.
12-
// added write(data, length) + _timeOut.
13-
// 0.1.3 2021-12-15 update library.json, license, minor edits
14-
// 0.1.4 2022-09-21 split up .h in .cpp and .h
15-
// add last() to check last byte written to.
8+
// HISTORY: see changelog.md
9+
1610

1711

1812
#include "DEVNULL.h"
@@ -23,11 +17,26 @@ DEVNULL::DEVNULL()
2317
_bottomLessPit = -1; // nothing in the pit
2418
}
2519

26-
int DEVNULL::available() { return 0; };
27-
int DEVNULL::peek() { return EOF; };
28-
int DEVNULL::read() { return EOF; };
20+
int DEVNULL::available()
21+
{
22+
return 0;
23+
};
24+
25+
int DEVNULL::peek()
26+
{
27+
return EOF;
28+
};
29+
30+
int DEVNULL::read()
31+
{
32+
return EOF;
33+
};
34+
2935
// placeholder to keep CI happy
30-
void DEVNULL::flush() { return; };
36+
void DEVNULL::flush()
37+
{
38+
return;
39+
};
3140

3241
size_t DEVNULL::write(const uint8_t data)
3342
{

libraries/DEVNULL/DEVNULL.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
//
33
// FILE: DEVNULL.h
44
// AUTHOR: Rob Tillaart
5-
// VERSION: 0.1.4
5+
// VERSION: 0.1.5
66
// PURPOSE: Arduino library for a /dev/null stream - useful for testing
77
// URL: https://github.com/RobTillaart/DEVNULL
88

99

1010
#include "Arduino.h"
1111

12-
#define DEVNULL_LIB_VERSION (F("0.1.4"))
12+
#define DEVNULL_LIB_VERSION (F("0.1.5"))
1313

1414

1515
class DEVNULL : public Stream

libraries/DEVNULL/README.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,6 @@ with only a return 0; (or at least **print(Type)** as the **println(T)** would o
3030
call once extra for the "\n".
3131

3232

33-
## Versions
34-
35-
#### 0.1.2
36-
37-
- sets the timeout for reading to 0. No need to wait longer with DEVNULL.
38-
this improves the **find(...)** calls substantially.
39-
- added **size_t write( const uint8_t \*buffer, size_t size)** for faster string processing.
40-
41-
#### 0.1.4
42-
43-
- add **lastByte()** to check last byte written.
44-
- split of .cpp
45-
4633
## Interface
4734

4835
- **DEVNULL()** constructor, sets the timeout to zero.

libraries/DEVNULL/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/DEVNULL.git"
1717
},
18-
"version": "0.1.4",
18+
"version": "0.1.5",
1919
"license": "MIT",
2020
"frameworks": "arduino",
2121
"platforms": "*",

libraries/DEVNULL/library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=DEVNULL
2-
version=0.1.4
2+
version=0.1.5
33
author=Rob Tillaart <[email protected]>
44
maintainer=Rob Tillaart <[email protected]>
55
sentence=Arduino library for a /dev/null stream

0 commit comments

Comments
 (0)