Skip to content

IoToutpost/example-of-a-slackbot-for-pico-w

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example of a Slackbot for Pico W

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.

Hardware

Software

MicroPython

  1. Set up MicroPython on the Raspberry Pi Pico W
  2. Copy files from micropython folder to the Raspberry Pi Pico W
  3. Update config.py with your:
    • Wi-Fi SSID and Password
    • Slack App token and Bot token
  4. Run main.py

pico-sdk

Cloning

git clone --recurse-submodules https://github.com/ArmDeveloperEcosystem/example-of-a-slackbot-for-pico-w.git

Building

  1. Set up the Pico C/C++ SDK
  2. Set PICO_SDK_PATH
export PICO_SDK_PATH=/path/to/pico-sdk
  1. Change directories:
example-of-a-slackbot-for-pico-w/pico-sdk
  1. Create build dir, run cmake and make:
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
  1. Copy example picow_slack_bot.uf2 to Pico W when in BOOT mode.

License

MIT

Acknowledgements

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.

About

Connect your Raspberry Pi Pico W board to Slack using the Slack API 🐮⚡️💬

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 80.2%
  • Python 12.0%
  • CMake 7.8%