text: /*
   * SSD13061.h
   *
   * Created: 06.12.2021 20:13:36
   *  Author: Rewolt
   */ 
  
  
  #ifndef SSD13061_H_
  #define SSD13061_H_
  
  #include "../TWI/TWI.h"
  
  enum SSD1306 
  {
  	SSD1306_ADDRESS				= 0x3C,
  	SSD1306_LCDWIDTH			= 128,
  	SSD1306_LCDHEIGHT			= 64,
  	SSD1306_SETCONTRAST			= 0x81,
  	SSD1306_DISPLAYALLON_RESUME	= 0xA4,
  	SSD1306_DISPLAYALLON		= 0xA5,
  	SSD1306_NORMALDISPLAY		= 0xA6,
  	SSD1306_INVERTDISPLAY		= 0xA7,
  	SSD1306_DISPLAYOFF			= 0xAE,
  	SSD1306_DISPLAYON			= 0xAF,
  	SSD1306_SETDISPLAYOFFSET	= 0xD3,
  	SSD1306_SETCOMPINS			= 0xDA,
  	SSD1306_SETVCOMDETECT		= 0xDB,
  	SSD1306_SETDISPLAYCLOCKDIV	= 0xD5,
  	SSD1306_SETPRECHARGE		= 0xD9,
  	SSD1306_SETMULTIPLEX		= 0xA8,
  	SSD1306_SETLOWCOLUMN		= 0x00,
  	SSD1306_SETHIGHCOLUMN		= 0x10,
  	SSD1306_SETSTARTLINE		= 0x40,
  	SSD1306_MEMORYMODE			= 0x20,
  	SSD1306_COLUMNADDR			= 0x21,
  	SSD1306_PAGEADDR			= 0x22,
  	SSD1306_COMSCANINC			= 0xC0,
  	SSD1306_COMSCANDEC			= 0xC8,
  	SSD1306_SEGREMAP			= 0xA0,
  	SSD1306_CHARGEPUMP			= 0x8D,
  	SSD1306_EXTERNALVCC			= 0x1,
  	SSD1306_SWITCHCAPVCC		= 0x2
  };
  
  
  
  
  void SSD1306_Init();	
  void SSD1306_SendCommand(uint8_t command);
  void SSD1306_SendData(uint8_t *data, uint8_t dataLength);
  void SSD1306_ClearScreen();
  void SSD1306_PrintChar(uint8_t *character, uint8_t line, uint8_t margin);
  void SSD1306_PrintCustomSign(uint8_t *sign, uint8_t signWidth, uint8_t startingLine, uint8_t margin);
  uint8_t SSD1306_PrintString(char *stringData, uint8_t stringLength, uint8_t line);
  
  
  #endif /* SSD13061_H_ */