   sendcommand(0x00);            //Set Memory Addressing Mode ab Horizontal addressing mode
   //  sendcommand(0x02);         // Set Memory Addressing Mode ab Page addressing mode(RESET)  
 }
-
-
+


//==========================================================//
// Prints a string regardless the cursor position.
static void sendStr(char *string)
{
  unsigned char i=0;
  while(*string)


#include <Wire.h>
#include "font.h"

#define OLED_address  0x3c                           // all the OLED's I have seen have this address

uint8_t offset = 0;

void setup(void) 
{
  Wire.begin();                                // Initialise I2C 
  
  init_OLED();                                 // Initailise the OLED Display
  reset_display();                             // Make sure the display is blank

  //clear_display();                           // Reset does this, so no need to do twice

  delay(3000);                                 // Give things time to settle

  sendStrXY("OLED ready!",4,0);                // Display a message on the OLED!
}

// empty loop function as everything is done in setup
// normally we would have our continously running stuff here
void loop(void) 
{
}

//==========================================================//
