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: SoftSerial SDFileSystem mbed wave_player
Diff: Relay.cpp
- Revision:
- 29:c2d95d88ee0b
- Parent:
- 25:d28cfa47ff46
--- a/Relay.cpp Wed May 17 00:24:13 2017 +0000 +++ b/Relay.cpp Wed May 17 09:43:38 2017 +0000 @@ -16,6 +16,10 @@ } } +void Relay::play_last(){ + +} + void Relay::set_volume(){ while (!usb.readable()); int volume = usb.getc(); @@ -35,6 +39,8 @@ int b = usb.getc(); while(!softSerial.writeable()); softSerial.putc(b); + while (!usb.writeable()); + usb.putc(ACK); size |= b << ((3-i) << 3); } @@ -44,7 +50,7 @@ // get max 64 bytes int k = 0; - for (k; k < 64; ++k) { + for (k; k < 512; ++k) { if(j == size){ break; }