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>
|
2023-04-24 16:03:12 +02:00
|
|
|
#include <Wire.h>
|
|
|
|
#include <ADXL345_WE.h>
|
2022-06-26 00:23:50 +02:00
|
|
|
|
|
|
|
#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();
|