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

Dependencies:   UniGraphic mbed

ADXL.h

Committer:
bentogami
Date:
2016-01-20
Revision:
1:c436c1b8333b
Parent:
0:708949ec9140

File content as of revision 1:c436c1b8333b:

#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