Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: R1Arobo_Maika_B 2021Arobo_UMAPYOI 2021Arobo_YUMIPYOI
Diff: Serial6050.cpp
- Revision:
- 3:601cfc41e50a
- Parent:
- 2:00a8daf9203b
- Child:
- 4:413d60ebdcf2
--- a/Serial6050.cpp Fri Oct 05 07:34:34 2018 +0000
+++ b/Serial6050.cpp Wed Apr 17 07:57:05 2019 +0000
@@ -7,9 +7,9 @@
void Serial6050::init()
{
+ rst = 1;
+ wait(0.5);
rst = 0;
- wait(0.2);
- rst = 1;
while(1) {
serial.putc(100);
if(serial.readable()) {
@@ -31,7 +31,7 @@
} else if(data < old && old - data > 127) {
Bias += 255;
} else {
-
+
}
Deg = data + Bias;
old = data;