#include <modm/driver/display/is31fl3733.hpp>
|
using | LedBinaryData = uint16_t[SizeX] |
|
|
enum | Addr : uint8_t { GND = 0b00,
SCL = 0b01,
SDA = 0b10,
VCC = 0b11
} |
|
enum | Register : uint16_t {
LED_ON_OFF = 0x8000,
LED_OPEN = 0x8018,
LED_SHORT = 0x8030,
PWM = 0x8100,
AUTO_BREATH_MODE = 0x8200,
CONFIGURATION = 0x8300,
GLOBAL_CURRENT_CONTROL = 0x8301,
ABM_1 = 0x8302,
ABM_2 = 0x8306,
ABM_3 = 0x830A,
TIME_UPDATE = 0x830E,
SW_PULL_UP = 0x830F,
CS_PULL_DOWN = 0x8310,
RESET = 0x8311,
COMMAND = 0xFD,
COMMAND_WRITE_LOCK = 0xFE,
INTERRUPT_MASK = 0xF0,
INTERRUPT_STATUS = 0xF1
} |
|
enum | Resistor : uint8_t {
None = 0,
kOhm_0_5 = 1,
kOhm_1 = 2,
kOhm_2 = 3,
kOhm_4 = 4,
kOhm_8 = 5,
kOhm_16 = 6,
kOhm_32 = 7
} |
|
|
static constexpr uint8_t | addr (Addr addr2=Addr::GND, Addr addr1=Addr::GND) |
| Available I2C addresses.
|
|
|
static constexpr uint8_t | SizeX {12} |
|
static constexpr uint8_t | SizeY {16} |
|
|
static constexpr bool | hasPage (Register reg) |
|
static constexpr uint8_t | getPage (Register reg) |
|
|
static constexpr uint8_t | LED_ON_OFF_size = 0x18 |
|
static constexpr uint8_t | LED_OPEN_size = LED_ON_OFF_size |
|
static constexpr uint8_t | LED_SHORT_size = LED_ON_OFF_size |
|
static constexpr uint8_t | PWM_size = 0xC0 |
|
static constexpr uint8_t | AUTO_BREATH_MODE_size = PWM_size |
|
template<class I2cMaster>
class modm::is31fl3733< I2cMaster >
- Author
- Niklas Hauser
Attaches a configuration handler, which is called before a transaction, whenever the configuration has to be changed.
Run the resumable function.
You need to implement this method in you subclass yourself.
- Returns
- >
NestingError
if still running, <=NestingError
if it has finished.
- Returns
- the nesting depth in the current resumable function, or -1 if called outside any resumable function
- Returns
true
if a resumable function is running at the current nesting level, else false
- Returns
true
when transaction is busy.
- Return Values
-
true | device responds to address |
false | no device with address found |
Sets a new address of the slave device.
- Parameters
-
address | the slave address not yet shifted left (address < 128). |
- Returns
true
when transaction did not return an error.
The documentation for this class was generated from the following file: