Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "components/arduino"]
path = components/arduino
url = https://github.com/espressif/arduino-esp32.git
16 changes: 1 addition & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,7 @@ the webfrontend can be found here [https://github.com/jschoch/espELSfrontend]
## Configuration


Wifi: ssid and password need to be defined, this is default a file ../../wifisecret.h

```c
#pragma once
#ifndef _WEBCONFIG_H
#define _WEBCONFIG_H

static const char* ssid = "";
static const char* password = "";

#endif
```

in config.h update Z_STEP_PIN, Z_DIR_PIN for your stepper.
Update EA, and EB for your encoder signals. Let me know if you want to have an index pulse defined as my encoder does not have one.
Wifi: ssid and password need to be defined, copy config.ini.template to config.ini and configure all of the values

See (Install.md) for more info on installation

Expand Down
1 change: 1 addition & 0 deletions components/arduino
Submodule arduino added at 0d8401
43 changes: 22 additions & 21 deletions platformio.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[platformio]
extra_configs = config.ini

[env:ESPels]
platform = espressif32
platform = espressif32@5.3.0
board = esp32dev
framework = arduino
framework = espidf
monitor_speed = 115200
lib_deps =
gin66/FastAccelStepper@^0.28.3
Expand All @@ -16,16 +25,16 @@ lib_deps =
bblanchon/ArduinoJson@^6.19.4
bblanchon/StreamUtils@^1.6.3
monitor_filters = esp32_exception_decoder
build_flags = -DCORE_DEBUG_LEVEL=3 -DLOG_LOCAL_LEVEL=ESP_LOG_DEBUG -Wall -Wextra -Wunused
build_flags = -DCORE_DEBUG_LEVEL=3 -DLOG_LOCAL_LEVEL=ESP_LOG_DEBUG -Wall -Wextra -Wunused
check_tool = cppcheck
check_flags = -v
check_flags = -v
check_skip_packages = yes

[env:ota_debug]
extends = env:ESPels
build_flags =
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE
-D LOG_LEVEL=LOG_LEVEL_VERBOSE
build_flags =
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE
-D LOG_LEVEL=LOG_LEVEL_VERBOSE
build_type = debug

[env:ESPelsOTA]
Expand All @@ -34,33 +43,27 @@ upload_protocol = espota
upload_port = ${env:ota.upload_port}

[env:cppchecker]
platform = espressif32
platform = espressif32@5.3.0
board = esp32dev
framework = arduino
extends = env:ESPels
check_skip_packages = yes
check_flags =
cppcheck: --language=c++ --suppress=*:*pio\* --suppress=*:*neotimer\*
check_patterns=
./src
check_flags = cppcheck: --language=c++ --suppress=*:*pio\* --suppress=*:*neotimer\*
check_patterns = ./src

[env:ctd]
platform = espressif32
platform = espressif32@5.3.0
board = esp32dev
framework = arduino
extends = env:ESPels
check_tool = clangtidy
check_skip_packages = yes
check_patterns =
src


check_patterns = src

[env:ESPelsTest]
platform = native
check_flags = --verbose --enable=all --std=c++11
extra_scripts =
nativeStatic.py
extra_scripts = nativeStatic.py
lib_deps =
ArduinoFake
gin66/FastAccelStepper@^0.28.3
Expand All @@ -71,5 +74,3 @@ lib_deps =
bblanchon/ArduinoJson@^6.19.4
bblanchon/StreamUtils@^1.6.3
debug_test = test_stepper


Loading