Skip to content

Library for reading the state of the Raspberry Pi Pico boot select button state.

License

Notifications You must be signed in to change notification settings

Danielaca18/pico-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pico Utils

This library provides a set of useful functions for interacting with the Raspberry Pi Pico W board.

✨ Features

  • get_bootsel_btn(): Get the state of the bootsel button.
  • set_led(bool state): Set the state of the onboard LED.
  • cyw43_arch_init_once(): Wraps cyw43_arch_init(), prevents initializing driver twice.

🛠️ Setup

1. Add the Repository as a Submodule

git submodule add https://github.com/Danielaca18/pico-bootsel-btn.git

2. Include the Library

Include the library in your project by adding the following line to your project cmake:

add_subdirectory(pico-bootsel-btn)
target_link_libraries(your_project bootsel_btnlib)

💼 License

This project is licensed under the MIT License, which is a permissive open-source license that allows you to use, modify, and distribute the code for both commercial and non-commercial purposes. You can find the full text of the license in the LICENSE file.

About

Library for reading the state of the Raspberry Pi Pico boot select button state.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published