examples: Update examples to use newer maa functions
* Use maa_init() before any other maa functions are called * Use ioNN instead of gpioXX, Using mapping Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
This commit is contained in:
@@ -29,10 +29,11 @@
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
maa_init();
|
||||
fprintf(stdout, "MAA Version: %d\nStarting Blinking on IO8\n",
|
||||
maa_get_version());
|
||||
maa_gpio_context* gpio;
|
||||
gpio = maa_gpio_init(26);
|
||||
gpio = maa_gpio_init(8);
|
||||
maa_gpio_dir(gpio, MAA_GPIO_OUT);
|
||||
|
||||
while (1) {
|
||||
|
||||
Reference in New Issue
Block a user