4180 Lab 2

Dependencies:   mbed wave_player Servo 4DGL-uLCD-SE Motor SDFileSystem LSM9DS1_Library_cal PinDetect X_NUCLEO_53L0A1

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers part9.h Source File

part9.h

00001 #include "mbed.h"
00002 #include "Servo.h"
00003 
00004 Servo servo(p9);
00005 AnalogIn pot(p9);
00006 
00007 int run_part9() {
00008     while (1) {
00009         servo = pot;
00010         wait(0.2);
00011     }
00012 }