Exemple #1
0
static void tweeter_task (__unused__ void *data)
{
    uint8_t state;

    state = tweeter_update (tweeter);
    pio_output_set (PIEZO1_PIO, state);
    pio_output_set (PIEZO2_PIO, !state);
}
Exemple #2
0
int main (void)
{		
	init_pins();
	char* bt_data = bt_init();
	
	
	
	
    pacer_init (LOOP_POLL_RATE);
	pio_output_set(PIO_AUX_ENABLE, 0);
	
	short aux_power = 0;
    while (1)
    {		
		pacer_wait ();
		
		pio_output_set(PIO_LED_G, bt_connected());
		
		if (bt_read()) {
			process_command(bt_data);
		}
	}		
}
Exemple #3
0
static void tweeter_task (__unused__ void *data)
{
    pio_output_set (PIEZO_PIO, tweeter_update (tweeter));
}