Skip to content

Commit 8d33872

Browse files
author
Andre Stefanov
committed
Added ESP32, fixed definitions not being recognized because of missing library dependency finder configuration
see https://docs.platformio.org/en/latest/librarymanager/ldf.html#dependency-finder-mode
1 parent cf77dac commit 8d33872

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Software/Arduino code/OpenAstroTracker/TimerInterrupt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
1.0.1 K Hoang 16/11/2019 Add long timer feature, clean up, higher accuracy
2626
1.0.2 K Hoang 28/11/2019 Permit up to 16 super-long-time, super-accurate ISR-based timers to avoid being blocked
2727
****************************************************************************************************************************/
28-
#if !defined(ESP8266)
28+
#if !defined(ESP8266) && !defined(ESP32)
2929

3030
#define TIMER_INTERRUPT_DEBUG 0
3131
#include "TimerInterrupt.h"

Software/Arduino code/OpenAstroTracker/platformio.ini

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ src_dir = .
1313

1414
[env]
1515
framework = arduino
16+
lib_ldf_mode = chain+
1617
lib_deps =
18+
SPI
19+
Serial
1720
LiquidCrystal
1821
AccelStepper
1922
EEPROM
@@ -22,7 +25,6 @@ lib_deps =
2225
[env:mega2560]
2326
platform = atmelavr
2427
board = megaatmega2560
25-
framework = arduino
2628

2729
[env:uno]
2830
platform = atmelavr
@@ -35,4 +37,8 @@ lib_deps =
3537
LiquidCrystal
3638
AccelStepper
3739
EEPROM
38-
ESP8266WiFi
40+
ESP8266WiFi
41+
42+
[env:esp32]
43+
platform = espressif32
44+
board = esp32dev

0 commit comments

Comments
 (0)