Update u8g / AVR display timing defaults (#21518)

This commit is contained in:
XDA-Bam 2021-04-03 02:11:22 +02:00 committed by GitHub
parent d0d5003f45
commit 9d0e82788a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,9 +34,9 @@
#include "ultralcd_st7920_u8glib_rrd_AVR.h" #include "ultralcd_st7920_u8glib_rrd_AVR.h"
#if F_CPU >= 20000000 #if F_CPU >= 20000000
#define CPU_ST7920_DELAY_1 DELAY_NS(0) #define CPU_ST7920_DELAY_1 DELAY_NS(150)
#define CPU_ST7920_DELAY_2 DELAY_NS(0) #define CPU_ST7920_DELAY_2 DELAY_NS(0)
#define CPU_ST7920_DELAY_3 DELAY_NS(50) #define CPU_ST7920_DELAY_3 DELAY_NS(150)
#elif MB(3DRAG, K8200, K8400) #elif MB(3DRAG, K8200, K8400)
#define CPU_ST7920_DELAY_1 DELAY_NS(0) #define CPU_ST7920_DELAY_1 DELAY_NS(0)
#define CPU_ST7920_DELAY_2 DELAY_NS(188) #define CPU_ST7920_DELAY_2 DELAY_NS(188)
@ -58,9 +58,9 @@
#define CPU_ST7920_DELAY_2 DELAY_NS(40) #define CPU_ST7920_DELAY_2 DELAY_NS(40)
#define CPU_ST7920_DELAY_3 DELAY_NS(340) #define CPU_ST7920_DELAY_3 DELAY_NS(340)
#elif F_CPU == 16000000 #elif F_CPU == 16000000
#define CPU_ST7920_DELAY_1 DELAY_NS(0) #define CPU_ST7920_DELAY_1 DELAY_NS(125)
#define CPU_ST7920_DELAY_2 DELAY_NS(0) #define CPU_ST7920_DELAY_2 DELAY_NS(0)
#define CPU_ST7920_DELAY_3 DELAY_NS(63) #define CPU_ST7920_DELAY_3 DELAY_NS(125)
#else #else
#error "No valid condition for delays in 'ultralcd_st7920_u8glib_rrd_AVR.h'" #error "No valid condition for delays in 'ultralcd_st7920_u8glib_rrd_AVR.h'"
#endif #endif