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:
- 4:040903da458c
- Parent:
- 3:43ec9759b4ab
- Child:
- 5:fbeb85ebd47b
--- a/main.cpp Mon Mar 29 07:11:52 2021 +0000 +++ b/main.cpp Tue Aug 03 02:54:13 2021 +0000 @@ -40,6 +40,7 @@ int lwaight; float wt; uint32_t dt; +#if 0 pc.printf("\nSTM32 Loadcell example\r\n"); while(1) { led = !led; @@ -63,11 +64,12 @@ wt = (float)(dt) * 0.000038f - 1.2f; pc.printf("waight = %3.3f\r\n",wt); } - +#endif initLIS3DH(); pc.printf("\nSTM32 ADC internal channels reading example\r\n"); + pc.printf("\nSTM32 3D acc sensor example\r\n"); while(1) { pc.printf("ADC Temp = %f\r\n", (adc_temp.read()*100)); pc.printf("ADC VRef = %f\r\n", adc_vref.read());