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.
Ka.h
- Committer:
- Kaniiii
- Date:
- 2017-11-16
- Revision:
- 0:2270b7a3a8ad
- Child:
- 2:14bfd1fc2163
File content as of revision 0:2270b7a3a8ad:
#ifndef Ka_FILE #define Ka_FILE #include "mbed.h" /** Ka class. * Lab assignment for manipulating led0 */ class Ka{ public : /** Constructor binds a object made from the Ka class to digitalout from mbed library */ Ka(); /** Function for setting led0 to "on" */ void set_led0(); /** Function for setting led0 to "off" */ void clear_led0(); /** Function for inverting led0 (on to off, off to on) */ void invert(); /** Function for making led0 blink X amount seconds */ void toggle (int a); private: DigitalOut m; }; #endif