Skip to main content

kyungmoon_A user-friendly MicroPython library for Raspberry Pi Pico to control various sensors and modules.

Project description

kmpico - MicroPython Library for Raspberry Pi Pico

A user-friendly MicroPython library for Raspberry Pi Pico to easily control various sensors and modules like LEDs, buzzers, motors, DHT sensors, OLED displays, and more.

⚠️ Important Note

This is a MicroPython library. It cannot be installed on a standard computer using pip. You need to transfer the files to your Raspberry Pi Pico's filesystem.

Installation

  1. Connect your Raspberry Pi Pico to your computer.
  2. Using a tool like Thonny IDE, copy the entire kmpico folder to the /lib directory on your Pico.

Dependencies

This library requires the following external libraries to be present on your Pico's filesystem. Please install them separately:

  • dht.py
  • ssd1306.py
  • neopixel.py

Basic Usage

from kmpico import DigitalLED
from time import sleep

# Assuming an LED is connected to GP15
led = DigitalLED(15)

while True:
    led.on()
    sleep(1)
    led.off()
    sleep(1)
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kmpico-0.0.2.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kmpico-0.0.2-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

Details for the file kmpico-0.0.2.tar.gz.

File metadata

  • Download URL: kmpico-0.0.2.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for kmpico-0.0.2.tar.gz
Algorithm Hash digest
SHA256 24c628b11aab7456ff00e577a12694b45c2c358d8d85b9f26cdda0d6ac7753aa
MD5 bcb1ab3123d09810eabb9a6014be12e6
BLAKE2b-256 7cd544cfb84ebb43aa0517fab9e9d2d2a239cb39a8892ec004e55d1dd4ee1834

See more details on using hashes here.

File details

Details for the file kmpico-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: kmpico-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 21.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for kmpico-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 660947f0913f0d0bdf1be8f80602233db30dbddc61010b04609204cfa733cee7
MD5 db0314e6dc67e4494c8efb69b4981b20
BLAKE2b-256 3475b9cd9ada7aac1e6b1a9efc6c8dc34670c58475ac85de1969e4d16c2647a3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page