2021-01-29 12:31:58 +01:00

32 lines
1.2 KiB
Markdown

[![Arduino CI](https://github.com/RobTillaart/DEVNULL/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci)
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/DEVNULL/blob/master/LICENSE)
[![GitHub release](https://img.shields.io/github/release/RobTillaart/DEVNULL.svg?maxAge=3600)](https://github.com/RobTillaart/DEVNULL/releases)
# 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