changes for feather sense

This commit is contained in:
Daniel Morgan 2024-01-12 18:16:40 +01:00
parent 59cc3d287d
commit 10272a9250
4 changed files with 5 additions and 3 deletions

View file

@ -152,7 +152,7 @@ public:
* @param frequency Vibration frequency of the trigger * @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) { 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.startPosition = start;
data.EffectEx.keepEffect = keep; data.EffectEx.keepEffect = keep;
data.EffectEx.beginForce = begin_force; data.EffectEx.beginForce = begin_force;

View file

@ -54,6 +54,8 @@ typedef MAX3421e<P5, P17> MAX3421E; // ESP32 boards
typedef MAX3421e<Pb4, Pb3> MAX3421E; // MightyCore typedef MAX3421e<Pb4, Pb3> MAX3421E; // MightyCore
#elif (defined(__AVR_ATmega644P__) || defined(__AVR_ATmega1284P__)) #elif (defined(__AVR_ATmega644P__) || defined(__AVR_ATmega1284P__))
typedef MAX3421e<Pb4, Pb3> MAX3421E; // Sanguino typedef MAX3421e<Pb4, Pb3> MAX3421E; // Sanguino
#elif defined(ARDUINO_NRF52840_FEATHER_SENSE)
typedef MAX3421e<P5, P6> MAX3421E; // ARDUINO_NRF52840_FEATHER_SENSE
#else #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 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 #endif

View file

@ -1377,7 +1377,7 @@ MAKE_PIN(P19, GPIOC, GPIO_PIN_0); // A5
#undef MAKE_PIN #undef MAKE_PIN
#elif defined(ARDUINO_NRF52840_FEATHER) #elif defined(ARDUINO_NRF52840_FEATHER) || defined(ARDUINO_NRF52840_FEATHER_SENSE)
#define MAKE_PIN(className, pin) \ #define MAKE_PIN(className, pin) \
class className { \ class className { \

View file

@ -120,7 +120,7 @@ typedef SPi< P16, P18, P17, P10 > spi;
typedef SPi< P14, P13, P12, P15 > spi; typedef SPi< P14, P13, P12, P15 > spi;
#elif defined(ESP32) #elif defined(ESP32)
typedef SPi< P18, P23, P19, P5 > spi; 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; typedef SPi< P26, P25, P24, P5 > spi;
#else #else
#error "No SPI entry in usbhost.h" #error "No SPI entry in usbhost.h"