diff options
author | Joel Bodenmann <joel@unormal.org> | 2014-07-09 22:53:01 +0200 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2014-07-09 22:53:01 +0200 |
commit | 538f9fcea3150b926cc1da0360b92254cc544a47 (patch) | |
tree | 323ad727eda4d13e56e50670fb03539bfe65df53 /drivers/gdisp/PCD8544/PCD8544.h | |
parent | 6925b4bfa6c6750fdaf81ae6e378e2f66ca8d1e1 (diff) | |
download | uGFX-538f9fcea3150b926cc1da0360b92254cc544a47.tar.gz uGFX-538f9fcea3150b926cc1da0360b92254cc544a47.tar.bz2 uGFX-538f9fcea3150b926cc1da0360b92254cc544a47.zip |
whitespaces
Diffstat (limited to 'drivers/gdisp/PCD8544/PCD8544.h')
-rw-r--r-- | drivers/gdisp/PCD8544/PCD8544.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/drivers/gdisp/PCD8544/PCD8544.h b/drivers/gdisp/PCD8544/PCD8544.h index 1a269ab4..3716a4a8 100644 --- a/drivers/gdisp/PCD8544/PCD8544.h +++ b/drivers/gdisp/PCD8544/PCD8544.h @@ -8,38 +8,38 @@ #ifndef _PCD8544_H #define _PCD8544_H -#define PCD8544_SET_FUNC 0x20 // Function set +#define PCD8544_SET_FUNC 0x20 // Function set #define PCD8544_H 0x01 #define PCD8544_V 0x02 #define PCD8544_PD 0x04 -#define PCD8544_SET_DISPLAY 0x08 -#define PCD8544_DISPLAY_MODE_BLANK 0x00 // bit D = 0, E = 0 -#define PCD8544_DISPLAY_MODE_FILL 0x01 // bit D = 0, E = 1 -#define PCD8544_DISPLAY_MODE_NORMAL 0x04 // bit D = 1, E = 0 -#define PCD8544_DISPLAY_MODE_INVERT 0x05 // bit D = 1, E = 1 +#define PCD8544_SET_DISPLAY 0x08 +#define PCD8544_DISPLAY_MODE_BLANK 0x00 // bit D = 0, E = 0 +#define PCD8544_DISPLAY_MODE_FILL 0x01 // bit D = 0, E = 1 +#define PCD8544_DISPLAY_MODE_NORMAL 0x04 // bit D = 1, E = 0 +#define PCD8544_DISPLAY_MODE_INVERT 0x05 // bit D = 1, E = 1 -#define PCD8544_SET_Y 0x40 // 0 0 1 0 0 Y3 Y2 Y1 Y0 -#define PCD8544_SET_X 0x80 // 0 1 X6 X5 X4 X3 X2 X1 X0 +#define PCD8544_SET_Y 0x40 // 0 0 1 0 0 Y3 Y2 Y1 Y0 +#define PCD8544_SET_X 0x80 // 0 1 X6 X5 X4 X3 X2 X1 X0 // ========================================= -#define PCD8544_SET_TEMP 0x04 // set temperature coefficient (TCx) -#define PCD8544_TEMP_MODE_0 0x00 // TC1 = 0, TC0 = 0 -#define PCD8544_TEMP_MODE_1 0x01 // TC1 = 0, TC0 = 1 -#define PCD8544_TEMP_MODE_2 0x02 // TC1 = 1, TC0 = 0 -#define PCD8544_TEMP_MODE_3 0x03 // TC1 = 1, TC0 = 1 - -#define PCD8544_SET_BIAS 0x10 // set bias system (BSx) -#define PCD8544_BIAS_MODE_7 0x00 // 1 to 100 -#define PCD8544_BIAS_MODE_6 0x01 // 1 to 80 -#define PCD8544_BIAS_MODE_5 0x02 // 1 to 65 -#define PCD8544_BIAS_MODE_4 0x03 // 1 to 48 -#define PCD8544_BIAS_MODE_3 0x04 // 1 to 40 or 1 to 34 -#define PCD8544_BIAS_MODE_2 0x05 // 1 to 24 -#define PCD8544_BIAS_MODE_1 0x06 // 1 to 18 or 1 to 16 -#define PCD8544_BIAS_MODE_0 0x07 // 1 to 10 or 1 to 9 or 1 to 8 - -#define PCD8544_SET_VOP 0x80 // write VOP to register, 1 VOP6 VOP5 VOP4 VOP3 VOP2 VOP1 VOP0 +#define PCD8544_SET_TEMP 0x04 // set temperature coefficient (TCx) +#define PCD8544_TEMP_MODE_0 0x00 // TC1 = 0, TC0 = 0 +#define PCD8544_TEMP_MODE_1 0x01 // TC1 = 0, TC0 = 1 +#define PCD8544_TEMP_MODE_2 0x02 // TC1 = 1, TC0 = 0 +#define PCD8544_TEMP_MODE_3 0x03 // TC1 = 1, TC0 = 1 + +#define PCD8544_SET_BIAS 0x10 // set bias system (BSx) +#define PCD8544_BIAS_MODE_7 0x00 // 1 to 100 +#define PCD8544_BIAS_MODE_6 0x01 // 1 to 80 +#define PCD8544_BIAS_MODE_5 0x02 // 1 to 65 +#define PCD8544_BIAS_MODE_4 0x03 // 1 to 48 +#define PCD8544_BIAS_MODE_3 0x04 // 1 to 40 or 1 to 34 +#define PCD8544_BIAS_MODE_2 0x05 // 1 to 24 +#define PCD8544_BIAS_MODE_1 0x06 // 1 to 18 or 1 to 16 +#define PCD8544_BIAS_MODE_0 0x07 // 1 to 10 or 1 to 9 or 1 to 8 + +#define PCD8544_SET_VOP 0x80 // write VOP to register, 1 VOP6 VOP5 VOP4 VOP3 VOP2 VOP1 VOP0 #endif /* _PCD8544_H */ |