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.
Revision 1:a129c630cee0, committed 2019-03-21
- Comitter:
- hisyamfs
- Date:
- Thu Mar 21 13:50:22 2019 +0000
- Parent:
- 0:595938ba3741
- Child:
- 2:a45896ca96f0
- Commit message:
- tes
Changed in this revision
| CMPS_KRAI.cpp | Show annotated file Show diff for this revision Revisions of this file |
| CMPS_KRAI.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/CMPS_KRAI.cpp Sat Jul 21 14:22:08 2018 +0000
+++ b/CMPS_KRAI.cpp Thu Mar 21 13:50:22 2019 +0000
@@ -15,7 +15,6 @@
//CMPS11 maksimum 100kHz CMPS12 maksimum 400kHz
i2c->frequency(100000);
i2cAddress = address;
-
}
char CMPS_KRAI::readSoftwareRevision(void){
@@ -54,15 +53,15 @@
char calibrate_data2 = 0xF5;
char calibrate_data3 = 0xF7;
//kirim data 1
- Thread::wait(25);
+ wait_ms(25);
i2c->write(i2cAddress, ®isterNumber, 1);
i2c->write(i2cAddress, &calibrate_data1, 1);
//kirim data 2 delay 25ms
- Thread::wait(25);
+ wait_ms(25);
i2c->write(i2cAddress, ®isterNumber, 1);
i2c->write(i2cAddress, &calibrate_data2, 1);
//kirim data 3 delay 25ms
- Thread::wait(25);
+ wait_ms(25);
i2c->write(i2cAddress, ®isterNumber, 1);
i2c->write(i2cAddress, &calibrate_data3, 1);
}
@@ -73,4 +72,12 @@
//kirim data 1
i2c->write(i2cAddress, ®isterNumber, 1);
i2c->write(i2cAddress, &calibrate_data1, 1);
+}
+
+void CMPS_KRAI::eraseProfile() {
+
+}
+
+void CMPS_KRAI::storeProfile() {
+
}
\ No newline at end of file
--- a/CMPS_KRAI.h Sat Jul 21 14:22:08 2018 +0000
+++ b/CMPS_KRAI.h Thu Mar 21 13:50:22 2019 +0000
@@ -55,6 +55,14 @@
* Stop calibrate
*/
void stopCalibrate(void);
+
+ /**
+ /* Menghapus calibration profile
+ */
+ void eraseProfile();
+
+ // Menyimpan calibration profile
+ void storeProfile();
};
#endif /* CMPS_KRAI_H */