GrovePi v0.2.0 API Reference

Modules

This application lets you interact with the GrovePi+ and any connected sensors in Elixir. It will automatically start with your application an initiate a connection to the GrovePi+ board

Perform analog I/O using the GrovePi. Analog reads return 10-bit values (0-1023) from analog to digital converters on the GrovePi. These values map to voltages between 0 and 5 volts. Analog writes generate a steady square wave on supported pins (also called PWM). The connectors and pins on the GrovePi and GrovePiZero boards differ in their support for analog reads and writes

Low-level interface for sending raw requests and receiving responses from a GrovePi hat. Create one of these first and then use one of the other GrovePi modules for interacting with a connected sensor, light, or actuator

Listen for events from a GrovePi button. There are two types of events; pressed and released. When registering for an event the button will then send a message of {pin, :pressed} or {pin, :released}. The button works by polling GrovePi.Digital on the pin that you have registered to a button

Control a Grove buzzer. While a buzzer can be controlled solely using GrovePi.Digital, this module provides some helpers

Read temperature and humidity from the Grove DHT sensor

Write to and read digital I/O on the GrovePi

Read distance from the Grove Ultrasonic sensor