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: src/boards.cpp
- Revision:
- 52:2b3b194144da
- Parent:
- 51:abe8a392d50b
--- a/src/boards.cpp Wed Mar 13 19:10:40 2019 +0000
+++ b/src/boards.cpp Thu Mar 14 00:21:35 2019 +0000
@@ -46,6 +46,15 @@
}
/*******************************************************************************
+initI2C
+*******************************************************************************/
+void setFan(unsigned int temperatureVal){
+ float fan_duty = temperatureVal/TEMPERATURE_THRESH;
+ fan_on.period(FAN_PERIOD);
+ fan_on.write(fan_duty);
+}
+
+/*******************************************************************************
initBoards
*******************************************************************************/
void initBoards(struct adcValues adcVals){
@@ -61,7 +70,9 @@
*******************************************************************************/
unsigned short getMasterCommands(void){
unsigned short slave_code = 0;
- //NEW code here
+ if(pulseReady){
+ slave_code = Slave_RXstr();
+ }
return slave_code;
}