|
@@ -142,13 +142,13 @@ uint8_t u8g_dev_st7565_64128n_2x_VIKI_fn(u8g_t *u8g, u8g_dev_t *dev, uint8_t msg
|
142
|
142
|
ST7565_WRITE_BYTE(0x40); // Display start line for Displaytech 64128N
|
143
|
143
|
|
144
|
144
|
ST7565_WRITE_BYTE(0x28 | 0x04); // power control: turn on voltage converter
|
145
|
|
- //U8G_ESC_DLY(50); // delay 50 ms - hangs after a reset if used
|
|
145
|
+ //U8G_ESC_DLY(50); // delay 50 ms - hangs after a reset if used
|
146
|
146
|
|
147
|
147
|
ST7565_WRITE_BYTE(0x28 | 0x06); // power control: turn on voltage regulator
|
148
|
|
- //U8G_ESC_DLY(50); // delay 50 ms - hangs after a reset if used
|
|
148
|
+ //U8G_ESC_DLY(50); // delay 50 ms - hangs after a reset if used
|
149
|
149
|
|
150
|
150
|
ST7565_WRITE_BYTE(0x28 | 0x07); // power control: turn on voltage follower
|
151
|
|
- //U8G_ESC_DLY(50); // delay 50 ms - hangs after a reset if used
|
|
151
|
+ //U8G_ESC_DLY(50); // delay 50 ms - hangs after a reset if used
|
152
|
152
|
|
153
|
153
|
ST7565_WRITE_BYTE(0x10); // Set V0 voltage resistor ratio. Setting for controlling brightness of Displaytech 64128N
|
154
|
154
|
|
|
@@ -228,12 +228,12 @@ u8g_dev_t u8g_dev_st7565_64128n_2x_VIKI_sw_spi = { u8g_dev_st7565_64128n_2x_VIKI
|
228
|
228
|
|
229
|
229
|
class U8GLIB_ST7565_64128n_2x_VIKI : public U8GLIB {
|
230
|
230
|
public:
|
231
|
|
- U8GLIB_ST7565_64128n_2x_VIKI(uint8_t dummy)
|
232
|
|
- : U8GLIB(&u8g_dev_st7565_64128n_2x_VIKI_sw_spi)
|
|
231
|
+ U8GLIB_ST7565_64128n_2x_VIKI(uint8_t dummy)
|
|
232
|
+ : U8GLIB(&u8g_dev_st7565_64128n_2x_VIKI_sw_spi)
|
|
233
|
+ { }
|
|
234
|
+ U8GLIB_ST7565_64128n_2x_VIKI(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
|
|
235
|
+ : U8GLIB(&u8g_dev_st7565_64128n_2x_VIKI_sw_spi)
|
233
|
236
|
{ }
|
234
|
|
- U8GLIB_ST7565_64128n_2x_VIKI(uint8_t sck, uint8_t mosi, uint8_t cs, uint8_t a0, uint8_t reset = U8G_PIN_NONE)
|
235
|
|
- : U8GLIB(&u8g_dev_st7565_64128n_2x_VIKI_sw_spi)
|
236
|
|
- { }
|
237
|
237
|
};
|
238
|
238
|
|
239
|
239
|
#pragma GCC reset_options
|