Merge pull request #3182 from thinkyhead/rcbugfix_printrboard_revf
Add support for Printrboard RevF
This commit is contained in:
@ -30,6 +30,7 @@
|
||||
#include "language.h"
|
||||
#include "cardreader.h"
|
||||
#include "speed_lookuptable.h"
|
||||
|
||||
#if HAS_DIGIPOTSS
|
||||
#include <SPI.h>
|
||||
#endif
|
||||
@ -1181,19 +1182,18 @@ void quickStop() {
|
||||
|
||||
#endif //BABYSTEPPING
|
||||
|
||||
// From Arduino DigitalPotControl example
|
||||
void digitalPotWrite(int address, int value) {
|
||||
#if HAS_DIGIPOTSS
|
||||
#if HAS_DIGIPOTSS
|
||||
|
||||
// From Arduino DigitalPotControl example
|
||||
void digitalPotWrite(int address, int value) {
|
||||
digitalWrite(DIGIPOTSS_PIN, LOW); // take the SS pin low to select the chip
|
||||
SPI.transfer(address); // send in the address and value via SPI:
|
||||
SPI.transfer(value);
|
||||
digitalWrite(DIGIPOTSS_PIN, HIGH); // take the SS pin high to de-select the chip:
|
||||
//delay(10);
|
||||
#else
|
||||
UNUSED(address);
|
||||
UNUSED(value);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
#endif //HAS_DIGIPOTSS
|
||||
|
||||
// Initialize Digipot Motor Current
|
||||
void digipot_init() {
|
||||
@ -1232,7 +1232,7 @@ void digipot_current(uint8_t driver, int current) {
|
||||
#else
|
||||
UNUSED(driver);
|
||||
UNUSED(current);
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
void microstep_init() {
|
||||
|
Reference in New Issue
Block a user