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.
Fork of SX1276GenericLib by
Diff: Arduino-mbed-APIs/arduino-mbed.h
- Revision:
- 92:ee3de1d353cd
- Parent:
- 90:d98572047c9c
- Child:
- 97:3d5d489206aa
--- a/Arduino-mbed-APIs/arduino-mbed.h Tue Oct 24 20:01:02 2017 +0200
+++ b/Arduino-mbed-APIs/arduino-mbed.h Tue Oct 24 20:02:42 2017 +0200
@@ -28,7 +28,7 @@
#endif
class DigitalOut;
-void InitSerial(Stream *serial, int timeout_ms, DigitalOut *led);
+void InitSerial(Stream *serial, int timeout_ms, DigitalOut *led, bool waitForSerial);
extern Stream *ser;
extern bool SerialUSB_active;
@@ -242,6 +242,12 @@
break;
}
}
+ int read () {
+ if (digitalRead(_gpioPin) == HIGH)
+ return 0;
+ else
+ return 1;
+ }
private:
int _gpioPin;
Callback<void()> _func;
