altos: Add 'ao_button_get' to button driver
authorKeith Packard <keithp@keithp.com>
Thu, 28 Jul 2016 04:28:34 +0000 (21:28 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 2 Aug 2016 23:55:11 +0000 (16:55 -0700)
commitbe84201495fa3cabd699012e57e797355e2bd792
tree3d857549c57476302aa98579d7a8ad39806bd077
parenta6701283af7ed2b3016a910d6edbe4a5e8304581
altos: Add 'ao_button_get' to button driver

This returns the current state of the button; useful to check what the
value is at startup.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_button.c
src/drivers/ao_button.h