Ignore:
Timestamp:
Oct 15, 2019, 7:05:23 PM (7 years ago)
Author:
markus
Message:

Update Arduino-IDE to 1.8.10

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Arduino/libraries/Adafruit_Circuit_Playground/Adafruit_Circuit_Playground.h

    r3 r30  
    2525#include "utility/CP_Firmata.h"
    2626
    27 #ifdef __AVR__ // Circuit Playground 'classic'
     27#if defined(__AVR__) || defined(ARDUINO_NRF52840_CIRCUITPLAY) // Circuit Playground 'classic'
    2828  #include "utility/CPlay_CapacitiveSensor.h"
    2929#else
    … …  
    5050 #define CPLAY_LIS3DH_INTERRUPT  7 ///< LIS3DH interrupt pin
    5151 #define CPLAY_LIS3DH_ADDRESS    0x18 ///< LIS3DH I2C address
     52#elif defined(ARDUINO_NRF52840_CIRCUITPLAY)
     53 #define CPLAY_CAPSENSE_SHARED 255 ///< we use ground instead of capacitive sense pin
     54 #define CPLAY_LEFTBUTTON        4 ///< left button pin
     55 #define CPLAY_RIGHTBUTTON       5 ///< right button pin
     56 #define CPLAY_SLIDESWITCHPIN    7 ///< slide switch pin
     57 #define CPLAY_NEOPIXELPIN       8 ///< neopixel pin
     58 #define CPLAY_REDLED           13 ///< red led pin
     59 #define CPLAY_BUZZER           A0 ///< buzzer pin
     60 #define CPLAY_LIGHTSENSOR      A8 ///< light sensor pin
     61 #define CPLAY_THERMISTORPIN    A9 ///< thermistor pin
     62 #define CPLAY_LIS3DH_CS        -1 ///< LIS3DH chip select pin
     63 #define CPLAY_LIS3DH_INTERRUPT 27 ///< LIS3DH interrupt pin
     64 #define CPLAY_LIS3DH_ADDRESS   0x19 ///< LIS3DH I2C address
    5265#else // Circuit Playground Express
    5366 #define CPLAY_LEFTBUTTON        4  ///< left button pin
    … …  
    95108  Adafruit_CPlay_Speaker speaker; ///< the speaker object
    96109
    97 #ifdef __AVR__ // Circuit Playground 'classic'
     110#if defined (__AVR__) || defined(ARDUINO_CIRCUITPLAY_NRF52840) // Circuit Playground 'classic' or bluefruit
    98111  CPlay_CapacitiveSensor cap[8]; ///< the array of capacitive touch sensors
    99112#else
Note: See TracChangeset for help on using the changeset viewer.