We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5681a6a commit 5ae72eaCopy full SHA for 5ae72ea
controllers/PCD8544.c
@@ -120,8 +120,13 @@ void glcd_PCD8544_init(void) {
120
glcd_command(PCD8544_SET_BIAS | 0x2);
121
122
/* Set VOP (affects contrast) */
123
- glcd_command(PCD8544_SET_VOP | 80); /* Experimentally determined, play with this figure until contrast looks nice */
124
-
+ /* Experimentally determined, play with this figure until contrast looks nice */
+#if defined(PCD8544_CONTRAST)
125
+ glcd_command(PCD8544_SET_VOP | PCD8544_CONTRAST);
126
+#else
127
+ glcd_command(PCD8544_SET_VOP | 80);
128
+#endif
129
+
130
/* Back to standard instructions */
131
glcd_command(PCD8544_FUNCTION_SET);
132
0 commit comments