make mode invisible
This commit is contained in:
parent
d6d91f4cb2
commit
ba95eeebb9
1 changed files with 19 additions and 20 deletions
|
@ -6,8 +6,6 @@
|
||||||
#include "hardware/i2c.h"
|
#include "hardware/i2c.h"
|
||||||
#include "pico/stdlib.h"
|
#include "pico/stdlib.h"
|
||||||
|
|
||||||
enum class Mode { COMMAND, CHARACTER };
|
|
||||||
|
|
||||||
class LCD {
|
class LCD {
|
||||||
public:
|
public:
|
||||||
LCD(i2c_inst_t *i2c, const uint gpio_sda, const uint gpio_scl,
|
LCD(i2c_inst_t *i2c, const uint gpio_sda, const uint gpio_scl,
|
||||||
|
@ -19,6 +17,7 @@ public:
|
||||||
void clear();
|
void clear();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
enum class Mode { COMMAND, CHARACTER };
|
||||||
void sendByte(uint8_t val, Mode mode);
|
void sendByte(uint8_t val, Mode mode);
|
||||||
void toggleEnable(uint8_t val);
|
void toggleEnable(uint8_t val);
|
||||||
void i2cWriteByte(uint8_t val);
|
void i2cWriteByte(uint8_t val);
|
||||||
|
|
Loading…
Reference in a new issue