Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 679 Bytes

array.rst

File metadata and controls

36 lines (22 loc) · 679 Bytes

Arrays

Introduction

Supports arrays of simple types, such as char, int, double, or POD structures (i.e. basic C structures).

:cpp:class:`FSTR::Array` is a class template, so requires an additional ElementType parameter:

#include <FlashString/Array.hpp>

DEFINE_FSTR_ARRAY(myDoubleArray, double,
   PI, 53.0, 100, 1e8, 47
);
Serial << "My double array: " << myDoubleArray << endl;

You can share Arrays between translation units by declaring it in a header:

DECLARE_FSTR_ARRAY(table);

Macros

.. doxygengroup:: fstr_array
   :content-only:

Classes

.. doxygenclass:: FSTR::Array
   :members: