EPD display library. Check this version (it should work)

Fork of GDEP015OC1 by Jurica Resetar

Files at this revision

API Documentation at this revision

Comitter:
Anunnaki
Date:
Thu Sep 22 14:11:37 2016 +0000
Parent:
4:86114342ce8f
Child:
7:70c58d3cbc8b
Commit message:
Did something, not sure what.

Changed in this revision

GDEP015OC1.cpp Show annotated file Show diff for this revision Revisions of this file
GDEP015OC1.h Show annotated file Show diff for this revision Revisions of this file
--- a/GDEP015OC1.cpp	Tue Sep 20 10:11:07 2016 +0000
+++ b/GDEP015OC1.cpp	Thu Sep 22 14:11:37 2016 +0000
@@ -11,7 +11,8 @@
 };
 
 GDEP015OC1::GDEP015OC1(SPI& spi, PinName cs=p5, PinName dc=p6, PinName rst=p7, PinName busy=p8) : _spi(spi), _cs(cs), _dc(dc), _rst(rst), _busy(busy){
-    _bold = _italic = false;
+    _bold = true;
+    _italic = false;
     _init();
 }
 
@@ -129,7 +130,15 @@
     _spiData(0x01);
 }
 
-//If you touch this function satan will feast on your soul for an eternity!
+/*  
+ *  If you touch this function satan will feast on your soul for an eternity!
+ *  IM NOT PLAYING AROUND DONT FUCKING TOUCH IT!
+ *  You are thinking about it...
+ *  .
+ *  .
+ *  .
+ *  DONT!
+ */
 unsigned char GDEP015OC1::_pixelConv(unsigned char *data, int i){
     uint8_t pix = 0x00;
     for(uint8_t x = 0; x < 8; x++){
--- a/GDEP015OC1.h	Tue Sep 20 10:11:07 2016 +0000
+++ b/GDEP015OC1.h	Thu Sep 22 14:11:37 2016 +0000
@@ -11,7 +11,7 @@
 
 class GDEP015OC1 {
     public: 
-        unsigned char _buffer[BUFFER_SIZE];
+        //unsigned char _buffer[BUFFER_SIZE];
         GDEP015OC1(SPI& spi, PinName cs, PinName dc, PinName rst, PinName busy);
                    
         void fill(unsigned char data, int i);            
@@ -38,7 +38,7 @@
         
         bool _italic, _bold;
         
-        //unsigned char _buffer[BUFFER_SIZE];
+        unsigned char _buffer[BUFFER_SIZE];
          
         void _spiCommand(unsigned char command);            
         void _spiData(unsigned char data);