From c859cf4ee64bf3c984df02317d999549e6ada262 Mon Sep 17 00:00:00 2001
From: Fabrice Weinberg <Fabrice@weinberg.me>
Date: Sun, 10 Jan 2016 20:14:17 +0100
Subject: [PATCH] Add missing function declaration.

---
 SSD1306.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/SSD1306.h b/SSD1306.h
index ee9a7b8..76a5b31 100644
--- a/SSD1306.h
+++ b/SSD1306.h
@@ -188,6 +188,10 @@ class SSD1306 {
     // The text will be wrapped to the next line at a space or dash
     void drawStringMaxWidth(int16_t x, int16_t y, uint16_t maxLineWidth, String text);
 
+    // Returns the width of the const char* with the current
+    // font settings
+    uint16_t getStringWidth(const char* text, uint16_t length);
+
     // Specifies relative to which anchor point
     // the text is rendered. Available constants:
     // TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER, TEXT_ALIGN_RIGHT, TEXT_ALIGN_CENTER_BOTH
-- 
GitLab