Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: TextLCD mbed MMA8451Q TSI
main.cpp
- Committer:
- mfurlanetto
- Date:
- 2015-08-14
- Revision:
- 0:f48fccfff709
- Child:
- 1:47973f27d645
File content as of revision 0:f48fccfff709:
#include "mbed.h"
#include <Button.cpp>
#define DO4 262
#define RE4 294
#define MI4 330
#define FA4 349
#define SOL4 392
#define LA4 440
#define SI4 494
Speaker speaker (PTA4);
DigitalOut led1(LED1);
DigitalOut led2(LED2);
DigitalOut led3(LED3);
int main(){
led1=1;
led2=1;
led3=1;
Button a (PTA1, LA4, &speaker, &led1);
Button b (PTA2, DO4, &speaker, &led2);
Button c (PTA12, FA4, &speaker, &led3);
while (true){
}
}
