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.
Revision 0:a84b2e6d5b64, committed 2013-03-22
- Comitter:
- dal
- Date:
- Fri Mar 22 14:36:46 2013 +0000
- Commit message:
- none
Changed in this revision
i2c.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/i2c.cpp Fri Mar 22 14:36:46 2013 +0000 @@ -0,0 +1,21 @@ +// Read from I2C slave at address 0x62 + +#include "mbed.h" + +I2C i2c(p9, p10); + +int main() { + int address = 0x62; + char data[2] = {1,2}; + + i2c.frequency(1000000); + + while(1) + { + i2c.start(); + + //i2c.read(address, data, 2); + + i2c.stop(); + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Mar 22 14:36:46 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/5e5da4a5990b \ No newline at end of file