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: ADXL345_I2C MMA8652FC Sht31 TinyGPS mbed Chainable_RGB_LED
Fork of ina-hack-test by
Diff: EEAB-P1/Eeabp1.cpp
- Revision:
- 6:ae7b9f0a13f7
- Parent:
- 1:195da8230785
--- a/EEAB-P1/Eeabp1.cpp Tue Aug 22 02:44:55 2017 +0000
+++ b/EEAB-P1/Eeabp1.cpp Tue Aug 22 08:50:17 2017 +0000
@@ -279,6 +279,22 @@
return 0;
}
+int Eeabp1::setGroveDio(EeabGrovePort port, EeabGroveSig sig , EeabGroveDio val)
+{
+ switch (port) {
+ case GROVE_CH1:
+ (sig == GROVE_SIG1) ? *grv_p1s1do = val : *grv_p1s2do = val;
+ break;
+ case GROVE_CH2:
+ (sig == GROVE_SIG1) ? *grv_p2s1do = val : *grv_p2s2do = val;
+ break;
+ default:
+ break;
+ }
+ return 0;
+}
+
+
int Eeabp1::getGroveDio(EeabGrovePort port, EeabGroveSig sig)
{
switch (port) {
