Simple demo for exercising the board
Dependencies: MAX11300 MAX4822 OneWire Terminal ds3231 mbed
Diff: main.cpp
- Revision:
- 11:fe03fb61fb08
- Parent:
- 10:5c9242143a30
- Child:
- 12:97bc95dbfc64
--- a/main.cpp Mon Mar 06 23:17:57 2017 +0000 +++ b/main.cpp Mon Mar 06 23:31:35 2017 +0000 @@ -178,21 +178,10 @@ 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: