GY-63_MS5611/libraries/PrintString
2024-04-13 10:35:57 +02:00
..
.github bulk update GitHub actions 2024-04-13 10:35:57 +02:00
examples/printString 0.2.5 PrintString 2024-04-11 13:26:27 +02:00
test 0.2.3 PrintString 2022-11-22 17:02:48 +01:00
.arduino-ci.yml 0.2.3 PrintString 2022-11-22 17:02:48 +01:00
CHANGELOG.md 0.2.5 PrintString 2024-04-11 13:26:27 +02:00
keywords.txt 0.2.1 PrintString 2021-11-14 17:19:48 +01:00
library.json 0.2.5 PrintString 2024-04-11 13:26:27 +02:00
library.properties 0.2.5 PrintString 2024-04-11 13:26:27 +02:00
LICENSE 0.2.5 PrintString 2024-04-11 13:26:27 +02:00
PrintString.h 0.2.5 PrintString 2024-04-11 13:26:27 +02:00
README.md 0.2.5 PrintString 2024-04-11 13:26:27 +02:00

Arduino CI Arduino-lint JSON check GitHub issues

License: MIT GitHub release PlatformIO Registry

PrintString

Arduino library to print to a String.

Description

PrintString is a class that buffers a number of print statements in a String. This String can be requested to process later.

  • buffer slowly generated data, and send it with minimum time between bytes e.g. to maximize packets for Ethernet.
  • print to buffer to see how many chars the output is; use to prevent "display line overflow" (e.g. floats)

Interface

#include "PrintString.h"
  • PrintString() constructor.
  • size_t write(uint8_t c) workhorse I of Print interface.
  • size_t write(uint8_t * str, uint8_t length) workhorse II of Print interface.
  • void clear() wipes the internal String buffer
  • int size() current usage of the buffer.
  • String getString() to access the buffer.

Operational

See examples.

Future

Must

  • documentation

Should

  • keep in sync with PrintCharArray class
  • testing
  • examples
    • add new ones
    • rename examples
  • add functions like repeat(char c) to inject e.g. 7 spaces etc.
  • add error flag

Could

  • PRINTSTRING_LIB_VERSION

Wont

Support

If you appreciate my libraries, you can support the development and maintenance. Improve the quality of the libraries by providing issues and Pull Requests, or donate through PayPal or GitHub sponsors.

Thank you,