/*
 * start rewrite from:
 * https://github.com/adafruit/Adafruit-GFX-Library.git
 */
#ifndef _ARDUINO_ILI9486_18BIT_H_
#define _ARDUINO_ILI9486_18BIT_H_

#include <Arduino.h>
#include <Print.h>
#include "Arduino_ILI9486.h"
#include "../Arduino_TFT_18bit.h"

class Arduino_ILI9486_18bit : public Arduino_TFT_18bit
{
public:
  Arduino_ILI9486_18bit(Arduino_DataBus *bus, int8_t rst = GFX_NOT_DEFINED, uint8_t r = 0, bool ips = false);

  void begin(int32_t speed = GFX_NOT_DEFINED) override;
  void writeAddrWindow(int16_t x, int16_t y, uint16_t w, uint16_t h) override;
  void setRotation(uint8_t r) override;
  void invertDisplay(bool) override;
  void displayOn() override;
  void displayOff() override;

protected:
  void tftInit() override;

private:
};

#endif
