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: Ka.h
- Revision:
- 0:2270b7a3a8ad
- Child:
- 2:14bfd1fc2163
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Ka.h Thu Nov 16 15:49:53 2017 +0000 @@ -0,0 +1,28 @@ +#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 \ No newline at end of file