Electronic Components Datasheet Search
  English  ▼

X  

DEV-13042 Datasheet(PDF) 5 Page - SparkFun Electronics

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

DEV-13042 Datasheet(HTML) 5 Page - SparkFun Electronics

  DEV-13042 Datasheet HTML 1Page - SparkFun Electronics DEV-13042 Datasheet HTML 2Page - SparkFun Electronics DEV-13042 Datasheet HTML 3Page - SparkFun Electronics DEV-13042 Datasheet HTML 4Page - SparkFun Electronics DEV-13042 Datasheet HTML 5Page - SparkFun Electronics DEV-13042 Datasheet HTML 6Page - SparkFun Electronics DEV-13042 Datasheet HTML 7Page - SparkFun Electronics DEV-13042 Datasheet HTML 8Page - SparkFun Electronics DEV-13042 Datasheet HTML 9Page - SparkFun Electronics  
Zoom Inzoom in Zoom Outzoom out
 5 / 9 page
background image
/*************************************************************
*************** 
 * SparkFun_PWM_Edison_Block_Example.cpp 
 * Example code showing how to use the SparkFun PWM Edison Blo
ck 
 * Mike Hord @ SparkFun Electronics 
 * 9 June 2015 
 * https://github.com/sparkfun/SparkFun_PWM_Block_for_Edison_C
PP_Library 
 * 
 * This file is a demonstration program showing the various fu
nctions that we've 
 * provided for working with the PCA9685 IC on the SparkFun PW
M Edison Block. 
 * It uses an RGB LED and a small servo motor to show what th
e library can do. 
 * 
 * Resources: 
 * Requires Intel's MRAA framework. This can be downloaded fro
m either the 
 * GitHub site (https://github.com/intel­iot­devkit/mraa) or i
n pre­built form 
 * from http://iotdk.intel.com/sdk/mraa­update/. 
 * 
 * Development environment specifics: 
 * Developed in the Intel iot­ide­dk Eclipse on Win 7 (v1.0.0.
201502201135) 
 * Using lib­mraa v0.6.2 
 * On Edison poky­linux image build ww18­15 
 * 
 * This code is beerware; if you see me (or any other SparkFu
n employee) at the 
 * local, and you've found our code helpful, please buy us a r
ound! 
 * ***********************************************************
*****************/ 
#include "mraa.hpp" 
#include "SparkFun_pca9685_Edison.h" 
#include <iostream> 
#include <unistd.h> 
using namespace std; 
// These channel definitions mirror the ones used in the PWM B
lock hookup guide. 
#define SERVO 0 
#define RED 2 
#define GREEN 3 
#define BLUE 4 
// Uncomment one or both of these defines to enable the approp
riate demo. Do 
//  note servo motors and LEDs are best used at different freq
uencies and 
//  polarities, so hooking both at once will give you bad resu
lts. 
#define SERVO_DEMO 
//#define LED_DEMO 
// main() runs once and completes; there's no infinite loop he
re. Do note, 
//  though, that whatever settings you write to the PWM modul
e will persist 
Page 5 of 9



Html Pages

1 2 3 4 5 6 7 8 9


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