4D Systems serial microOLED driver http://www.4dsystems.com.au/prod.php?id=77 http://www.sparkfun.com/products/8538

Committer:
evwijk
Date:
Wed Nov 17 20:53:12 2010 +0000
Revision:
0:d64e7277c3e5
Child:
1:3a99823210c0
0.1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
evwijk 0:d64e7277c3e5 1 #include "mbed.h"
evwijk 0:d64e7277c3e5 2
evwijk 0:d64e7277c3e5 3 #define OLED_FONT5X7 0x01
evwijk 0:d64e7277c3e5 4 #define OLED_FONT8X8 0x02
evwijk 0:d64e7277c3e5 5 #define OLED_FONT8X12 0x03
evwijk 0:d64e7277c3e5 6
evwijk 0:d64e7277c3e5 7 #define OLED_DISPLAYCONTROL_DISPLAY 0x01
evwijk 0:d64e7277c3e5 8 #define OLED_DISPLAYCONTROL_CONTRAST 0x02
evwijk 0:d64e7277c3e5 9 #define OLED_DISPLAYCONTROL_POWER 0x03
evwijk 0:d64e7277c3e5 10
evwijk 0:d64e7277c3e5 11 class MicroOLED {
evwijk 0:d64e7277c3e5 12 public:
evwijk 0:d64e7277c3e5 13
evwijk 0:d64e7277c3e5 14 MicroOLED(PinName serialTX, PinName serialRX, PinName reset);
evwijk 0:d64e7277c3e5 15
evwijk 0:d64e7277c3e5 16 short getRGB(char red, char green, char blue);
evwijk 0:d64e7277c3e5 17
evwijk 0:d64e7277c3e5 18 bool addBitmappedCharacter(char character, char data[8]);
evwijk 0:d64e7277c3e5 19 bool blockCopyPaste(char sourceX, char sourceY, char destinationX, char destinationY, char width, char height);
evwijk 0:d64e7277c3e5 20 bool displayControl(char mode);
evwijk 0:d64e7277c3e5 21 bool displayUserBitmappedCharacter(char character, char x, char y, short color);
evwijk 0:d64e7277c3e5 22 bool drawCircle(char x, char y, char radius, short color);
evwijk 0:d64e7277c3e5 23 bool drawCharacter(char character, char column, char row, short color);
evwijk 0:d64e7277c3e5 24 bool drawImage(char x, char y, char width, char height, char colorMode, char *pixels);
evwijk 0:d64e7277c3e5 25 bool drawLine(char x1, char y1, char x2, char y2, short color);
evwijk 0:d64e7277c3e5 26 bool drawPolygon(char vertices, char *x, char *y, short color);
evwijk 0:d64e7277c3e5 27 bool drawRectangle(char x, char y, char width, char height, short color);
evwijk 0:d64e7277c3e5 28 bool drawText(char column, char row, char font, short color, char *text);
evwijk 0:d64e7277c3e5 29 bool drawTriangle(char x1, char y1, char x2, char y2, char x3, char y3, short color);
evwijk 0:d64e7277c3e5 30 bool eraseScreen();
evwijk 0:d64e7277c3e5 31 bool init();
evwijk 0:d64e7277c3e5 32 bool penSize(char size);
evwijk 0:d64e7277c3e5 33 bool putPixel(char x, char y, short color);
evwijk 0:d64e7277c3e5 34 short readPixel(char x, char y);
evwijk 0:d64e7277c3e5 35 bool setBackgroundColor(short color);
evwijk 0:d64e7277c3e5 36 bool setFontSize(char fontType);
evwijk 0:d64e7277c3e5 37 bool textButton(char state, char x, char y, short buttonColor, char font, short textColor, char textWidth, char textHeight, char *text);
evwijk 0:d64e7277c3e5 38 bool textMode(char mode);
evwijk 0:d64e7277c3e5 39 bool versionInfo(bool onScreen, char *info);
evwijk 0:d64e7277c3e5 40
evwijk 0:d64e7277c3e5 41
evwijk 0:d64e7277c3e5 42 protected:
evwijk 0:d64e7277c3e5 43 Serial _oled;
evwijk 0:d64e7277c3e5 44 DigitalOut _reset;
evwijk 0:d64e7277c3e5 45
evwijk 0:d64e7277c3e5 46 void resetDisplay();
evwijk 0:d64e7277c3e5 47 };