mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
changes for feather sense
This commit is contained in:
parent
59cc3d287d
commit
10272a9250
4 changed files with 5 additions and 3 deletions
|
@ -152,7 +152,7 @@ public:
|
|||
* @param frequency Vibration frequency of the trigger
|
||||
*/
|
||||
void setTriggerForceEffect(uint8_t start, bool keep, uint8_t begin_force, uint8_t mid_force, uint8_t end_force, uint8_t frequency) {
|
||||
data.effectType = EffectType::EffectEx;
|
||||
data.effectType = EffectType::SectionResitance;
|
||||
data.EffectEx.startPosition = start;
|
||||
data.EffectEx.keepEffect = keep;
|
||||
data.EffectEx.beginForce = begin_force;
|
||||
|
|
|
@ -54,6 +54,8 @@ typedef MAX3421e<P5, P17> MAX3421E; // ESP32 boards
|
|||
typedef MAX3421e<Pb4, Pb3> MAX3421E; // MightyCore
|
||||
#elif (defined(__AVR_ATmega644P__) || defined(__AVR_ATmega1284P__))
|
||||
typedef MAX3421e<Pb4, Pb3> MAX3421E; // Sanguino
|
||||
#elif defined(ARDUINO_NRF52840_FEATHER_SENSE)
|
||||
typedef MAX3421e<P5, P6> MAX3421E; // ARDUINO_NRF52840_FEATHER_SENSE
|
||||
#else
|
||||
typedef MAX3421e<P10, P9> MAX3421E; // Official Arduinos (UNO, Duemilanove, Mega, 2560, Leonardo, Due etc.), Intel Edison, Intel Galileo 2 or Teensy 2.0 and 3.x
|
||||
#endif
|
||||
|
|
|
@ -1377,7 +1377,7 @@ MAKE_PIN(P19, GPIOC, GPIO_PIN_0); // A5
|
|||
#undef MAKE_PIN
|
||||
|
||||
|
||||
#elif defined(ARDUINO_NRF52840_FEATHER)
|
||||
#elif defined(ARDUINO_NRF52840_FEATHER) || defined(ARDUINO_NRF52840_FEATHER_SENSE)
|
||||
|
||||
#define MAKE_PIN(className, pin) \
|
||||
class className { \
|
||||
|
|
|
@ -120,7 +120,7 @@ typedef SPi< P16, P18, P17, P10 > spi;
|
|||
typedef SPi< P14, P13, P12, P15 > spi;
|
||||
#elif defined(ESP32)
|
||||
typedef SPi< P18, P23, P19, P5 > spi;
|
||||
#elif defined(ARDUINO_NRF52840_FEATHER)
|
||||
#elif defined(ARDUINO_NRF52840_FEATHER) || defined(ARDUINO_NRF52840_FEATHER_SENSE)
|
||||
typedef SPi< P26, P25, P24, P5 > spi;
|
||||
#else
|
||||
#error "No SPI entry in usbhost.h"
|
||||
|
|
Loading…
Reference in a new issue