Checks if the `Grove Button`_ is pressed. :returns: ``True`` or ``False``, if the `Grove Button`_ is pressed. :rtype: bool
(self)
| 1367 | raise |
| 1368 | |
| 1369 | def is_button_pressed(self): |
| 1370 | """ |
| 1371 | Checks if the `Grove Button`_ is pressed. |
| 1372 | |
| 1373 | :returns: ``True`` or ``False``, if the `Grove Button`_ is pressed. |
| 1374 | :rtype: bool |
| 1375 | |
| 1376 | """ |
| 1377 | return self.read() == 1 |
| 1378 | ########################## |
| 1379 | |
| 1380 |
no test coverage detected