| Electronic Components Datasheet Search |
|
DEV-13042 Datasheet(PDF) 8 Page - SparkFun Electronics |
|
|
|||||||||||||||||||||||||||||
DEV-13042 Datasheet(HTML) 8 Page - SparkFun Electronics |
|
8 / 9 page ![]() cout<<"Current mode register values: 0x"<<hex<<pwm.readModeR egisters()<<endl; cout<<"Current prescaler: "<<dec<<static_cast<int16_t>(pwm.g etPrescaler())<<endl; // This steps through the full range of your servo's rotatio n. It also shows // the start and stop time of the pulses, so you can see ho w those correspond // to different positions. for (int16_t i = servoMinAngle; i <= servoMaxAngle; i++) { pwm.getChlTime(SERVO, &startTime, &stopTime); pwm.setChlAngle(SERVO, i); cout<<"Start time: "<<dec<<startTime<<endl; cout<<"Stop time: "<<dec<<stopTime<<endl; usleep(100000); } cout<<"Servo demo complete!"<<endl; #endif return MRAA_SUCCESS; } Resources and Going Further Now that you have had a brief overview of the PWM Block, take a look at some of these other tutorials. These tutorials cover programming, Block stacking, and interfacing with the Intel Edison ecosystems. Edison General Topics: • General Guide to Sparkfun Blocks for Intel Edison • Edison Getting Started Guide • Loading Debian (Ubilinix) on the Edison Block Specific Topics: • PWM Block Git Repo • PWM Block C++ Library Repo Check out these other Edison related tutorials from SparkFun: SparkFun Blocks for Intel® Edison - Base Block A quick overview of the features of the Base Block. SparkFun Blocks for Intel® Edison - Console Block A quick overview of the features of the Console Block. Installing libmraa on Ubilinux SparkFun Blocks for Intel® Page 8 of 9 |
|
|
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 |
| 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 |