Connect your Raspberry Pi Pico W board to Slack using the Slack API.
Requires a Slack App token and Slack Bot token.
Learn more in the Raspberry Pi "Create your own Slack bot with a Raspberry Pi Pico W" guest blog post.
- Set up MicroPython on the Raspberry Pi Pico W
- Copy files from micropython folder to the Raspberry Pi Pico W
- Update config.py with your:
- Wi-Fi SSID and Password
- Slack App token and Bot token
- Run main.py
git clone --recurse-submodules https://github.com/ArmDeveloperEcosystem/example-of-a-slackbot-for-pico-w.git
- Set up the Pico C/C++ SDK
- Set
PICO_SDK_PATH
export PICO_SDK_PATH=/path/to/pico-sdk
- Change directories:
example-of-a-slackbot-for-pico-w/pico-sdk
- Create
build
dir, runcmake
andmake
:
mkdir build
cd build
cmake .. \
-DWIFI_SSID="<Wi-Fi SSID>" \
-DWIFI_PASSWORD="<Wi-Fi Password>" \
-DSLACK_APP_TOKEN="<Slack App token>" \
-DSLACK_BOT_TOKEN="<Slack Bot token>" \
-DPICO_BOARD=pico_w
make
- Copy example
picow_slack_bot.uf2
to Pico W when in BOOT mode.
Configuration files in the pico-sdk based example are based on the following files from the pico-examples GitHub repository:
Disclaimer: This is not an official Arm product.