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: microbit microbitmpr121
main.cpp@4:52b5898cc757, 2017-01-16 (annotated)
- Committer:
- owenbrotherwood
- Date:
- Mon Jan 16 19:43:42 2017 +0000
- Revision:
- 4:52b5898cc757
- Parent:
- 2:b65d70daef8d
- Child:
- 5:fc4f3c9cb438
Next: functionality
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| owenbrotherwood | 0:026bd8011ba6 | 1 | #include "MicroBit.h" |
| owenbrotherwood | 0:026bd8011ba6 | 2 | #include "MicroBitMpr121.h" |
| owenbrotherwood | 0:026bd8011ba6 | 3 | |
| owenbrotherwood | 4:52b5898cc757 | 4 | MicroBitI2C i2c = MicroBitI2C(I2C_SDA0, I2C_SCL0); |
| owenbrotherwood | 4:52b5898cc757 | 5 | MicroBitMpr121 mpr121 = MicroBitMpr121(i2c); |
| owenbrotherwood | 0:026bd8011ba6 | 6 | |
| owenbrotherwood | 0:026bd8011ba6 | 7 | int main() |
| owenbrotherwood | 1:f8107f2b2b99 | 8 | { |
| owenbrotherwood | 0:026bd8011ba6 | 9 | } |
| owenbrotherwood | 0:026bd8011ba6 | 10 |