|
FastArduino v1.10
C++ library to build fast but small Arduino/AVR projects
|
Defines generic API for all display devices. More...
Classes | |
| class | DefaultVerticalFont7x5 |
| class | Display |
| Class handling drawing primitives on any display device. More... | |
| struct | DisplayDeviceTrait |
| Traits for display devices. More... | |
| struct | DisplayDeviceTrait_impl |
Default base class for all DisplayDeviceTrait. More... | |
| class | DrawContext |
Drawing Context passed to display devices low-level primitives set_pixel() and write_char(). More... | |
| class | DrawMode |
Drawing Mode to use for Display drawing primitives. More... | |
| class | Font |
| Generic font support class. More... | |
| class | LCD5110 |
| SPI device driver for Nokia 5110 display chip. More... | |
Enumerations | |
| enum class | Mode : uint8_t { COPY = 0 , XOR , AND , OR , NO_CHANGE = 0xFF } |
| Mode used when drawing pixels. More... | |
| enum class | Error : uint8_t { NO_ERROR = 0 , NO_FONT_SET , NO_GLYPH_FOUND , OUT_OF_DISPLAY , COORDS_INVALID , INVALID_GEOMETRY } |
Types of errors that can occur on Display instances. More... | |
| enum class | TemperatureCoefficient : uint8_t { TC0_1mV_K = 0x04 , TC1_9mV_K = 0x05 , TC2_17mV_K = 0x06 , TC3_24mV_K = 0x07 } |
| Possible temperature coeeficient that can be set on Nokia5110 display. More... | |
Defines generic API for all display devices.
Any actual device class must:
AbstractDisplayDevice template classprotected default constructorprotected drawing primitiveserase()set_pixel(x, y)is_valid_char_xy(x, y)write_char(x, y, glyph_ref)protected update(x1, y1, x2, y2) methodpublic APIA display device class becomes actually usable be defining a type as the Display template class instantiation for the display device class itself. The type such defined:
public APIpublic APIYou can see a concrete example for LCD5110 device:
LCD5110 is a usual SPIDevice subclass, since this device is based on SPI.
Then, actual use of LCD5110 is performed through Display<LCD5110<...>>.
Display devices are:
update() method that sends invalidated raster pixels to the device.update() method.
|
strong |
Mode used when drawing pixels.
This determines how the destination pixel color is affected by the source color.
Mode::COPY) require access to a raster buffer (either in SRAM or on the display chip itself).
|
strong |
Types of errors that can occur on Display instances.
|
strong |