Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
GyverLibs committed Nov 30, 2021
1 parent 44e2fbf commit e4cdebb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,7 @@ void loop() {
- v2.1.7 - добавлен clearBuffer() в GPlanner2
- v2.1.8 - оптимизация, исправлен KEEP_SPEED в GStepper
- v2.2.0 - добавлен скоростной профиль GS_FAST_PROFILE для GStepper2, GPlanner, GPlanner2. Поддержка режима "слежения" для GStepper2
- v2.2.1 - небольшая оптимизация SRAM

<a id="feedback"></a>
## Баги и обратная связь
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=GyverStepper
version=2.2.0
version=2.2.1
author=AlexGyver <alex@alexgyver.ru>
maintainer=AlexGyver <alex@alexgyver.ru>
sentence=Fast library for stepmotor control and multi-axis planning
Expand Down
1 change: 1 addition & 0 deletions src/GyverStepper.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
v2.1.7 - добавлен clearBuffer() в GPlanner2
v2.1.8 - оптимизация, исправлен KEEP_SPEED в GStepper
v2.2.0 - добавлен скоростной профиль GS_FAST_PROFILE для GStepper2, GPlanner, GPlanner2. Поддержка режима "слежения" для GStepper2
v2.2.1 - небольшая оптимизация SRAM
*/

/*
Expand Down
5 changes: 1 addition & 4 deletions src/StepperCore.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,12 @@ class Stepper {
private:
// настройка пина
void configurePin(int num, uint8_t pin) {
pinMode(pin, OUTPUT);
#ifdef __AVR__
_port_reg[num] = portOutputRegister(digitalPinToPort(pin));
_ddr_reg[num] = portModeRegister(digitalPinToPort(pin));
_bit_mask[num] = digitalPinToBitMask(pin);
*_ddr_reg[num] |= _bit_mask[num]; // OUTPUT
#else
_pins[num] = pin;
pinMode(_pins[num], OUTPUT);
#endif
}

Expand Down Expand Up @@ -224,7 +222,6 @@ class Stepper {

#ifdef __AVR__
volatile uint8_t *_port_reg[_PINS_AMOUNT];
volatile uint8_t *_ddr_reg[_PINS_AMOUNT];
volatile uint8_t _bit_mask[_PINS_AMOUNT];
#else
uint8_t _pins[_PINS_AMOUNT];
Expand Down

0 comments on commit e4cdebb

Please sign in to comment.