0.1.3 DRV8825

This commit is contained in:
rob tillaart 2022-11-02 11:52:32 +01:00
parent 5b2d1af728
commit 49d8d69ab4
7 changed files with 53 additions and 15 deletions

View File

@ -1,3 +1,18 @@
platforms:
rpipico:
board: rp2040:rp2040:rpipico
package: rp2040:rp2040
gcc:
features:
defines:
- ARDUINO_ARCH_RP2040
warnings:
flags:
packages:
rp2040:rp2040:
url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
compile:
# Choosing to run compilation tests on 2 different Arduino platforms
platforms:
@ -7,5 +22,7 @@ compile:
# - leonardo
- m4
- esp32
- esp8266
# - esp8266
# - mega2560
- rpipico

View File

@ -0,0 +1,26 @@
# Change Log DRV8825
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [0.1.3] - 2022-11-02
- add changelog.md
- add rp2040 to build-CI
- fix version number
## [0.1.2] - 2022-07-14
- add support for SLP RST and EN pin
- update documentation
- update build-CI
## [0.1.1] - 2022-07-08 update readme.md
- add setPosition() + getPosition();
- minor optimizations
## [0.1.0] - 2022-07-07
- initial version

View File

@ -1,18 +1,13 @@
//
// FILE: DRV8825.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.1.2
// VERSION: 0.1.3
// PURPOSE: Arduino library for DRV8825 stepper motor driver
// DATE: 2022-07-07
// URL: https://github.com/RobTillaart/DRV8825
//
// HISTORY: see changelog.md
// 0.1.0 2022-07-07 initial version.
// 0.1.1 2022-07-08 update readme.md
// add setPosition() + getPosition();
// minor optimizations
// 0.1.2 2022-07-14 add support for SLP RST and EN pin
// update documentation
// update build-CI
#include "DRV8825.h"
@ -215,4 +210,3 @@ bool DRV8825::isSleeping()
// -- END OF FILE --

View File

@ -2,7 +2,7 @@
//
// FILE: DRV8825.h
// AUTHOR: Rob Tillaart
// VERSION: 0.1.2
// VERSION: 0.1.3
// PURPOSE: Arduino library for DRV8825 stepper motor driver
// DATE: 2022-07-07
// URL: https://github.com/RobTillaart/DRV8825
@ -11,7 +11,7 @@
#include "Arduino.h"
#define DRV8825_LIB_VERSION (F("0.1.1"))
#define DRV8825_LIB_VERSION (F("0.1.3"))
// setDirection

View File

@ -44,7 +44,8 @@ const uint8_t DRV8825_COUNTERCLOCK_WISE = 1; // HIGH
### Constructor
- **DRV8825()** Constructor.
- **bool begin(uint8_t DIR, uint8_t STEP, uint8_t EN = 255, uint8_t RST = 255, uint8_t SLP = 255)** set the direction pin and step pin.
- **bool begin(uint8_t DIR, uint8_t STEP, uint8_t EN = 255, uint8_t RST = 255, uint8_t SLP = 255)**
set the direction pin and step pin.
Both pins are set to LOW. For direction this means DRV8825_CLOCK_WISE.
Optional the enable, reset and sleep pin can be set.
If these are set to 255 the related functions won't do anything.

View File

@ -15,7 +15,7 @@
"type": "git",
"url": "https://github.com/RobTillaart/DRV8825.git"
},
"version": "0.1.2",
"version": "0.1.3",
"license": "MIT",
"frameworks": "arduino",
"platforms": "*",

View File

@ -1,5 +1,5 @@
name=DRV8825
version=0.1.2
version=0.1.3
author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
sentence=Arduino library for DRV8825 stepper motor driver.