ECE595 - Lab 3 Part 2 - Joystick Program - TA

Committer:
priyank12p
Date:
Sat Jan 16 00:19:21 2021 +0000
Revision:
3:b7e534ebe607
Parent:
2:af5f9d175643
Child:
4:da0f4a1c6416
Initial Commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
priyank12p 0:4cb6e9d0da34 1 #include "mbed.h"
priyank12p 3:b7e534ebe607 2 DigitalOut vibMotor(D6);
priyank12p 1:af23cbc41990 3
priyank12p 2:af5f9d175643 4 int main (void) {
priyank12p 3:b7e534ebe607 5 int timer = 1;
priyank12p 2:af5f9d175643 6 while(1) {
priyank12p 3:b7e534ebe607 7 vibMotor = 1;
priyank12p 3:b7e534ebe607 8 wait(timer);
priyank12p 3:b7e534ebe607 9 vibMotor = 0;
priyank12p 3:b7e534ebe607 10 wait(timer);
priyank12p 0:4cb6e9d0da34 11 }
priyank12p 1:af23cbc41990 12 }