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.
Diff: main.cpp
- Revision:
- 1:4a1cf62c486c
- Parent:
- 0:aa80dc78d8bc
--- a/main.cpp Sat Jul 05 12:03:29 2014 +0000 +++ b/main.cpp Sat Jul 05 12:27:28 2014 +0000 @@ -74,8 +74,8 @@ int status = ReadStatus(); //ステータスピンの情報を読み取る TOCOS.printf("%d,%d,%d,%d,%d,%d,%d\n" - ,Accel_Ax.read_u16(),Accel_Ay.read_u16(),Accel_Az.read_u16()//加速度A(X,Y,Z) - ,Accel_Bx.read_u16(),Accel_By.read_u16(),Accel_Bz.read_u16()//加速度B(X,Y,Z) + ,(Accel_Ax.read_u16()>>4),(Accel_Ay.read_u16()>>4),(Accel_Az.read_u16()>>4)//加速度A(X,Y,Z) + ,(Accel_Bx.read_u16()>>4),(Accel_By.read_u16()>>4),(Accel_Bz.read_u16()>>4)//加速度B(X,Y,Z) ,status); //ステータス 1~16の数値 }