File tree Expand file tree Collapse file tree 7 files changed +79
-32
lines changed
Expand file tree Collapse file tree 7 files changed +79
-32
lines changed Original file line number Diff line number Diff line change 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+
116compile :
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+
Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff line change 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
3241size_t DEVNULL::write (const uint8_t data)
3342{
Original file line number Diff line number Diff line change 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
1515class DEVNULL : public Stream
Original file line number Diff line number Diff line change @@ -30,19 +30,6 @@ with only a return 0; (or at least **print(Type)** as the **println(T)** would o
3030call 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.
Original file line number Diff line number Diff line change 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" : " *" ,
Original file line number Diff line number Diff line change 11name =DEVNULL
2- version =0.1.4
2+ version =0.1.5
33author =Rob Tillaart <
[email protected] >
44maintainer =Rob Tillaart <
[email protected] >
55sentence =Arduino library for a /dev/null stream
You can’t perform that action at this time.
0 commit comments