Mercurial > templog
view bma180.h @ 112:5234ccc416e8 tilt
split ds18b20 and fixed sensors
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 19 Sep 2012 23:23:06 +0800 |
parents | cdb26addf4f2 |
children |
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); void bma180_sleep(void); void bma180_wake(void); #endif /* BMA180_H_ */