bluetooth scribbles

This commit is contained in:
embr 2023-04-23 22:18:35 +02:00
parent 069eb3c4f8
commit fe2109e531
2 changed files with 7 additions and 3 deletions

View file

@ -2,6 +2,6 @@
```
# env -C lib/pico-sdk/ git submodule update --init
# env -C build/ cmake .. -G Ninja -DPICO_BOARD=pico_w -DWIFI_SSID=YOUR_SSID_HERE -DWIFI_PASSWORD="your password here"
# env -C build/ cmake .. -G Ninja -DPICO_BOARD=pico_w
# env -C build/ ninja
```

View file

@ -1,11 +1,15 @@
#include <stdio.h>
#include "pico/stdlib.h"
#include "pico/cyw43_arch.h"
#include "btstack.h"
#ifndef CYW43_WL_GPIO_LED_PIN
#error no WiFi LED on board, wrong -DPICO_BOARD?
#endif
// Sakuraneko Dokidoki - sakuraneko-03 - 0000ffe1-0000-1000-8000-00805f9b34fb
// https://github.com/buttplugio/buttplug/blob/master/buttplug/src/server/device/protocol/sakuraneko.rs
int main() {
stdio_init_all();
if (cyw43_arch_init()) {
@ -15,10 +19,10 @@ int main() {
while (true) {
printf("Hello, world!\n");
cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, 1);
sleep_ms(250);
sleep_ms(1000);
printf("Goodbye, world!\n");
cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, 0);
sleep_ms(250);
sleep_ms(1000);
}
return 0;
}