Skip to content
C
580 B
Raw Blame
#ifndef __I2CLCD_H__
#define __I2CLCD_H__

#include <Arduino.h>
#include <SHI2CLcdBase.h>

class SHI2CLcd : public SHI2CLcdBase {
private:
	LiquidCrystal_I2C * I2CLCD;

public:
	void begin(LiquidCrystal_I2C * I2CLCDInstance, int width, int height, bool test) {
		// SHI2CLcdBase::begin(width, height, test);
		I2CLCD = I2CLCDInstance;
		I2CLCD->init();
		I2CLCD->backlight();
		I2CLCD->print("Hello world...");
		if(!test) {
			I2CLCD->clear();
		}
	}


	 void setCursor(int x, int y){
		 I2CLCD->setCursor(x, y);
	 }

	 void print(String s) {
		 I2CLCD->print(s);
	 }

};

#endif