read EMG, IMU, encoder

Dependencies:   mbed

Fork of LSM9DS1_project by 曾 宗圓

Committer:
JJting
Date:
Wed Aug 01 01:01:13 2018 +0000
Revision:
3:567765d3bcd1
Parent:
2:c889fecf9afe
original 20180801

Who changed what in which revision?

UserRevisionLine numberNew contents of line
middleyuan 2:c889fecf9afe 1 #ifndef AS5145_H
middleyuan 1:b1562831bbaf 2 #define AS5145_H
middleyuan 1:b1562831bbaf 3
middleyuan 1:b1562831bbaf 4 #include "mbed.h"
middleyuan 1:b1562831bbaf 5
middleyuan 1:b1562831bbaf 6 extern SPI spi;
middleyuan 1:b1562831bbaf 7 extern DigitalOut CS;
middleyuan 1:b1562831bbaf 8 extern SPI spi2;
middleyuan 1:b1562831bbaf 9 extern DigitalOut CS2;
middleyuan 1:b1562831bbaf 10
middleyuan 1:b1562831bbaf 11 extern int position[2];
middleyuan 1:b1562831bbaf 12 extern int position_old[2];
middleyuan 1:b1562831bbaf 13 extern short low_byte;
middleyuan 1:b1562831bbaf 14 extern short high_byte;
middleyuan 1:b1562831bbaf 15
middleyuan 1:b1562831bbaf 16 extern void ReadValue(void);
middleyuan 1:b1562831bbaf 17 extern bool AS5145_begin(void);
middleyuan 1:b1562831bbaf 18
middleyuan 1:b1562831bbaf 19
middleyuan 1:b1562831bbaf 20 #endif