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:
- 18:829f3e2c064c
- Parent:
- 16:cb072eea16e9
- Child:
- 19:a259bc128867
--- a/demo.cpp Thu Sep 15 12:28:47 2016 +0000 +++ b/demo.cpp Thu Sep 15 12:40:48 2016 +0000 @@ -64,9 +64,13 @@ else puts("\n\r Read Sector : FAIL"); puts("\n\r Now read one byte"); - media_SetAdd(1); + media_SetAdd(510); if (media_ReadByte()) puts("\n\r Read Byte : OK"); else puts("\n\r Read Byte : FAIL"); + + puts("\n\r Now read one word"); + if (media_ReadByte()) puts("\n\r Read word : OK"); + else puts("\n\r Read word : FAIL"); } //************************************************************************** // Demo program that goes through graphics based functions