Add Bluetooth examples
Co-authored-by: Peter Harper <77111776+peterharperuk@users.noreply.github.com>
This commit is contained in:
21
pico_w/bt/picow_bt_example_poll.c
Normal file
21
pico_w/bt/picow_bt_example_poll.c
Normal file
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* Copyright (c) 2022 Raspberry Pi (Trading) Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
#include "btstack_run_loop.h"
|
||||
#include "pico/stdlib.h"
|
||||
#include "picow_bt_example_common.h"
|
||||
|
||||
int main() {
|
||||
stdio_init_all();
|
||||
|
||||
int res = picow_bt_example_init();
|
||||
if (res){
|
||||
return -1;
|
||||
}
|
||||
|
||||
picow_bt_example_main();
|
||||
btstack_run_loop_execute();
|
||||
}
|
||||
Reference in New Issue
Block a user