forked from buddhabrot/fusion-zauberstab
20 lines
346 B
C
20 lines
346 B
C
#pragma once
|
|
|
|
#include "Arduino.h"
|
|
#include <FastLED.h>
|
|
#include<Wire.h>
|
|
#include<ADXL345_WE.h>
|
|
|
|
#define ADXL345_I2CADDR 0x53 // 0x1D if SDO = HIGH
|
|
|
|
#define LED_PIN 12
|
|
#define NUM_LEDS 48
|
|
#define MIC_PIN 15
|
|
|
|
extern CRGB leds[NUM_LEDS];
|
|
extern ADXL345_WE myAcc;
|
|
|
|
int zauberstab_init();
|
|
float get_sample();
|
|
void switch_app();
|
|
bool acc_has_event(); |