|
Loom 4 v4.5
Arduino library for Internet of Things Rapid Prototyping in environmental sensing
|
#include <Loom_OLED.h>


Public Types | |
| enum class | Version { FEATHERWING , BREAKOUT } |
| enum class | Format { FOUR , EIGHT , SCROLL } |
| enum class | FreezeType { DISABLE , DATA , SCROLL } |
Public Member Functions | |
| Loom_OLED (Manager &man, const bool enable_rate_filter=true, const uint16_t min_filter_delay=300, const Version type=Version::FEATHERWING, const byte reset_pin=A2, const Format display_format=Format::SCROLL, const uint16_t scroll_duration=6000, const byte freeze_pin=10, const FreezeType freeze_behavior=FreezeType::SCROLL) | |
Public Member Functions inherited from Module | |
| Module (const char *modName) | |
| void | setModuleName (const char *modName) |
| virtual const char * | getModuleName () |
| virtual void | printModuleName (const char *message) |
| virtual void | initialize ()=0 |
| virtual void | measure ()=0 |
| virtual void | package ()=0 |
| virtual void | power_up ()=0 |
| virtual void | power_down ()=0 |
| virtual void | display_data () |
Protected Member Functions | |
| void | power_up () override |
| void | power_down () override |
| void | measure () override |
| void | initialize () override |
| void | package () override |
| void | display_data () override |
Additional Inherited Members | |
Public Attributes inherited from Module | |
| bool | moduleInitialized = true |
| int | module_address = -1 |
Class for driving the OLED display
|
strong |
Different formats to display information in
|
strong |
Different freeze behaviors
|
strong |
Different forms of the OLED display
| Loom_OLED::Loom_OLED | ( | Manager & | man, |
| const bool | enable_rate_filter = true, |
||
| const uint16_t | min_filter_delay = 300, |
||
| const Version | type = Version::FEATHERWING, |
||
| const byte | reset_pin = A2, |
||
| const Format | display_format = Format::SCROLL, |
||
| const uint16_t | scroll_duration = 6000, |
||
| const byte | freeze_pin = 10, |
||
| const FreezeType | freeze_behavior = FreezeType::SCROLL |
||
| ) |
Construct a new OLED interface
| man | Reference to the manager instance |
| enable_rate_filter | Whether or not to impose maximum update rate |
| min_filter_delay | Minimum update delay, if enable_rate_filter enabled |
| type | Which version of the OLED is being used (Version::FEATHERWING or Version::BREAKOUT) |
| reset_pin | Which pin should be used for reseting. Only applies to breakout version |
| display_format | How to display the key value pairs of a bundle (Format::Scroll, Format::FOUR or Format::EIGHT) |
| scroll_duration | The time (ms) to complete full scroll cycle if display_format is SCROLL |
| freeze_pin | Which pin should be used to pause the display |
| freeze_behavior | How freezing the display should behave (FreezeType::SCROLL, FreezeType::DATA or FreezeType::DISABLE) |
|
overrideprotectedvirtual |
Reimplemented from Module.
|
overrideprotectedvirtual |
Implements Module.
|
inlineoverrideprotectedvirtual |
Implements Module.
|
inlineoverrideprotectedvirtual |
Implements Module.
|
inlineoverrideprotectedvirtual |
Implements Module.
|
inlineoverrideprotectedvirtual |
Implements Module.