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.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 3:43ec9759b4ab
- Parent:
- 2:42900b8c9a14
- Child:
- 4:040903da458c
diff -r 42900b8c9a14 -r 43ec9759b4ab main.cpp --- a/main.cpp Mon Mar 29 06:39:06 2021 +0000 +++ b/main.cpp Mon Mar 29 07:11:52 2021 +0000 @@ -43,6 +43,8 @@ pc.printf("\nSTM32 Loadcell example\r\n"); while(1) { led = !led; + hx_clk=1; + wait(1.0); hx_clk=0; wait(1.0); dt=0; @@ -54,6 +56,9 @@ hx_clk=0; wait_us(1); } + hx_clk=1; + wait_us(1); + hx_clk=0; pc.printf("data = %08x %d ",dt,dt); wt = (float)(dt) * 0.000038f - 1.2f; pc.printf("waight = %3.3f\r\n",wt);