Damien George 6125ba4a7f stmhal: Make switch a class, to follow suit of all other modules.
Instead of pyb.switch() as a function, it's more consistent (with
respect to all the other modules and peripherals) to have
pyb.Switch() create a switch object.  This then generalises to having
multiple switches.  Call the object to get its state.  Use sw.callback
to set the callback function for when the switch is pressed.
2014-04-21 18:23:50 +01:00
..
2014-04-20 00:16:30 +01:00
2014-03-11 23:55:41 -07:00
2014-04-20 00:16:30 +01:00
2014-03-24 15:15:33 +00:00
2014-04-20 00:16:30 +01:00
2014-03-19 13:11:59 +00:00
2014-03-12 18:15:55 -07:00
2014-03-12 18:15:55 -07:00
2014-03-30 13:35:08 +01:00
2014-03-19 13:11:59 +00:00
2014-04-20 00:16:30 +01:00
2014-03-12 18:15:55 -07:00
2014-04-21 12:03:09 +01:00
2014-04-17 00:13:13 +01:00
2014-04-20 00:16:30 +01:00
2014-04-21 12:03:09 +01:00
2014-04-21 12:03:09 +01:00
2014-03-24 12:23:37 +00:00
2014-04-20 00:45:59 +01:00
2014-04-20 00:45:59 +01:00
2014-04-21 12:45:59 +01:00
2014-04-20 00:16:30 +01:00
2014-03-11 23:55:41 -07:00
2014-03-12 18:15:55 -07:00
2014-04-21 12:03:09 +01:00
2014-04-21 12:03:09 +01:00