lcd freq increased
(following the Python imlementation)
This commit is contained in:
parent
679ccd95a3
commit
c56c52e458
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ constexpr int LCD_ENABLE_BIT = 0x04;
|
||||||
LCD::LCD(i2c_inst_t *i2c, const uint gpio_sda, const uint gpio_scl,
|
LCD::LCD(i2c_inst_t *i2c, const uint gpio_sda, const uint gpio_scl,
|
||||||
const uint8_t i2c_addr, uint8_t num_cols, uint8_t num_lines)
|
const uint8_t i2c_addr, uint8_t num_cols, uint8_t num_lines)
|
||||||
: i2c{i2c}, i2c_addr{i2c_addr}, num_cols{num_cols}, num_lines{num_lines} {
|
: i2c{i2c}, i2c_addr{i2c_addr}, num_cols{num_cols}, num_lines{num_lines} {
|
||||||
i2c_init(i2c, 100 * 1000);
|
i2c_init(i2c, 400 * 1000);
|
||||||
gpio_set_function(gpio_sda, GPIO_FUNC_I2C);
|
gpio_set_function(gpio_sda, GPIO_FUNC_I2C);
|
||||||
gpio_set_function(gpio_scl, GPIO_FUNC_I2C);
|
gpio_set_function(gpio_scl, GPIO_FUNC_I2C);
|
||||||
gpio_pull_up(gpio_sda);
|
gpio_pull_up(gpio_sda);
|
||||||
|
|
Loading…
Reference in a new issue