jy901 9-axis jyro sensor

Dependencies:   jy901

Files at this revision

API Documentation at this revision

Comitter:
piroro4560
Date:
Wed Nov 06 09:22:25 2019 +0000
Parent:
0:73712a48e06d
Commit message:
jy901 9-axis jyro sensor

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 73712a48e06d -r 42b2debe2c64 main.cpp
--- a/main.cpp	Fri Oct 25 09:36:43 2019 +0000
+++ b/main.cpp	Wed Nov 06 09:22:25 2019 +0000
@@ -1,8 +1,8 @@
 #include "mbed.h"
 #include "jy901.h"
 
-JY901 jy(D5, D7); //sda, scl
-Serial pc(USBTX, USBRX);
+JY901 jy(PB_9, PB_8); //sda, scl
+Serial pc(USBTX, USBRX, 115200);
 
 int main() {
     float x, y, z;