Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 20046

Re: intel edison mraa gpio output initial status

$
0
0

Actually, I apply the edison on the 1-Wire interface.

In the interface, the pin status would switch direction while reading data.

And the low status usually mean the trigger signal for the device.

The pin always pulls up through the resistor to Vcc I provide.

So I need the MRAA_GPIO_OUT init status to high.

 

mraa_gpio_context gpio;

gpio = mraa_gpio_init(pin);  

mraa_gpio_use_mmaped(gpio, 1);

mraa_gpio_dir(gpio, MRAA_GPIO_OUT);    ===> getting low here

mraa_gpio_write(gpio, 1);                             ===> getting high here


Viewing all articles
Browse latest Browse all 20046

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>