   display.setFlip(true);
   display.setBrightness(10);
   display.setBitDepth(buffer.is16bit());
-    
+
   bleSetup();
 }
 
-void bleSetup(){
+void bleSetup() {
   //Name of BLE peripheral when connecting to master.
   blePeripheral.setLocalName("tinywatch");
   blePeripheral.setAppearance(0xC0);

#include "lib_RenderBuffer.h"
#include "lib_StringBuffer.h"

//Determines which version of TinyScreen we are using.
TinyScreen display = TinyScreen(TinyScreenPlus);
//Buffer used for drawing.
RenderBuffer<uint16_t,20> buffer;
char isTimeSet = 0;
//Temp sleep
char isSleep = 0;


//Pinouts for TinyShield BLE.
#define BLE_REQ 10
#define BLE_RDY 2
#define BLE_RST 9

//Instantiate BLE peripheral.
BLEPeripheral blePeripheral = BLEPeripheral(BLE_REQ, BLE_RDY, BLE_RST);

  messageWithSecondDelay("Disconnected...");
}

void setTimeHandler(BLECentral& central, BLECharacteristic& characteristic) {
  setTime(timeCharacteristic.valueBE());
  isTimeSet = 1;
}

void messageWithSecondDelay(String msg) {
  buffer.drawText(stringBuffer.start().put(msg.c_str()).get(), 15, 8, buffer.rgb(255, 255, 255), &liberationSans_8ptFontInfo);
  refreshScreen();
  delay(1000);
}

void refreshScreen() {
  buffer.flush(display);
  stringBuffer.reset();
}

void renderTime() {
  char* timeString = stringBuffer.start().put(hour() < 10 ? "0" : "").putDec(hour()).put(":").put(minute() < 10 ? "0" : "").putDec(minute()).put(":").put(second() < 10 ? "0" : "").putDec(second()).get();
  buffer.drawText(timeString, 22, 16, buffer.rgb(255, 255, 255), &liberationSans_12ptFontInfo);
}

void renderDate() {
  char* dateString = stringBuffer.start().putDec(month()).put("-").putDec(day()).put("-").putDec(year()).get();
  buffer.drawText(dateString, 26, 34, buffer.rgb(255, 255, 255), &liberationSans_8ptFontInfo);
}

void renderBackground() {
  buffer.drawRect(0, 0, 96, 64)->filledRect(buffer.rgb(rBackground, gBackground, bBackground));
}

//TODO: Method to render orientation.
