Update Sound4Calc.c

This commit is contained in:
flo 2017-01-08 10:09:24 +01:00
parent ea5b8682b6
commit 2beee17123
1 changed files with 7 additions and 6 deletions

View File

@ -1,4 +1,3 @@
#include "addresses.h"
#include "Sound4Calc.h"
@ -39,14 +38,16 @@ int main(void)
case KEY_RIGHT : sleep+=5; break;
case KEY_LEFT : sleep-=5; break;
case KEY_EXE :
while(1)
i=0;
while(i<50000)
{
ResetPin();
timer_start(TIMER_USER, sleep, Clock_Hz, SetPin, 1000);
// ResetPin();
timer_start(TIMER_USER, sleep, Clock_Hz, ResetPin, 0);
SetPin();
i++;
}
//timer_stop(1);
timer_stop(TIMER_USER);
break;
case KEY_EXIT :
return 1;