2022-05-30 14:10:48 +02:00
|
|
|
#include <iostream>
|
|
|
|
|
2022-05-30 16:09:42 +02:00
|
|
|
#include "hardware/i2c.h"
|
2022-05-30 14:10:48 +02:00
|
|
|
#include "pico/stdlib.h"
|
|
|
|
|
2022-05-30 16:09:42 +02:00
|
|
|
#include "lcd.h"
|
|
|
|
|
|
|
|
constexpr uint I2C_SDA_PIN = 26;
|
|
|
|
constexpr uint I2C_SCL_PIN = 27;
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
// Enable UART so we can print status output
|
2022-05-30 14:10:48 +02:00
|
|
|
stdio_init_all();
|
|
|
|
|
2022-05-30 21:36:56 +02:00
|
|
|
auto myLCD = LCD(i2c1, I2C_SDA_PIN, I2C_SCL_PIN);
|
2022-05-30 16:09:42 +02:00
|
|
|
|
2022-05-30 21:33:48 +02:00
|
|
|
myLCD.sendString("Hallo, Welt");
|
|
|
|
myLCD.clear();
|
2022-05-30 21:36:56 +02:00
|
|
|
myLCD.sendString("Hallo, Wölt!");
|
2022-05-30 14:10:48 +02:00
|
|
|
}
|