Mercurial > templog
view bma180.h @ 111:cdb26addf4f2 tilt
Add bma180 code, untested
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 19 Sep 2012 22:40:49 +0800 |
parents | |
children | 5234ccc416e8 |
line wrap: on
line source
#ifndef BMA180_H_ #define BMA180_H_ #include <stdint.h> // hardware config #define BMA180_CS_PORT PORTB #define BMA180_CS_DDR DDRB #define BMA180_CS_PIN 1 void bma180_get_reading(uint16_t *x, uint16_t *y, uint16_t *z, uint8_t *temperature); void bma180_init(uint8_t range, uint8_t bw); #endif /* BMA180_H_ */