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.
Diff: demo.cpp
- Revision:
- 19:a259bc128867
- Parent:
- 18:829f3e2c064c
- Child:
- 20:88e137b9ea46
--- a/demo.cpp Thu Sep 15 12:40:48 2016 +0000 +++ b/demo.cpp Thu Sep 15 13:31:53 2016 +0000 @@ -71,6 +71,12 @@ puts("\n\r Now read one word"); if (media_ReadByte()) puts("\n\r Read word : OK"); else puts("\n\r Read word : FAIL"); + + puts("\n\r Now write one byte"); + media_SetSector(1); + if (media_WriteByte('a')) puts("\n\r Write Byte : OK"); + else puts("\n\r Write Byte : FAIL"); + } //************************************************************************** // Demo program that goes through graphics based functions