This is a sample of library TI_MPU6050.
Dependencies: TI_TB6612FNG mbed
main.cpp@0:772ec1673170, 2018-06-04 (annotated)
- Committer:
- tichise
- Date:
- Mon Jun 04 23:14:53 2018 +0000
- Revision:
- 0:772ec1673170
new
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tichise | 0:772ec1673170 | 1 | #include "mbed.h" |
tichise | 0:772ec1673170 | 2 | #include "TI_TB6612FNG.h" |
tichise | 0:772ec1673170 | 3 | |
tichise | 0:772ec1673170 | 4 | TI_TB6612FNG tb6612FNG(p21, p20, p19, p22, p18, p17, p12); |
tichise | 0:772ec1673170 | 5 | |
tichise | 0:772ec1673170 | 6 | int main() { |
tichise | 0:772ec1673170 | 7 | float speed = 0.6; |
tichise | 0:772ec1673170 | 8 | tb6612FNG.forward(speed); |
tichise | 0:772ec1673170 | 9 | |
tichise | 0:772ec1673170 | 10 | while(1) { |
tichise | 0:772ec1673170 | 11 | } |
tichise | 0:772ec1673170 | 12 | } |