Skip to content

Commit

Permalink
remove compatiblity with ESP8266 for now (no task support)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkerspe committed Jul 4, 2020
1 parent 5c5beac commit 18e8cc4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
4 changes: 2 additions & 2 deletions library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ESP-FlexyStepper",
"description": "This library is used to control one or more stepper motors from an ESP32 or ESP8266 device. It is based on the FlexyStepper library by S.Reifels but provides some additional functionality",
"description": "This library is used to control one or more stepper motors from an ESP32 device. It is based on the FlexyStepper library by S.Reifels but provides some additional functionality",
"keywords": "esp,stepper,stepper-motor,motor,control,motor-control,emergencystop,limitswitch,homing,motion,killswitch,speed,position",
"authors": {
"name": "Paul Kerspe",
Expand All @@ -10,7 +10,7 @@
"type": "git",
"url": "https://github.com/pkerspe/ESP-FlexyStepper.git"
},
"version": "1.2",
"version": "1.3",
"license": "MIT",
"frameworks": "arduino",
"platforms": [
Expand Down
6 changes: 3 additions & 3 deletions library.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name=ESP-FlexyStepper
version=1.2
version=1.3
author=Paul Kerspe
maintainer=Paul Kerspe
sentence=This library is used to control one or more stepper motors from an ESP32 or ESP8266 device
paragraph=This library is used to control one or more stepper motors from an ESP32 or ESP8266 device. It is based on the FlexyStepper library by S.Reifels but provides some additional functionality
sentence=This library is used to control one or more stepper motors from an ESP32 device
paragraph=This library is used to control one or more stepper motors from an ESP32 device. It is based on the FlexyStepper library by S.Reifels but provides some additional functionality
category=Device Control
url=https://github.com/pkerspe/ESP-StepperMotor-Server
architectures=*
Expand Down
1 change: 1 addition & 0 deletions src/ESP_FlexyStepper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ ESP_FlexyStepper::ESP_FlexyStepper()
this->limitSwitchCheckPeformed = false;
}

//TODO: use https://github.com/nrwiersma/ESP8266Scheduler/blob/master/examples/simple/simple.ino for ESP8266
void ESP_FlexyStepper::startAsService(void)
{
disableCore0WDT(); // we have to disable the Watchdog timer to prevent it from rebooting the ESP all the time another option would be to add a vTaskDelay but it would slow down the stepper
Expand Down
9 changes: 9 additions & 0 deletions src/ESP_FlexyStepper.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@
#ifndef ESP_FlexyStepper_h
#define ESP_FlexyStepper_h

#ifdef ESP32
//
//#elif defined(ESP8266)
//
#else
#error Platform not supported, only ESP32 modules are currently supported
#endif


#include <Arduino.h>
#include <stdlib.h>

Expand Down

0 comments on commit 18e8cc4

Please sign in to comment.