Skip to main content

A temperature and luminosity sensor API package designed for Raspberry Pi

Project description

API Overview

The API contains the following files:

  • Setup.py - creates the ADC (MCP3008) channel object
  • Sensor.py - handles the sensor package's activities, qualities, and functionality

The following files illustrate the functioning of the API:

  • application_console.py - prints the sensor output to the screen
  • application_file.py - prints the sensor output to a text file (data.txt)

The API's functionality is interfaced with the Flask Web Application using Samba file sharing.

The API requires the following libraries to run:

  • busio
  • digitalio
  • board
  • adafruit_mcp3xxx.mcp3008
  • adafruit_mcp3xxx.analog_in

These libraries can be installed on the Raspberry Pi using the following command:

  • pip3 install adafruit-circuitpython-mcp3xxx

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

API-StevenThomi-0.0.1.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

API_StevenThomi-0.0.1-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

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