#ifndef LCD_DRIVER_H #define LCD_DRIVER_H #include "pico/stdlib.h" #include "hardware/spi.h" // SPIピン定義 (現状維持) #define SPI_PORT spi0 #define PIN_SCK 18 #define PIN_MOSI 19 #define PIN_MISO 16 #define PIN_CS 17 #define PIN_DC 20 #define PIN_RST 21 // タッチパネル用 (現状維持) #define PIN_T_CS 16 #define PIN_T_IRQ 16 class LCD_Driver { public: void init(); void writeCommand(uint8_t cmd); void writeData(uint8_t data); void setAddrWindow(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1); void drawHSBBackground(); }; bool is_touched(); void update_hue_on_tap(); #endif