Synthesizer / Mbed 2 deprecated DBSMUSICPROJ2

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "main.hpp"
00003 #include "variables.hpp"
00004 #include "trigger.hpp"
00005 void donothing(void){
00006     }
00007 
00008 int main() {
00009     clockin.mode(PullUp);
00010     dac.format(8,0);
00011     dac.frequency(50000000);
00012     pc.baud(115200);
00013     allledoff();
00014     updateled(); 
00015     runonce();
00016     clockin.fall(&firetrig);
00017 
00018   while(1) { 
00019   //pc.printf("SO %f \n\r",sumoctives);
00020   getfaderdata(); 
00021   gettempodata();
00022   pc.printf("TEMPO %f \n\r",tempoval);
00023 //  if(tempoval < 32){
00024 //}
00025 //else {
00026 //    clockin.fall(&donothing);
00027 //    }
00028 }
00029 }