What is this?
@@ -70,11 +81,17 @@
Navigation
+
Contents:
+
diff --git a/docs/build/html/objects.inv b/docs/build/html/objects.inv
index c389f31..793f01d 100644
Binary files a/docs/build/html/objects.inv and b/docs/build/html/objects.inv differ
diff --git a/docs/build/html/search.html b/docs/build/html/search.html
index e2ab59f..195b0c1 100644
--- a/docs/build/html/search.html
+++ b/docs/build/html/search.html
@@ -74,6 +74,11 @@
Navigation
+
Contents:
+
Related Topics
diff --git a/docs/build/html/searchindex.js b/docs/build/html/searchindex.js
index 32e0a75..87f4356 100644
--- a/docs/build/html/searchindex.js
+++ b/docs/build/html/searchindex.js
@@ -1 +1 @@
-Search.setIndex({docnames:["index"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":3,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":2,"sphinx.domains.rst":2,"sphinx.domains.std":1,sphinx:56},filenames:["index.rst"],objects:{},objnames:{},objtypes:{},terms:{"function":0,For:0,aaaa:[],all:0,can:0,code:0,descript:0,exampl:0,file:0,find:0,first:0,header:0,here:0,includ:0,index:0,kako:[],librari:0,like:0,modul:0,need:0,our:0,ovo:[],page:0,print:[],radi:[],rang:[],search:0,test:[],top:0,work:0,you:0,your:0,znam:[]},titles:["Welcome to Inkplate 6\u2019s documentation!"],titleterms:{document:0,indic:0,inkplat:0,tabl:0,thi:0,welcom:0,what:0}})
\ No newline at end of file
+Search.setIndex({docnames:["begin","index"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":3,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":2,"sphinx.domains.rst":2,"sphinx.domains.std":1,sphinx:56},filenames:["begin.rst","index.rst"],objects:{},objnames:{},objtypes:{},terms:{"function":1,For:1,Used:0,aaaa:[],all:1,begin:1,can:1,code:1,content:1,descript:1,exampl:1,file:1,find:1,first:1,header:1,here:1,includ:1,index:[0,1],inkplat:0,intiat:0,kako:[],librari:1,like:1,method:1,modul:[0,1],need:1,our:1,ovo:[],page:[0,1],print:[],radi:[],rang:[],search:[0,1],test:[],top:1,work:1,you:1,your:1,znam:[]},titles:[".begin method","Welcome to Inkplate 6\u2019s documentation!"],titleterms:{begin:0,document:1,indic:[0,1],inkplat:1,method:0,tabl:[0,1],thi:[0,1],welcom:1,what:[0,1]}})
\ No newline at end of file
diff --git a/docs/source/begin.rst b/docs/source/begin.rst
new file mode 100644
index 0000000..3391bf0
--- /dev/null
+++ b/docs/source/begin.rst
@@ -0,0 +1,26 @@
+.. Inkplate 6 documentation master file, created by
+ sphinx-quickstart on Mon Aug 3 13:10:28 2020.
+ You can adapt this file completely to your liking, but it should at least
+ contain the root `toctree` directive.
+
+*************
+.begin method
+*************
+
+.. toctree::
+ :maxdepth: 2
+ :caption: Contents:
+
+
+*************
+What is this?
+*************
+
+Used to intiate Inkplate
+
+Indices and tables
+==================
+
+* :ref:`genindex`
+* :ref:`modindex`
+* :ref:`search`
diff --git a/docs/source/index.rst b/docs/source/index.rst
index 7f1e4f8..d61a5b2 100644
--- a/docs/source/index.rst
+++ b/docs/source/index.rst
@@ -10,6 +10,7 @@ Welcome to Inkplate 6's documentation!
:maxdepth: 2
:caption: Contents:
+ begin
*************
What is this?
diff --git a/examples/3. Projects/3-Google_calendar_example/3-Google_calendar_example.ino b/examples/3. Projects/3-Google_calendar_example/3-Google_calendar_example.ino
index 4fb8454..e41b440 100644
--- a/examples/3. Projects/3-Google_calendar_example/3-Google_calendar_example.ino
+++ b/examples/3. Projects/3-Google_calendar_example/3-Google_calendar_example.ino
@@ -296,7 +296,29 @@ bool drawEvent(entry *event, int day, int beginY, int maxHeigth, int *heigthNeed
display.println(event->time);
display.setCursor(x1, display.getCursorY());
- display.print(event->location);
+
+ char line[128] = {0};
+
+ for (int i = 0; i < strlen(event->location); ++i)
+ {
+ line[i] = event->location[i];
+ line[i + 1] = 0;
+
+ int16_t xt1, yt1;
+ uint16_t w, h;
+
+ // Gets text bounds
+ display.getTextBounds(line, 0, 0, &xt1, &yt1, &w, &h);
+
+ if (w > (594 / 3))
+ {
+ for (int j = i - 1; j > max(-1, i - 4); --j)
+ line[j] = '.';
+ line[i] = 0;
+ }
+ }
+
+ display.print(line);
}
else
{