Board-based ST7920 delays
This commit is contained in:
parent
1fb2fffdbf
commit
c3d2ffc09c
8 changed files with 48 additions and 48 deletions
|
@ -169,14 +169,14 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAS_GRAPHICAL_LCD
|
#if HAS_GRAPHICAL_LCD
|
||||||
#ifndef ST7920_DELAY_1
|
#ifndef BOARD_ST7920_DELAY_1
|
||||||
#define ST7920_DELAY_1 DELAY_NS(96)
|
#define BOARD_ST7920_DELAY_1 DELAY_NS(96)
|
||||||
#endif
|
#endif
|
||||||
#ifndef ST7920_DELAY_2
|
#ifndef BOARD_ST7920_DELAY_2
|
||||||
#define ST7920_DELAY_2 DELAY_NS(48)
|
#define BOARD_ST7920_DELAY_2 DELAY_NS(48)
|
||||||
#endif
|
#endif
|
||||||
#ifndef ST7920_DELAY_3
|
#ifndef BOARD_ST7920_DELAY_3
|
||||||
#define ST7920_DELAY_3 DELAY_NS(715)
|
#define BOARD_ST7920_DELAY_3 DELAY_NS(715)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -177,12 +177,12 @@
|
||||||
#define MOSI_PIN PB15
|
#define MOSI_PIN PB15
|
||||||
#define SS_PIN PA15
|
#define SS_PIN PA15
|
||||||
|
|
||||||
#ifndef ST7920_DELAY_1
|
#ifndef BOARD_ST7920_DELAY_1
|
||||||
#define ST7920_DELAY_1 DELAY_NS(125)
|
#define BOARD_ST7920_DELAY_1 DELAY_NS(125)
|
||||||
#endif
|
#endif
|
||||||
#ifndef ST7920_DELAY_2
|
#ifndef BOARD_ST7920_DELAY_2
|
||||||
#define ST7920_DELAY_2 DELAY_NS(125)
|
#define BOARD_ST7920_DELAY_2 DELAY_NS(125)
|
||||||
#endif
|
#endif
|
||||||
#ifndef ST7920_DELAY_3
|
#ifndef BOARD_ST7920_DELAY_3
|
||||||
#define ST7920_DELAY_3 DELAY_NS(125)
|
#define BOARD_ST7920_DELAY_3 DELAY_NS(125)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -140,12 +140,12 @@
|
||||||
#define MOSI_PIN PB15
|
#define MOSI_PIN PB15
|
||||||
#define SS_PIN PA15
|
#define SS_PIN PA15
|
||||||
|
|
||||||
#ifndef ST7920_DELAY_1
|
#ifndef BOARD_ST7920_DELAY_1
|
||||||
#define ST7920_DELAY_1 DELAY_NS(125)
|
#define BOARD_ST7920_DELAY_1 DELAY_NS(125)
|
||||||
#endif
|
#endif
|
||||||
#ifndef ST7920_DELAY_2
|
#ifndef BOARD_ST7920_DELAY_2
|
||||||
#define ST7920_DELAY_2 DELAY_NS(125)
|
#define BOARD_ST7920_DELAY_2 DELAY_NS(125)
|
||||||
#endif
|
#endif
|
||||||
#ifndef ST7920_DELAY_3
|
#ifndef BOARD_ST7920_DELAY_3
|
||||||
#define ST7920_DELAY_3 DELAY_NS(125)
|
#define BOARD_ST7920_DELAY_3 DELAY_NS(125)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -193,14 +193,14 @@
|
||||||
#define LCD_PINS_D7 PD10
|
#define LCD_PINS_D7 PD10
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef ST7920_DELAY_1
|
#ifndef BOARD_ST7920_DELAY_1
|
||||||
#define ST7920_DELAY_1 DELAY_NS(125)
|
#define BOARD_ST7920_DELAY_1 DELAY_NS(125)
|
||||||
#endif
|
#endif
|
||||||
#ifndef ST7920_DELAY_2
|
#ifndef BOARD_ST7920_DELAY_2
|
||||||
#define ST7920_DELAY_2 DELAY_NS(125)
|
#define BOARD_ST7920_DELAY_2 DELAY_NS(125)
|
||||||
#endif
|
#endif
|
||||||
#ifndef ST7920_DELAY_3
|
#ifndef BOARD_ST7920_DELAY_3
|
||||||
#define ST7920_DELAY_3 DELAY_NS(125)
|
#define BOARD_ST7920_DELAY_3 DELAY_NS(125)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // !MKS_MINI_12864
|
#endif // !MKS_MINI_12864
|
||||||
|
|
|
@ -263,12 +263,12 @@
|
||||||
#endif // !MKS_MINI_12864 && !ENDER2_STOCKDISPLAY
|
#endif // !MKS_MINI_12864 && !ENDER2_STOCKDISPLAY
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef ST7920_DELAY_1
|
#ifndef BOARD_ST7920_DELAY_1
|
||||||
#define ST7920_DELAY_1 DELAY_NS(125)
|
#define BOARD_ST7920_DELAY_1 DELAY_NS(125)
|
||||||
#endif
|
#endif
|
||||||
#ifndef ST7920_DELAY_2
|
#ifndef BOARD_ST7920_DELAY_2
|
||||||
#define ST7920_DELAY_2 DELAY_NS(125)
|
#define BOARD_ST7920_DELAY_2 DELAY_NS(125)
|
||||||
#endif
|
#endif
|
||||||
#ifndef ST7920_DELAY_3
|
#ifndef BOARD_ST7920_DELAY_3
|
||||||
#define ST7920_DELAY_3 DELAY_NS(125)
|
#define BOARD_ST7920_DELAY_3 DELAY_NS(125)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -257,12 +257,12 @@
|
||||||
//
|
//
|
||||||
// ST7920 Delays
|
// ST7920 Delays
|
||||||
//
|
//
|
||||||
#ifndef ST7920_DELAY_1
|
#ifndef BOARD_ST7920_DELAY_1
|
||||||
#define ST7920_DELAY_1 DELAY_NS(96)
|
#define BOARD_ST7920_DELAY_1 DELAY_NS(96)
|
||||||
#endif
|
#endif
|
||||||
#ifndef ST7920_DELAY_2
|
#ifndef BOARD_ST7920_DELAY_2
|
||||||
#define ST7920_DELAY_2 DELAY_NS(48)
|
#define BOARD_ST7920_DELAY_2 DELAY_NS(48)
|
||||||
#endif
|
#endif
|
||||||
#ifndef ST7920_DELAY_3
|
#ifndef BOARD_ST7920_DELAY_3
|
||||||
#define ST7920_DELAY_3 DELAY_NS(715)
|
#define BOARD_ST7920_DELAY_3 DELAY_NS(715)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -241,14 +241,14 @@
|
||||||
|
|
||||||
// Alter timing for graphical display
|
// Alter timing for graphical display
|
||||||
#if HAS_GRAPHICAL_LCD
|
#if HAS_GRAPHICAL_LCD
|
||||||
#ifndef ST7920_DELAY_1
|
#ifndef BOARD_ST7920_DELAY_1
|
||||||
#define ST7920_DELAY_1 DELAY_NS(96)
|
#define BOARD_ST7920_DELAY_1 DELAY_NS(96)
|
||||||
#endif
|
#endif
|
||||||
#ifndef ST7920_DELAY_2
|
#ifndef BOARD_ST7920_DELAY_2
|
||||||
#define ST7920_DELAY_2 DELAY_NS(48)
|
#define BOARD_ST7920_DELAY_2 DELAY_NS(48)
|
||||||
#endif
|
#endif
|
||||||
#ifndef ST7920_DELAY_3
|
#ifndef BOARD_ST7920_DELAY_3
|
||||||
#define ST7920_DELAY_3 DELAY_NS(600)
|
#define BOARD_ST7920_DELAY_3 DELAY_NS(600)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -184,12 +184,12 @@
|
||||||
//
|
//
|
||||||
// ST7920 Delays
|
// ST7920 Delays
|
||||||
//
|
//
|
||||||
#ifndef ST7920_DELAY_1
|
#ifndef BOARD_ST7920_DELAY_1
|
||||||
#define ST7920_DELAY_1 DELAY_NS(96)
|
#define BOARD_ST7920_DELAY_1 DELAY_NS(96)
|
||||||
#endif
|
#endif
|
||||||
#ifndef ST7920_DELAY_2
|
#ifndef BOARD_ST7920_DELAY_2
|
||||||
#define ST7920_DELAY_2 DELAY_NS(48)
|
#define BOARD_ST7920_DELAY_2 DELAY_NS(48)
|
||||||
#endif
|
#endif
|
||||||
#ifndef ST7920_DELAY_3
|
#ifndef BOARD_ST7920_DELAY_3
|
||||||
#define ST7920_DELAY_3 DELAY_NS(715)
|
#define BOARD_ST7920_DELAY_3 DELAY_NS(715)
|
||||||
#endif
|
#endif
|
||||||
|
|
Reference in a new issue