Electronic Components Datasheet Search
  Indian  ▼
ALLDATASHEET.IN

X  

DEV-13044 Datasheet(PDF) 8 Page - SparkFun Electronics

Part # DEV-13044
Description  Blocks for Intel짰 Edison - Pi Block
PDF  11 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  SPARKFUN [SparkFun Electronics]
Direct Link  https://www.sparkfun.com/
Logo SPARKFUN - SparkFun Electronics

DEV-13044 Datasheet(HTML) 8 Page - SparkFun Electronics

Back Button DEV-13044 Datasheet HTML 3Page - SparkFun Electronics DEV-13044 Datasheet HTML 4Page - SparkFun Electronics DEV-13044 Datasheet HTML 5Page - SparkFun Electronics DEV-13044 Datasheet HTML 6Page - SparkFun Electronics DEV-13044 Datasheet HTML 7Page - SparkFun Electronics DEV-13044 Datasheet HTML 8Page - SparkFun Electronics DEV-13044 Datasheet HTML 9Page - SparkFun Electronics DEV-13044 Datasheet HTML 10Page - SparkFun Electronics DEV-13044 Datasheet HTML 11Page - SparkFun Electronics  
Zoom Inzoom in Zoom Outzoom out
 8 / 11 page
background image
/***********************************************************
***** 
  Example file for SparkFun Pi Block Support 
  14 Jul 2015­ Mike Hord, SparkFun Electronics 
  Code developed in Intel's Eclipse IOT­DK 
  Modified on July 30, 2015 by Shawn Hymel, SparkFun Electroni
cs 
  This code requires the Intel mraa library to function; for m
ore 
  information see https://github.com/intel­iot­devkit/mraa 
  This code is beerware; if you use it, please buy me (or any 
other 
  SparkFun employee) a cold beverage next time you run into on
e of 
  us at the local. 
  ************************************************************
****/
#include "mraa.hpp"
#include <iostream>
#include <unistd.h>
using namespace mraa; 
using namespace std; 
int main()
// Oddly, GPIO pin assignment numbers when using the MRAA li
braries are not
//  the same as those inside the operating system. Thus, whi
le we're using
//  pin 46 as far as the OS is concerned to drive the LED, w
e're using pin 32
//  as far as MRAA is concerned. The cheat sheet for that ca
n be found here:
//  https://github.com/intel­iot­devkit/mraa/blob/master/doc
s/edison.md
  Gpio LEDPin(45);
  LEDPin.dir(DIR_OUT);
// Now do a quick little flicker.
  LEDPin.write(0);
usleep(100000);
  LEDPin.write(1);
usleep(100000);
  LEDPin.write(0);
// Alternatively, we can declare the pin in "raw" mode, whic
h has a slightly
//  different and more unwieldy constructor.
  Gpio buttonPin(32, true, true);
  buttonPin.dir(DIR_IN);
// In this infinite loop, we'll blink the LED once whenever 
someone presses
//  the button.
while (1)
  { 
Page 8 of 11



Html Pages

1 2 3 4 5 6 7 8 9 10 11


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com