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: yoda2.h
- Revision:
- 20:ec9d4f6a16ac
- Parent:
- 19:0356e54240cc
- Child:
- 21:5c6b3657c3cb
diff -r 0356e54240cc -r ec9d4f6a16ac yoda2.h --- a/yoda2.h Tue Sep 24 14:05:58 2019 +0000 +++ b/yoda2.h Sat Oct 19 02:10:12 2019 +0000 @@ -16,6 +16,10 @@ #define BUTTON2 PB_10 // left // down #define BUTTON3 PB_4 // enter // next #define BUTTON4 PB_5 // menu // back +#define RELAY_4 PD_2 +#define RELAY_3 PC_11 +#define RELAY_2 PC_10 +#define RELAY_1 PC_12 #endif #define BUTTON1_HOLD_EVENT 0x0001 @@ -77,6 +81,20 @@ #ifdef YODA2 #define SDA PA_10//D2//D2//PB_9 //PF_0 // I2C SDA pin #define SCL PA_9//D8//D8//PB_8 //PF_1 // I2C SCL pin +#define LCD_SDA PB_9 // I2C SDA pin +#define LCD_SCL PB_8 // I2C SCL pin +#define SCALE_SDA PA_1 +#define SCALE_SCL PA_0 +#define CAN_RD PA_11 +#define CAN_TD PA_12 +#define DIN1 PC_0 +#define DIN2 PC_1 +#define DIN3 PB_0 +#define DIN4 PA_4 +#define DIN5 PC_3 +#define DIN6 PC_2 +#define DIN7 PB_7 +#define DIN8 PA_15 #endif #endif @@ -98,6 +116,7 @@ IceMaker=6 }; + struct ScaleCalibrationData { unsigned int calibrationWeight; // the weight (g) used for calibration for example 1000g or 10g. The maximum value is 3000. long offsetValue; // the value for scale offset