Skip to content

This library is a collection for the ESP32 for two modules on the Joy-Pi Advanced

License

Notifications You must be signed in to change notification settings

joy-it/JoyPi_Advanced_ESP32

Repository files navigation

JoyPi_Advanced_ESP32

This library is a collection for the ESP32 for two modules on the Joy-Pi Advanced. See here for more information.

Included modules

This library includes the following modules:

  • ADC
  • Gyroscope

Library Guide

ADC

  • ADC_TLA2518(int V_MISO, int V_MOSI, int V_SCLK, int V_SS, int V_SPI_CLK) - initialize ADC
  • void begin() - starts communication
  • int read_adc_value(int channel) - returns raw value from a selected channel
  • double read_voltage(int channel, int value = -1) - returns measured voltage from a selected channel, raw value can also be calculated into voltage with this method

Gyroscope

  • gyroscope_ICG_1020S(int V_MISO, int V_MOSI, int V_SCLK, int V_SS, int V_SPI_CLK)- initialize gyroscope
  • void begin() - starts communication
  • double getTemperature() - returns measured temperature
  • String getTilt() - returns the tilted direction
  • void setScale(int factor, int gyroscope, int range, int offset) - sets scale factors of the gyroscope
  • int whoAmI() - returns specified value to identify itself

About

This library is a collection for the ESP32 for two modules on the Joy-Pi Advanced

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages