File tree Expand file tree Collapse file tree 8 files changed +64
-24
lines changed
examples/DEVFULL_performance Expand file tree Collapse file tree 8 files changed +64
-24
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 :
419 - uno
5- - due
6- - zero
7- - leonardo
20+ # - due
21+ # - zero
22+ # - leonardo
823 - m4
924 - esp32
1025 - esp8266
11- - mega2560
26+ # - mega2560
27+ - rpipico
28+
Original file line number Diff line number Diff line change 1+ # Change Log DEVFULL
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.2] - 2022-10-31
10+ - add changelog.md
11+ - add rp2040 to build-CI
12+
13+ ## [ 0.1.1] - 2022-07-01
14+ - add limits.h INT_MAX to support 32 bit int.
15+
16+ ## [ 0.1.0] - 2022-03-11
17+ - initial version
18+
Original file line number Diff line number Diff line change 22//
33// FILE: DEVFULL.h
44// AUTHOR: Rob Tillaart
5- // VERSION: 0.1.1
5+ // VERSION: 0.1.2
66// PURPOSE: Arduino library for a /dev/full stream - useful for testing / debugging.
77// URL: https://github.com/RobTillaart/DEVFULL
88//
9- // HISTORY:
10- // 0.1.0 2022-03-11 initial version.
11- // 0.1.1 2022-07-01 add limits.h INT_MAX to support 32 bit int.
12-
9+ // HISTORY: see changelog.md
1310
1411
1512#include " Arduino.h"
1613#include " limits.h"
1714
1815
19- #define DEVFULL_LIB_VERSION (F(" 0.1.1 " ))
16+ #define DEVFULL_LIB_VERSION (F(" 0.1.2 " ))
2017
2118
2219#ifndef ENOSPC
@@ -34,23 +31,23 @@ class DEVFULL : public Stream
3431public:
3532 DEVFULL ()
3633 {
37- setTimeout (0 ); // no timeout.
34+ setTimeout (0 ); // no timeout.
3835 };
3936
4037 int available () { return INT_MAX; };
4138 int peek () { return 0 ; };
4239 int read () { return 0 ; };
43- void flush () { return ; }; // placeholder to keep build CI happy
40+ void flush () { return ; }; // placeholder to keep build CI happy
4441
4542 size_t write (const uint8_t data)
4643 {
47- dummy = data; // keep compiler happy
44+ dummy = data; // keep compiler happy
4845 return -28 ;
4946 };
5047
5148 size_t write ( const uint8_t *buffer, size_t size)
5249 {
53- dummy = buffer[size-1 ]; // keep compiler happy
50+ dummy = buffer[size-1 ]; // keep compiler happy
5451 return -28 ;
5552 };
5653
Original file line number Diff line number Diff line change @@ -23,12 +23,6 @@ This causes a return value of n x -28 ==> mostly a number in the 65xxx range
2323See - https://en.wikipedia.org/wiki//dev/full
2424
2525
26- ## Versions
27-
28- - 0.1.0 is a minimal implementation.
29- - 0.1.1 implements INT_MAX
30-
31-
3226## Interface
3327
3428- ** DEVFULL()** constructor, sets the timeout to zero.
@@ -62,4 +56,3 @@ See examples.
6256- improve code
6357 - test different platforms.
6458
65-
Original file line number Diff line number Diff line change 33// AUTHOR: Rob Tillaart
44// PURPOSE: demo
55//
6- // this shows that a print can be split up in many write calls
6+ // this shows that a print can be split up in many write calls
77// that all return -28. Print will add these together.
88// (is a limit of the Arduino environment)
99
Original file line number Diff line number Diff line change 1+ // test run on IDE 1.8.19 UNO
2+ // test run while working on improvements for 0.1.2)
3+
4+ DEVFULL_performance.ino
5+ DEVFULL_LIB_VERSION: 0.1.2
6+ PRINTLN: 20 2
7+ WRITE: 4 1
8+ long: 356 1
9+ float0: 64 1
10+ float1: 596 7
11+ float2: 1096 12
12+ float3: 1612 17
13+ float4: 2116 22
14+
15+
Original file line number Diff line number Diff line change 1515 "type" : " git" ,
1616 "url" : " https://github.com/RobTillaart/DEVFULL.git"
1717 },
18- "version" : " 0.1.1 " ,
18+ "version" : " 0.1.2 " ,
1919 "license" : " MIT" ,
2020 "frameworks" : " arduino" ,
2121 "platforms" : " *" ,
Original file line number Diff line number Diff line change 11name =DEVFULL
2- version =0.1.1
2+ version =0.1.2
33author =Rob Tillaart <
[email protected] >
44maintainer =Rob Tillaart <
[email protected] >
55sentence =Arduino library for a /dev/full stream
You can’t perform that action at this time.
0 commit comments