2022-06-17 03:31:17 +02:00
|
|
|
#pragma once
|
|
|
|
|
2022-06-19 14:07:40 +02:00
|
|
|
#include "Arduino.h"
|
2022-06-17 03:31:17 +02:00
|
|
|
#include <FastLED.h>
|
2022-06-26 00:23:50 +02:00
|
|
|
#include<Wire.h>
|
|
|
|
#include<ADXL345_WE.h>
|
|
|
|
|
|
|
|
#define ADXL345_I2CADDR 0x53 // 0x1D if SDO = HIGH
|
2022-06-17 03:31:17 +02:00
|
|
|
|
|
|
|
#define LED_PIN 12
|
2022-06-26 00:23:50 +02:00
|
|
|
#define NUM_LEDS 48
|
2022-06-17 03:31:17 +02:00
|
|
|
#define MIC_PIN 15
|
|
|
|
|
|
|
|
extern CRGB leds[NUM_LEDS];
|
2022-06-26 00:23:50 +02:00
|
|
|
extern ADXL345_WE myAcc;
|
2022-06-17 03:31:17 +02:00
|
|
|
|
|
|
|
int zauberstab_init();
|
2022-06-26 00:23:50 +02:00
|
|
|
float get_sample();
|
|
|
|
void switch_app();
|
|
|
|
bool acc_has_event();
|