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:
- 18:e6ed582f7022
- Parent:
- 17:faa4d4976d22
- Child:
- 19:0356e54240cc
--- a/main.cpp Sat Jul 06 09:47:09 2019 +0000 +++ b/main.cpp Sat Jul 20 03:57:26 2019 +0000 @@ -4,7 +4,7 @@ #include "eeprom_cust.h" //#include "digitLCD.h" #include "SB1602E.h" -#include "eventflags.h" +#include "yoda2.h" EventFlags button_event_flags; EventFlags LCD_update_flags; @@ -19,7 +19,7 @@ //HX711 hx711(D8, D9);// data, clk HX711 hx711(PA_14, PA_15); #endif -extern void scaleCalibration(); +extern void scaleCalibration(bool release_led); extern void init_scale(); Thread scale_thread; extern void scale_reading(); @@ -109,7 +109,7 @@ if (button_status == 0) { printf("button0 down\r\n"); - scaleCalibration(); + scaleCalibration(true); button_status = button0.read(); if (button_status == 0) { @@ -364,7 +364,7 @@ // eeprom_test(); #if 1 -// scaleCalibration(); +// scaleCalibration(true); init_scale(); scale_thread.start(scale_reading); mainmenu_thread.start(main_menu);