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.
IDevKit.h@28:4c0d163ba01a, 2019-06-10 (annotated)
- Committer:
- spadaaa
- Date:
- Mon Jun 10 18:30:41 2019 +0000
- Revision:
- 28:4c0d163ba01a
- Parent:
- 11:dbc310addbf6
final test
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| loicguibert | 11:dbc310addbf6 | 1 | #pragma once |
| loicguibert | 11:dbc310addbf6 | 2 | |
| loicguibert | 11:dbc310addbf6 | 3 | class IDevKit { |
| loicguibert | 11:dbc310addbf6 | 4 | public: |
| loicguibert | 11:dbc310addbf6 | 5 | // method called for toggling led 1 |
| loicguibert | 11:dbc310addbf6 | 6 | virtual void toggleLed1(void) = 0; |
| loicguibert | 11:dbc310addbf6 | 7 | |
| loicguibert | 11:dbc310addbf6 | 8 | // method called for getting battery level |
| loicguibert | 11:dbc310addbf6 | 9 | virtual uint8_t getBatteryLevel(void) = 0; |
| loicguibert | 11:dbc310addbf6 | 10 | |
| loicguibert | 11:dbc310addbf6 | 11 | // for configuring the I2C bus |
| loicguibert | 11:dbc310addbf6 | 12 | virtual PinName getSCL(void) = 0; |
| loicguibert | 11:dbc310addbf6 | 13 | virtual PinName getSDA(void) = 0; |
| loicguibert | 11:dbc310addbf6 | 14 | virtual PinName getDataRdy(void) = 0; |
| loicguibert | 11:dbc310addbf6 | 15 | }; |
| loicguibert | 11:dbc310addbf6 | 16 |