Compare commits
2 Commits
WORKS_2
...
SecondEdit
Author | SHA1 | Date | |
---|---|---|---|
8155cf109c | |||
bd4731143d |
1
.hgtags
1
.hgtags
@ -1 +1,2 @@
|
|||||||
b4caefc05db1ac8c142e4427a59d7771e3ae1d38 WORKS_1
|
b4caefc05db1ac8c142e4427a59d7771e3ae1d38 WORKS_1
|
||||||
|
78b8b97f294d32c8d383ece023b32cd8076805f0 WORKS_2
|
||||||
|
@ -55,15 +55,9 @@ uint8_t digitValues[] = { EMPTY_ID, EMPTY_ID, EMPTY_ID };
|
|||||||
|
|
||||||
|
|
||||||
void displayInit(void *handleArg) {
|
void displayInit(void *handleArg) {
|
||||||
for (tPin d = DIGIT_0; d <= DIGIT_2; d++) {
|
|
||||||
gpioSetPin(d, LOW);
|
|
||||||
for (tPin s = SEG_A; s <= SEG_F; s++) {
|
for (tPin s = SEG_A; s <= SEG_F; s++) {
|
||||||
gpioSetPin(s, HIGH);
|
|
||||||
ms_active_delay(INIT_CYCLE_DELAY);
|
|
||||||
gpioSetPin(s, LOW);
|
gpioSetPin(s, LOW);
|
||||||
}
|
}
|
||||||
gpioSetPin(d, HIGH);
|
|
||||||
}
|
|
||||||
for (tPin d = DIGIT_2; d >= DIGIT_0; d--) {
|
for (tPin d = DIGIT_2; d >= DIGIT_0; d--) {
|
||||||
gpioSetPin(d, LOW);
|
gpioSetPin(d, LOW);
|
||||||
gpioSetPin(SEG_G, HIGH);
|
gpioSetPin(SEG_G, HIGH);
|
||||||
|
@ -41,7 +41,7 @@ int main() {
|
|||||||
timeInit();
|
timeInit();
|
||||||
schInit();
|
schInit();
|
||||||
|
|
||||||
schAdd(powerDown, NULL, 600000, 0);
|
schAdd(powerDown, NULL, 1800000, 0); // default thermometer power down timeout: 30min
|
||||||
|
|
||||||
// interrupts are required for delay function in displayInit();
|
// interrupts are required for delay function in displayInit();
|
||||||
__enable_interrupt();
|
__enable_interrupt();
|
||||||
|
Reference in New Issue
Block a user