Fahrudin Brbutovic Orhan Ljubuncic

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 
00003 PwmOut osc(dp18);
00004 AnalogIn pot(dp9);
00005 
00006 int main()
00007 
00008 {
00009     osc=0;
00010     osc.period_us(500);
00011     
00012     
00013     
00014     while(1)
00015     {
00016         osc.write(pot.read());
00017     }
00018 
00019 }