From 10272a92501a02414c587ba88483c838198f4e86 Mon Sep 17 00:00:00 2001 From: Daniel Morgan Date: Fri, 12 Jan 2024 18:16:40 +0100 Subject: [PATCH] changes for feather sense --- PS5Trigger.h | 2 +- UsbCore.h | 2 ++ avrpins.h | 2 +- usbhost.h | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/PS5Trigger.h b/PS5Trigger.h index 2a1db3a1..6c1fc024 100644 --- a/PS5Trigger.h +++ b/PS5Trigger.h @@ -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; diff --git a/UsbCore.h b/UsbCore.h index a5ca98b0..c8715e51 100644 --- a/UsbCore.h +++ b/UsbCore.h @@ -54,6 +54,8 @@ typedef MAX3421e MAX3421E; // ESP32 boards typedef MAX3421e MAX3421E; // MightyCore #elif (defined(__AVR_ATmega644P__) || defined(__AVR_ATmega1284P__)) typedef MAX3421e MAX3421E; // Sanguino +#elif defined(ARDUINO_NRF52840_FEATHER_SENSE) +typedef MAX3421e MAX3421E; // ARDUINO_NRF52840_FEATHER_SENSE #else typedef MAX3421e MAX3421E; // Official Arduinos (UNO, Duemilanove, Mega, 2560, Leonardo, Due etc.), Intel Edison, Intel Galileo 2 or Teensy 2.0 and 3.x #endif diff --git a/avrpins.h b/avrpins.h index ecf8f89d..0f63d31f 100644 --- a/avrpins.h +++ b/avrpins.h @@ -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 { \ diff --git a/usbhost.h b/usbhost.h index de34813b..ae80ebaf 100644 --- a/usbhost.h +++ b/usbhost.h @@ -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"