Shell code for spinning LED using mbed

Dependencies:   SDFileSystem mbed-rtos mbed wave_player

Fork of 6408proj_spin_LED by ECE4180proj

main.cpp

Committer:
taoqiuyang
Date:
2016-02-21
Revision:
0:6fdd6e6268f3

File content as of revision 0:6fdd6e6268f3:

/*
ME6408 Project
Part2, spining LED, POV display module  
*/
#include "mbed.h"
#include "rtos.h"
#include "SDFileSystem.h" //read SD card
#include "wave_player.h"  //play sound

SDFileSystem sd(p5, p6, p7, p8, "sd"); //SD card, 
                                       //in case RAM is not sufficient
AnalogOut DACout(p18);
wave_player waver(&DACout);

Serial pc(USBTX, USBRX); // tx, rx, debug serial
Serial wireless_module(p28, p27); //wireless module connection

InterruptIn photo_interrupt(p5);


//Declare LED array code here 

void photo_int_isr() {
    
}

int main(){
    photo_interrupt.rise(&photo_int_isr);  // attach the address of the flip function to the rising edge
    
    while (true) {

    }
}