Loading...
Searching...
No Matches
aip31068_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2020 Freie Universität Berlin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include <stdbool.h>
19
20#include "periph/i2c.h"
21
22#include "aip31068_regs.h"
23
24#ifdef __cplusplus
25extern "C"
26{
27#endif
28
33#ifndef AIP31068_PARAM_I2C_DEV
35#define AIP31068_PARAM_I2C_DEV I2C_DEV(0)
36#endif
37
38#ifndef AIP31068_PARAM_I2C_ADDR
40#define AIP31068_PARAM_I2C_ADDR (0x7c >> 1)
41#endif
42
43#ifndef AIP31068_PARAMS
44#define AIP31068_PARAMS \
45 { \
46 .i2c_dev = AIP31068_PARAM_I2C_DEV, \
47 .i2c_addr = AIP31068_PARAM_I2C_ADDR, \
48 .row_count = 2, \
49 .col_count = 16, \
50 .font_size = FONT_SIZE_5x8, \
51 .bit_mode = BITMODE_8_BIT, \
52 }
53#endif /* AIP31068_PARAMS */
55
60{
61 AIP31068_PARAMS
62};
63
64#ifdef __cplusplus
65}
66#endif
67
static const aip31068_params_t aip31068_params[]
Allocate some memory to store the actual configuration.
Register definitions for the AIP31068 I2C LCD controller.
Low-level I2C peripheral driver interface definition.
AIP31068 device initialization parameters.
Definition aip31068.h:76