mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
0.2.3 PrintString
This commit is contained in:
parent
27e06c85fd
commit
91689da35e
@ -1,5 +1,21 @@
|
||||
platforms:
|
||||
rpipico:
|
||||
board: rp2040:rp2040:rpipico
|
||||
package: rp2040:rp2040
|
||||
gcc:
|
||||
features:
|
||||
defines:
|
||||
- ARDUINO_ARCH_RP2040
|
||||
warnings:
|
||||
flags:
|
||||
|
||||
packages:
|
||||
rp2040:rp2040:
|
||||
url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
|
||||
|
||||
compile:
|
||||
# Choosing to run compilation tests on 2 different Arduino platforms
|
||||
# selected only those that work
|
||||
platforms:
|
||||
- uno
|
||||
- due
|
||||
@ -9,6 +25,7 @@ compile:
|
||||
- esp32
|
||||
# - esp8266
|
||||
# - mega2560
|
||||
- rpipico
|
||||
# Declaring Dependent Arduino Libraries (to be installed via the Arduino Library Manager)
|
||||
libraries:
|
||||
- "XMLWriter"
|
38
libraries/PrintString/CHANGELOG.md
Normal file
38
libraries/PrintString/CHANGELOG.md
Normal file
@ -0,0 +1,38 @@
|
||||
# Change Log printString
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
||||
and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
|
||||
## [0.2.3] - 2022-11-22
|
||||
- add changelog.md
|
||||
- add RP2040 to build-CI
|
||||
-
|
||||
|
||||
|
||||
## [0.2.2] - 2021-12-24
|
||||
- update library.json
|
||||
- update license
|
||||
- minor edits
|
||||
|
||||
## [0.2.1] - 2021-11-14
|
||||
- update Arduino-CI
|
||||
- update readme.md
|
||||
- add write(char \* str, uint8_t length) Print interface.
|
||||
|
||||
## [0.2.0] - 2021-01-06
|
||||
- add Arduino-CI + unit test
|
||||
|
||||
----
|
||||
|
||||
## [0.1.2] - 2020-06-19
|
||||
- fix library.json
|
||||
|
||||
## [0.1.1] - 2020-04-26
|
||||
- added size
|
||||
|
||||
## [0.1.0] - 2017-12-09
|
||||
- initial version
|
||||
|
@ -2,25 +2,17 @@
|
||||
//
|
||||
// FILE: PrintString.h
|
||||
// AUTHOR: Rob Tillaart
|
||||
// VERSION: 0.2.2
|
||||
// VERSION: 0.2.3
|
||||
// PURPOSE: Class that captures prints into a String
|
||||
// DATE: 2017-12-09
|
||||
// URL: https://github.com/RobTillaart/PrintString
|
||||
//
|
||||
// 0.1.0 2017-12-09 initial version
|
||||
// 0.1.1 2020-04-26 added size
|
||||
// 0.1.2 2020-06-19 fix library.json
|
||||
// 0.2.0 2021-01-06 add Arduino-CI + unit test
|
||||
// 0.2.1 2021-11-14 update Arduino-CI, readme.md
|
||||
// add write(char * str, uint8_t length) Print interface.
|
||||
// 0.2.2 2021-12-24 update library.json, license, minor edits
|
||||
|
||||
|
||||
#include "Arduino.h"
|
||||
#include "Print.h"
|
||||
|
||||
|
||||
#define PRINTSTRING_VERSION (F("0.2.2"))
|
||||
#define PRINTSTRING_VERSION (F("0.2.3"))
|
||||
|
||||
|
||||
class PrintString: public Print
|
||||
|
@ -22,7 +22,9 @@ This String can be requested to process later.
|
||||
use to prevent "display line overflow"
|
||||
(e.g. floats)
|
||||
|
||||
There is a relation to https://github.com/RobTillaart/PrintCharArray and https://github.com/RobTillaart/PrintSize.
|
||||
This library is related to
|
||||
- https://github.com/RobTillaart/PrintCharArray
|
||||
- https://github.com/RobTillaart/PrintSize.
|
||||
|
||||
|
||||
## Interface
|
||||
|
@ -15,7 +15,7 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/RobTillaart/PrintString.git"
|
||||
},
|
||||
"version": "0.2.2",
|
||||
"version": "0.2.3",
|
||||
"license": "MIT",
|
||||
"frameworks": "arduino",
|
||||
"platforms": "*",
|
||||
|
@ -1,5 +1,5 @@
|
||||
name=PrintString
|
||||
version=0.2.2
|
||||
version=0.2.3
|
||||
author=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
sentence=Library to capture prints into a String.
|
||||
|
@ -56,7 +56,7 @@ unittest(test_constructor)
|
||||
|
||||
assertEqual(0, ps.size());
|
||||
|
||||
// not so nice but best I could do on short term
|
||||
// not so nice but best I could do on short term
|
||||
ps.print("Hello World");
|
||||
ps.getString().toCharArray(buffer, 100);
|
||||
fprintf(stderr, "%s\n", buffer);
|
||||
|
Loading…
x
Reference in New Issue
Block a user