32 lines
653 B
C++
32 lines
653 B
C++
/*
|
|
* ILI9341.hpp
|
|
*
|
|
* Created on: Feb 11, 2024
|
|
* Author: Gabriel
|
|
*/
|
|
|
|
#ifndef SRC_COMPONENTS_ILI9341_HPP_
|
|
#define SRC_COMPONENTS_ILI9341_HPP_
|
|
|
|
#include <inttypes.h>
|
|
#include <FreeRTOS.h>
|
|
#include <task.h>
|
|
#include "SPI_Peripheral.hpp"
|
|
#include "GPIO_Pin.hpp"
|
|
#include "PWM_Pin.hpp"
|
|
|
|
class ILI9341 {
|
|
public:
|
|
ILI9341(SPI_Peripheral* hSpi, GPIO_Pin* nssPin, GPIO_Pin* hResetPin, GPIO_Pin* hDcrsPin, PWM_Pin* hLedPwm);
|
|
virtual ~ILI9341();
|
|
int32_t init();
|
|
private:
|
|
SPI_Peripheral* hSpi;
|
|
GPIO_Pin* hNssPin;
|
|
GPIO_Pin* hResetPin;
|
|
GPIO_Pin* hDcrsPin;
|
|
PWM_Pin* hLedPwm;
|
|
};
|
|
|
|
#endif /* SRC_COMPONENTS_ILI9341_HPP_ */
|