Pre-override of ST7920 delays before HAL.h
This commit is contained in:
parent
8a24ff94d1
commit
15d68cb496
1 changed files with 9 additions and 3 deletions
|
@ -68,9 +68,15 @@ extern "C" volatile uint32_t _millis;
|
|||
#include "HAL_timers.h"
|
||||
#include "HardwareSerial.h"
|
||||
|
||||
#define ST7920_DELAY_1 DELAY_NS(600)
|
||||
#define ST7920_DELAY_2 DELAY_NS(750)
|
||||
#define ST7920_DELAY_3 DELAY_NS(750)
|
||||
#ifndef ST7920_DELAY_1
|
||||
#define ST7920_DELAY_1 DELAY_NS(600)
|
||||
#endif
|
||||
#ifndef ST7920_DELAY_2
|
||||
#define ST7920_DELAY_2 DELAY_NS(750)
|
||||
#endif
|
||||
#ifndef ST7920_DELAY_3
|
||||
#define ST7920_DELAY_3 DELAY_NS(750)
|
||||
#endif
|
||||
|
||||
extern HalSerial usb_serial;
|
||||
|
||||
|
|
Reference in a new issue