gbmanager/gbmanager.cpp

24 lines
439 B
C++
Raw Normal View History

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;
constexpr uint8_t I2C_ADDR = 0x27;
int main() {
// Enable UART so we can print status output
2022-05-30 14:10:48 +02:00
stdio_init_all();
2022-05-30 16:09:42 +02:00
uint8_t data = 0;
int ret{0};
auto myLCD = LCD(i2c1, I2C_SDA_PIN, I2C_SCL_PIN, I2C_ADDR);
myLCD.backlight_on();
std::cout << "FINISHED!" << std::endl;
2022-05-30 14:10:48 +02:00
}