🎨 EXP headers, ST7920 delays (#22641)
This commit is contained in:
committed by
Scott Lahteine
parent
9b0e196ba2
commit
7704d84419
@ -39,6 +39,19 @@
|
||||
#include <avr/interrupt.h>
|
||||
#include <avr/io.h>
|
||||
|
||||
//
|
||||
// Default graphical display delays
|
||||
//
|
||||
#if F_CPU >= 20000000
|
||||
#define CPU_ST7920_DELAY_1 DELAY_NS(150)
|
||||
#define CPU_ST7920_DELAY_2 DELAY_NS( 0)
|
||||
#define CPU_ST7920_DELAY_3 DELAY_NS(150)
|
||||
#elif F_CPU == 16000000
|
||||
#define CPU_ST7920_DELAY_1 DELAY_NS(125)
|
||||
#define CPU_ST7920_DELAY_2 DELAY_NS( 0)
|
||||
#define CPU_ST7920_DELAY_3 DELAY_NS(188)
|
||||
#endif
|
||||
|
||||
#ifndef pgm_read_ptr
|
||||
// Compatibility for avr-libc 1.8.0-4.1 included with Ubuntu for
|
||||
// Windows Subsystem for Linux on Windows 10 as of 10/18/2019
|
||||
|
Reference in New Issue
Block a user