fusion-zauberstab/firmware/include/zauberstab.h
Thomas Schmid 02aea42207 add acceleration sensor
Signed-off-by: Thomas Schmid <tom@binary-kitchen.de>
2022-06-26 00:24:58 +02:00

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();