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: mbed
main.cpp
- Committer:
- benparkes
- Date:
- 2019-07-24
- Revision:
- 7:8b1c2d0bee9b
- Parent:
- 6:8299fad3de60
- Child:
- 9:e6ab91e70308
File content as of revision 7:8b1c2d0bee9b:
#include "mbed.h"
#include "main.hpp"
#include "variables.hpp"
#include "trigger.hpp"
void donothing(void){
}
int main() {
clockin.mode(PullUp);
dac.format(8,0);
dac.frequency(50000000);
pc.baud(115200);
allledoff();
updateled();
runonce();
clockin.fall(&firetrig);
loopsw.fall(&loopFall);
while(1) {
//pc.printf("SO %f \n\r",sumoctives);
getfaderdata();
gettempodata();
pc.printf("TEMPO %f \n\r",tempoval);
// if(tempoval < 32){
//}
//else {
// clockin.fall(&donothing);
// }
}
}