for CountupNumber_sample3
MIP8F_SPI_Ver7.0
Ver7.0 Addtional function is SpeedMeter Sample for 4.4" MIP8F Display (Japan Display Inc)
Diff: MIP8F_SPI.h
- Revision:
- 2:944f2968c19f
- Parent:
- 1:2b85e7edcc4e
- Child:
- 3:c67b96404016
--- a/MIP8F_SPI.h Wed Oct 24 02:23:30 2018 +0000
+++ b/MIP8F_SPI.h Wed Oct 31 02:05:47 2018 +0000
@@ -1,6 +1,6 @@
/**
* @file MIP8F_SPI.h
-* @brief Library header file: Class for JDI MIP8 display
+* @brief ver3.0 Library header file: Class for JDI MIP8 display
* @details
* <license>
* Copyright 2018 Japan Display Inc.
@@ -51,7 +51,6 @@
#define RGB8(r,g,b) (((r & 0x80) >>4) | ((g & 0x80)>>5) | ((b & 0x80)>>6) ) & 0x0E //24bit->4bit ??6bit(8bit)?? MIP MASK 0000 1110??
-
/**
* @brief display class for JDI MIP8(memory in pixel 8 color display)
* @details spi-transfer has 3 mode.
@@ -69,6 +68,7 @@
#ifndef LINEBUFF_MODE
void writeDISP(void);
void writeDISP(int transfermode); // transfermode : 4bit,3bit,1bit
+ void writeDISP(int startline , int endline , int transfermode); // refresh display selected line
void pixel(int x, int y, uint8_t color); //for framebuffer
#else
void writeDISP(int line,int transfermode);// for linebuffer
@@ -82,7 +82,7 @@
void setmarge(bool ifMarge);
void setWH(int width, int height);
void SwDisp(bool ONorOFF);
- void character(int x, int y, int c,int mode = 0);
+ void character(int x, int y, int c);
// void LayerCopy(void);
void circle(int x0, int y0, int r, uint8_t color);
void fillcircle(int x0, int y0, int r, uint8_t color);
@@ -93,10 +93,20 @@
void fillrect(int x0, int y0, int x1, int y1, uint8_t color);
void Symbol(unsigned int x, unsigned int y, unsigned char *symbol);
void set_font(unsigned char* f);
+
unsigned char* font;
+
//ver2.0
void SetTransfermode(int transfermode);
int* GetPixelValue(int x , int y , uint8_t* buff);
+ //ver3.0
+ void set_FixedFontWidth( unsigned char width );
+ void set_ActualFontWidth(void);
+ unsigned char get_Background(void);
+ int textout(int x,int y,char* text);
+ void oblique(int x, int y, int c);
+ int obliqueout(int x,int y,char* text);
+
protected:
virtual int _putc(int value);
virtual int _getc();
@@ -116,7 +126,11 @@
char _background;
bool _ifMarge;
char _if16;
-
+
+ //ver3.0
+ //! Fixed Font width size if _FixedFontWidth==0, use actual Font width size.
+ unsigned char _FixedFontWidth;
+
#ifndef LINEBUFF_MODE
//! frame buffer for display
uint8_t _dispBUF[FRAME_SIZE];