Improve U8G+SPI delay override (#18386)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
This commit is contained in:
@ -21,15 +21,6 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* Override default LCD timing for Formbot T-Rex 2+ machines.
|
||||
* The long LCD cables and the routing near electrically noisy stepper motors
|
||||
* requires a slightly longer setup and hold time on the signals.
|
||||
*/
|
||||
#define BOARD_ST7920_DELAY_1 DELAY_NS(200)
|
||||
#define BOARD_ST7920_DELAY_2 DELAY_NS(200)
|
||||
#define BOARD_ST7920_DELAY_3 DELAY_NS(200)
|
||||
|
||||
/**
|
||||
* Formbot pin assignments
|
||||
*/
|
||||
@ -205,3 +196,15 @@
|
||||
#define LCD_PINS_D6 27
|
||||
#define LCD_PINS_D7 29
|
||||
#endif
|
||||
|
||||
#if HAS_GRAPHICAL_LCD
|
||||
#ifndef BOARD_ST7920_DELAY_1
|
||||
#define BOARD_ST7920_DELAY_1 DELAY_NS(200)
|
||||
#endif
|
||||
#ifndef BOARD_ST7920_DELAY_2
|
||||
#define BOARD_ST7920_DELAY_2 DELAY_NS(200)
|
||||
#endif
|
||||
#ifndef BOARD_ST7920_DELAY_3
|
||||
#define BOARD_ST7920_DELAY_3 DELAY_NS(200)
|
||||
#endif
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user