GY-63_MS5611/libraries/DEVNULL
2021-04-07 13:31:22 +02:00
..
.github/workflows update libs 2021-04-07 13:31:22 +02:00
examples/DEVNULL_demo 2021-01-29 2021-01-29 12:31:58 +01:00
test 2021-01-29 2021-01-29 12:31:58 +01:00
.arduino-ci.yml 2021-01-29 2021-01-29 12:31:58 +01:00
DEVNULL.h 2021-01-29 2021-01-29 12:31:58 +01:00
keywords.txt 2021-01-29 2021-01-29 12:31:58 +01:00
library.json 2021-01-29 2021-01-29 12:31:58 +01:00
library.properties 2021-01-29 2021-01-29 12:31:58 +01:00
LICENSE 2021-01-29 2021-01-29 12:31:58 +01:00
README.md 2021-01-29 2021-01-29 12:31:58 +01:00

Arduino CI License: MIT GitHub release

DEVNULL

Arduino library for a /dev/null stream

Description

The library implements a stream class that mimics the /dev/null device of a linux system. You can write everything to it, you can never read data from it as it always returns EOF (end of file);

THe 0.1.0 version is a minimal implementation that can be optimized. Now it only implements the write() call and e.g. a float is still converted to individual characters that are send one after another. Strings and text send every byte.

The advantage is that printing takes time and e.g. one can use it to measure the print class performance.

Performance can be increased by implementing all methods of the print interface with only a return 0;

Operation

use with care

See example