Adafruit Library
Classes | Macros | Variables
Adafruit_Circuit_Playground.h File Reference
#include "utility/Adafruit_CPlay_LIS3DH.h"
#include "utility/Adafruit_CPlay_Mic.h"
#include "utility/Adafruit_CPlay_NeoPixel.h"
#include "utility/Adafruit_CPlay_Speaker.h"
#include "utility/CP_Firmata.h"
#include <Arduino.h>
#include "utility/Adafruit_CPlay_FreeTouch.h"
#include "utility/IRLibCPE.h"

Go to the source code of this file.

Classes

class  Adafruit_CircuitPlayground
 Class that stores state and functions for interacting with CircuitPlayground hardware. More...
 

Macros

#define NOT_AN_INTERRUPT   -1
 Pin is not on an interrupt.
 
#define CPLAY_LEFTBUTTON   4
 left button pin
 
#define CPLAY_RIGHTBUTTON   5
 right button pin
 
#define CPLAY_SLIDESWITCHPIN   7
 slide switch pin
 
#define CPLAY_NEOPIXELPIN   8
 neopixel pin
 
#define CPLAY_REDLED   13
 red led pin
 
#define CPLAY_IR_EMITTER   25
 IR emmitter pin.
 
#define CPLAY_IR_RECEIVER   26
 IR receiver pin.
 
#define CPLAY_BUZZER   A0
 buzzer pin
 
#define CPLAY_LIGHTSENSOR   A8
 light sensor pin
 
#define CPLAY_THERMISTORPIN   A9
 thermistor pin
 
#define CPLAY_SOUNDSENSOR   A4
 TBD I2S.
 
#define CPLAY_LIS3DH_CS   -1
 LIS3DH chip select pin.
 
#define CPLAY_LIS3DH_INTERRUPT   27
 LIS3DH interrupt pin.
 
#define CPLAY_LIS3DH_ADDRESS   0x19
 LIS3DH I2C address.
 
#define SERIESRESISTOR   10000
 series resistor for thermistor
 
#define THERMISTORNOMINAL   10000
 resistance of thermistor at 25 degrees C
 
#define TEMPERATURENOMINAL   25
 temp. for nominal resistance (almost always 25 C)
 
#define BCOEFFICIENT   3380
 The beta coefficient of the thermistor (usually 3000-4000)
 
#define LIGHT_SETTLE_MS   100
 Configuration to tune the color sensing logic: Amount of time (in milliseconds) to wait between changing the pixel color and reading the light sensor.
 

Variables

Adafruit_CircuitPlayground CircuitPlayground
 instantiated by default
 

Detailed Description

This is part of Adafruit's CircuitPlayground driver for the Arduino platform. It is designed specifically to work with the Adafruit CircuitPlayground boards.

Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

Written by Ladyada and others for Adafruit Industries.

BSD license, all text here must be included in any redistribution.