Skip to content

Commit 4f1cdc5

Browse files
committed
altos/telegps-v3.0: Get LED blinking when GPS locks
Initialize the LED subsystem and assign the green LED to report GPS lock. Signed-off-by: Keith Packard <[email protected]>
1 parent 2aa60e8 commit 4f1cdc5

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/telegps-v3.0/ao_pins.h

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
#define LED_0_PIN 25
6969
#define AO_LED_GREEN (1 << 0)
7070
#define AO_LED_PANIC AO_LED_GREEN
71+
#define AO_LED_GPS_LOCK AO_LED_GREEN
7172

7273
/* Radio */
7374
#define HAS_SPI_0 1

src/telegps-v3.0/ao_telegps.c

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ main(void)
2525
{
2626
ao_clock_init();
2727

28+
ao_led_init();
29+
2830
ao_task_init();
2931
ao_timer_init();
3032

0 commit comments

Comments
 (0)