Working!

Dependencies:   4DGL-uLCD-SE DebounceIn LSM9DS1_Library_cal SDFileSystem TextLCD mbed-rtos mbed wave_player_appbd

Committer:
taylornichols
Date:
Sun Oct 30 01:21:06 2016 +0000
Revision:
2:047c9c4b8db3
Parent:
1:d1d12f229b9a
Child:
3:1688f7a77ed8
l4 all libs main;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
taylornichols 0:f29cfb036e34 1 #include "mbed.h"
taylornichols 0:f29cfb036e34 2 #include "TextLCD.h"
taylornichols 0:f29cfb036e34 3
taylornichols 1:d1d12f229b9a 4 // LEDs on mbed
taylornichols 0:f29cfb036e34 5 DigitalOut led1( LED1 );
taylornichols 0:f29cfb036e34 6 DigitalOut led2( LED2 );
taylornichols 0:f29cfb036e34 7 DigitalOut led3( LED3 );
taylornichols 0:f29cfb036e34 8 DigitalOut led4( LED4 );
taylornichols 0:f29cfb036e34 9
taylornichols 2:047c9c4b8db3 10 // debugging via pc
taylornichols 2:047c9c4b8db3 11 Serial pc( USBTX , USBRX );
taylornichols 2:047c9c4b8db3 12
taylornichols 2:047c9c4b8db3 13 // SD card
taylornichols 2:047c9c4b8db3 14 SDFileSystem sd( p5 , p6 , p7 , p8 , "sd" );
taylornichols 2:047c9c4b8db3 15
taylornichols 1:d1d12f229b9a 16 // text display ( rs , e , d4-d7 )
taylornichols 2:047c9c4b8db3 17 //TextLCD txt( p22 , p23 , p24 , p25 , p26 , p27 );
taylornichols 2:047c9c4b8db3 18
taylornichols 2:047c9c4b8db3 19 // LCD ( tx , rx , reset )
taylornichols 2:047c9c4b8db3 20 uLCD_4DGL lcd( p28 , p27 , p30 );
taylornichols 1:d1d12f229b9a 21
taylornichols 2:047c9c4b8db3 22 // speaker
taylornichols 2:047c9c4b8db3 23 AnalogOut DACout( p18 );
taylornichols 2:047c9c4b8db3 24 PwmOut PWMout( p26 );
taylornichols 2:047c9c4b8db3 25 wave_player waver( & DACout , & PWMout );
taylornichols 2:047c9c4b8db3 26
taylornichols 2:047c9c4b8db3 27 // pushbutton
taylornichols 2:047c9c4b8db3 28 DebounceIn pb( p15 );
taylornichols 2:047c9c4b8db3 29 pb.set_debounce_us( 1000 );
taylornichols 2:047c9c4b8db3 30 pb.mode( PullUp );
taylornichols 2:047c9c4b8db3 31
taylornichols 2:047c9c4b8db3 32 // IMU ( sda , scl , ... )
taylornichols 2:047c9c4b8db3 33 LSM9DS1 imu( p9 , p10 , 0xD6 , 0x3C );
taylornichols 2:047c9c4b8db3 34
taylornichols 1:d1d12f229b9a 35
taylornichols 1:d1d12f229b9a 36 int main( )
taylornichols 1:d1d12f229b9a 37 {
taylornichols 2:047c9c4b8db3 38
taylornichols 0:f29cfb036e34 39 }