Skip to content

Commit

Permalink
by default use capacitor on vcp
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-8 committed May 10, 2024
1 parent 6ef7d91 commit 77c0dde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=TMC7300
version=0.3.7
version=0.3.8
author=Joshua Phelps <joshuaphelps127@gmail.com>
maintainer=Joshua Phelps <joshuaphelps127@gmail.com>
sentence=Control TMC7300 DC motor drivers.
Expand Down
3 changes: 2 additions & 1 deletion src/TMC7300.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@ class TMC7300IC {
// TODO: limit to TMC7300's allowable speeds
uartDelay = (1000000U / _baudrate);
}
void begin()
void begin(boolean extcap = true)
{
pinMode(pin, OUTPUT);
digitalWrite(pin, HIGH);
delay(10); // TODO: WHAT DELAY ON STARTUP IS NEEDED?
writeField(TMC7300_PWM_DIRECT, 1);
writeField(TMC7300_EXTCAP, extcap); // capacitor on vcp
}

protected:
Expand Down

0 comments on commit 77c0dde

Please sign in to comment.