Module diozero.core
Package com.diozero.devices
package com.diozero.devices
Classes representing actual devices such as LEDs, Buttons as well as GPIO,
devices that are connected via I2C, SPI and Serial interfaces.
-
ClassDescriptionThe ADS112C04 has two address pins: A0 and A1.Input multiplexer configurationADS1115 Datasheet: https://www.ti.com/lit/ds/symlink/ads1115.pdf ADS1015 Datasheet: https://www.ti.com/lit/ds/symlink/ads1015.pdfI2C address configurationNumber of samples per secondNumber of samples per secondComparator queue configurationRead mode - continuous or singleProgrammable Gain Amplifier configuration.An air-quality sensor uses relative humidity and a "resistance" value to measure air quaility.BH1750 Luminosity sensor Datasheet Python code Pins:Deprecated.IIR filter size.Gas heater profile.Oversampling multiplier.Power mode.Gas heater profile.Infinite Impulse Response (IIR) filter.Operating mode.Oversampling multiplier.Operating (Output?)Bosch BMP180 I2C temperature and pressure sensorRelationship between sampling mode and conversion delay (in ms) for each sampling mode Ultra low power: 4.5 ms minimum conversion delay Standard: 7.5 ms High Resolution: 13.5 ms Ultra high Resolution: 25.5 msProvides access to the Bosch BMx280 pressure and temperature sensor.IIR Filter coefficient; can be OFF, _2, _4, _8, _16.Humidity oversampling multiplier; value can be 1, 2, 4, 8, 16.Operating mode; value can be SLEEP, FORCED, or NORMAL.Pressure oversampling multiplier; value can be 1, 2, 4, 8, 16.Inactive duration in standby mode; can be: _500_US (0.5 ms) _62_5_MS (62.5 ms) _125_MS (125 ms) _250_MS (250 ms) _500_MS (500 ms) _1_S (1 second) _10_MS (10 ms) _20_MS (20 ms)Temperature oversampling multiplier; value can be 1, 2, 4, 8, 16.Provides push button related utility methods.Button builder.Represents a digital buzzer component.Full credit: https://github.com/garmin/LIDARLite_Arduino_LibrarySharp GP2Y0A21YK distance sensor.Interface for GPIO expansion boards such as the MCP23xxx family of devicesUser's manual: https://docs.google.com/document/d/1Y-yZnNhMYy7rwhAgyL_pfa39RsB-x2qR4vP8saG73rE/edit# Product specification: http://www.micropik.com/PDF/HCSR04.pdf Provides 2cm - 400cm non-contact measurement function, the ranging accuracy can reach to 3mm You only need to supply a short 10uS pulse to the trigger input to start the ranging, and then the module will send out an 8 cycle burst of ultrasound at 40 kHz and raise its echo.STMicroelectronics HTS221 "ultra compact sensor for relative humidity and temperature".References:Interface for connecting to LCD displays using 4-bit data mode (D4-D7).For connections via a GPIO expansion board.Connect via individual GPIO pins, uses 4-bit mode (data pins D4-D7).Deprecated.Connected via the PCF8574 I2C GPIO expansion backpack.MCP23S17 GPIOB to HD44780.LcdInterface<L extends LcdInterface<?>>Abstraction for LCD devices: provides common functionality that can be "chained" together to provide a fluent-style interface.Generic Photoresistor / Light-Dependent-Resistor (LDR).
Wiring:Provides utility methods for controlling a Light Emitting Diode (LED).A button with an embedded LED.STMicroelectronics LPS25H "ultra compact absolute piezoresistive pressure sensor".The MCP3204/3208 devices offer the choice of using the analog input channels configured as single-ended inputs or pseudo-differential pairs.See the Microchip website.Pimoroni I2C packaged with Nuvoton MS51XB9AE MCU for ADC I2C reference: https://github.com/pimoroni/mics6814-python/blob/master/library/mics6814/__init__.py https://shop.pimoroni.com/products/mics6814-gas-sensor-breakout?Digital output device factory using an output shift register, e.g. the 74HC595 8-bit Serial-In, Parallel-Out Shift Register.PCA9685 I2C-bus controlled 16-channel 12-bit PWM controller as used in the popular Adafruit PWM add-on board: DatasheetAnalog to Digital Converter. 4 analog in / 1 analog out.Supports taking readings from a potentiometer.PWM controlled LED.Deprecated.UseServoDevice
instead.Three pin controlled RGB LED. 4 3 2 1 1 Red 2 Ground 3 Green 4 BlueThree pin controlled RGB LED.A "wrapper" around the PCA9685 PWM controller: the main purpose is to prevent re-use of a previously allocated PWM channel.Multi-digit 7-segment display.Support for reading temperature values from a TMP36 Temperature Sensor by Analog DevicesDatasheet Pins:
BME68x
instead