Using an accelerometer to move a ball on an LED screen.

Dependencies:   UniGraphic mbed

ADXL.h

Committer:
bentogami
Date:
2016-01-20
Revision:
2:c6bf8599c398
Parent:
1:c436c1b8333b

File content as of revision 2:c6bf8599c398:

#ifndef ADXL_H
#define ADXL_H

#include "mbed.h"

extern SPI acc;
extern DigitalOut cs;
extern char buffer[6];
extern int16_t tempData[3];
extern float x, y, z;

void accConfig();
void getAccel(float* data);

#endif