Created
October 26, 2014 11:25
-
-
Save YuuichiAkagawa/321cea0b21281cc56b93 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdio.h" | |
#include "stdio.h" | |
#include <unistd.h> | |
#include "mraa.h" | |
int main(int argc, char **argv) | |
{ | |
mraa_gpio_context gpio; | |
gpio = mraa_gpio_init(13); //Edison Arduino Expansion Board D13 | |
mraa_gpio_dir(gpio, MRAA_GPIO_OUT); | |
for(;;){ | |
mraa_gpio_write(gpio, 1); | |
usleep(50000); | |
mraa_gpio_write(gpio, 0); | |
usleep(50000); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment