#include "pico/stdlib.h"
#include "lcd_display.hpp"

int main() {
    // Initialize stdlib and GPIO pins
    stdio_init_all();

    // LCD pin setup (adjust pin numbers to match your setup)
    const uint DATA_PIN = 7;    // Example GPIO pin for data
    const uint RS_PIN = 5;      // Example GPIO pin for Register Select
    const uint EN_PIN = 6;      // Example GPIO pin for Enable
    const uint CHAR_WIDTH = 16; // Example character width
    const uint NUM_LINES = 2;   // Example number of display lines

    // Create an LCD display control object
    LCDdisplay lcd_ctrl(DATA_PIN, RS_PIN, EN_PIN, CHAR_WIDTH, NUM_LINES);

    // Initialize the LCD display
    lcd_ctrl.init();

    // Main loop
    while (true) {
        // Display first message
        lcd_ctrl.clear();
        lcd_ctrl.setCursor(0, 0);
        lcd_ctrl.print("HELLO WORLD - Nabin");
        sleep_ms(2500); // Display for 2.5 seconds

        // Display second message
        lcd_ctrl.clear();
        lcd_ctrl.toggleCursor(); // Toggle cursor visibility
        lcd_ctrl.print("0123456789ABCDEF BYE");
        sleep_ms(2500); // Display for 2.5 seconds

        // Optionally toggle cursor visibility back
        lcd_ctrl.toggleCursor();
    }

    return 0;
}
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT