CreatorDev / LetMeCreateIoT

LetMeCreate library for the PIC32MX clicker
BSD 3-Clause "New" or "Revised" License
5 stars 8 forks source link

Improve gpio module #19

Closed ghost closed 7 years ago

ghost commented 7 years ago
mtusnio commented 7 years ago

Any testing done for this one?

ghost commented 7 years ago

I tried that

gpio_init(GPIO_AN);
uint8_t dir = 0;
gpio_get_direction(GPIO_AN, &dir);
if (dir == GPIO_INPUT)
   leds_set(LED1);

And it worked.

I have no tried yet for all pins & output.

mtusnio commented 7 years ago

I'll merge it in and do testing before merging dev to master