Skip to content

Commit 3d7352e

Browse files
author
Duality
committed
added NOT_ON_TIMER and digitalPinToTimer defines to make a liquidcrystal library workd (that uses i2c)
1 parent aa372a7 commit 3d7352e

File tree

1 file changed

+2
-0
lines changed
  • hardware/esp8266com/esp8266/cores/esp8266

1 file changed

+2
-0
lines changed

hardware/esp8266com/esp8266/cores/esp8266/Arduino.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,15 @@ void loop(void);
209209
// This comes from the pins_*.c file for the active board configuration.
210210
#define digitalPinToPort(pin) (0)
211211
#define digitalPinToBitMask(pin) (1UL << (pin))
212+
#define digitalPinToTimer(pin) (0)
212213
#define portOutputRegister(port) ((volatile uint32_t*) GPO)
213214
#define portInputRegister(port) ((volatile uint32_t*) GPI)
214215
#define portModeRegister(port) ((volatile uint32_t*) GPE)
215216

216217
#define NOT_A_PIN -1
217218
#define NOT_A_PORT -1
218219
#define NOT_AN_INTERRUPT -1
220+
#define NOT_ON_TIMER 0
219221

220222
#ifdef __cplusplus
221223
} // extern "C"

0 commit comments

Comments
 (0)