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: MAX11300 MAX4822 OneWire Terminal ds3231 mbed
Revision 9:a5fd406b24a6, committed 2016-12-02
- Comitter:
- j3
- Date:
- Fri Dec 02 19:32:39 2016 +0000
- Parent:
- 8:8e36fe48b351
- Child:
- 10:5c9242143a30
- Commit message:
- Updated ow lib
Changed in this revision
--- a/OneWire.lib Mon Aug 22 23:10:57 2016 +0000 +++ b/OneWire.lib Fri Dec 02 19:32:39 2016 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/teams/Maxim-Integrated/code/OneWire/#90ffca56ae0f +https://developer.mbed.org/teams/Maxim-Integrated/code/OneWire/#5bd0a7a82bb4
--- a/main.cpp Mon Aug 22 23:10:57 2016 +0000
+++ b/main.cpp Fri Dec 02 19:32:39 2016 +0000
@@ -123,6 +123,9 @@
MAX11300::CmdResult pixi_result;
MAX4822::CmdResult rly_drvr_result;
+ Timer t;
+ t.start();
+
while(user_entry != QUIT)
{
term.printf("1. Set RTC\n");
@@ -171,10 +174,21 @@
case 4:
rly_drvr_result = rly_drvr.set_relay(static_cast<MAX4822::RelayChannel>(relay));
+ t.reset();
if(rly_drvr_result != MAX4822::Success)
{
term.printf("Failed to set relay\n");
}
+ else
+ {
+ while(t.read_ms() < 2400);
+
+ rly_drvr_result = rly_drvr.reset_relay(static_cast<MAX4822::RelayChannel>(relay));
+ if(rly_drvr_result != MAX4822::Success)
+ {
+ term.printf("Failed to reset relay\n");
+ }
+ }
break;
case 5:
--- a/mbed.bld Mon Aug 22 23:10:57 2016 +0000 +++ b/mbed.bld Fri Dec 02 19:32:39 2016 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/2241e3a39974 \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/25aea2a3f4e3 \ No newline at end of file