for (;;) {
time += SAMPLE_SLEEP;
if (sample_count == 0)
- ao_led_on(AO_LED_BLUE);
+ ao_led_on(AO_LED_REPORT);
ao_delay_until(time);
ao_pa_get();
if (sample_count == 0)
- ao_led_off(AO_LED_BLUE);
+ ao_led_off(AO_LED_REPORT);
pa_avg = pa_avg - (pa_avg >> FILTER_SHIFT) + pa;
pa_diff = pa_ground - pa_avg;
time += SAMPLE_SLEEP;
ao_delay_until(time);
if ((sample_count & 3) == 0)
- ao_led_on(AO_LED_BLUE);
+ ao_led_on(AO_LED_REPORT);
ao_pa_get();
if ((sample_count & 3) == 0)
- ao_led_off(AO_LED_BLUE);
+ ao_led_off(AO_LED_REPORT);
#if HAS_EEPROM
ao_log_micro_data(AO_LOG_MICRO_DATA | pa);
#endif
#define _AO_PINS_H_
#include <avr/pgmspace.h>
-#define AO_LED_BLUE (1<<4)
+#define AO_LED_ORANGE (1<<4)
#define AO_LED_SERIAL 4
-#define AO_LED_PANIC AO_LED_BLUE
-#define LEDS_AVAILABLE (AO_LED_BLUE)
+#define AO_LED_PANIC AO_LED_ORANGE
+#define AO_LED_REPORT AO_LED_ORANGE
+#define LEDS_AVAILABLE (AO_LED_ORANGE)
#define USE_SERIAL_1_STDIN 0
#define HAS_USB 0
#define PACKET_HAS_SLAVE 0
#include <ao.h>
-#define mid(time) ao_led_for(AO_LED_BLUE, time)
+#define mid(time) ao_led_for(AO_LED_REPORT, time)
#define pause(time) ao_delay(time)
static void