some progress

This commit is contained in:
2024-03-08 09:57:47 +01:00
parent 68bb67e9af
commit 40dbb62db7
12 changed files with 172 additions and 64 deletions

11
led.c
View File

@ -20,16 +20,14 @@ void ledBlueOff() {
P1OUT &= ~BIT1;
}
void ledExec() {
void ledExec(void *args) {
static int i = 0;
if (i == 0) {
ledGreenOff();
ledBlueOn();
i = 1;
} else {
ledGreenOn();
ledBlueOff();
i = 0;
}
}
@ -38,9 +36,12 @@ void ledInit() {
// BIT0: green
// BIT1: blue
P1DIR |= BIT0|BIT1;
P1OUT |= BIT0|BIT1;
schAdd(ledExec, NULL, 0, 50);
ledGreenOff();
ledBlueOff();
// schAdd(ledExec, NULL, 0, 50);
}