Electronic Components Datasheet Search
  Indian  ▼
ALLDATASHEET.IN

X  

DEV-13044 Datasheet(PDF) 7 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) 7 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
 7 / 11 page
background image
cat value 
With a button pressed, you should see a 1. When the button is not pressed
you should see a 0. Using the up arrow, you can recall previously run
commands.
C++ Examples
We’re assuming that you’re using the Eclipse IDE as detailed in our Beyond
Arduino tutorial. If you aren’t, you’ll need to go to that tutorial to get up to
speed.
Hardware Connection
Hardware support for this library is simple; one basic red LED and one
momentary pushbutton. We’re using a 2N3904 NPN transistor to drive the
LED, however, as the drive strength of the outputs on the Pi Block is quite
weak. As you can see in the diagram, you’ll also need a couple of 1kΩ
resistors and a single 330Ω resistor.
While we’ve used GPIO45 and GPIO46 in this example, this code can be
used with any of the pins on the Pi breakout. The GPIO to MRAA pin map
can be found in the Resources and Going Further section.
Code
Follow the instructions in the programming tutorial to create a new project
named “SparkFun_Pi_Block_Example”. Once you’ve created the project,
open the “SparkFun_Pi_Block_Example.cpp” file and replace all the
existing code with the code block below.
Page 7 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