This library is a collection for the ESP32 for two modules on the Joy-Pi Advanced. See here for more information.
This library includes the following modules:
- ADC
- Gyroscope
ADC_TLA2518(int V_MISO, int V_MOSI, int V_SCLK, int V_SS, int V_SPI_CLK)
- initialize ADCvoid begin()
- starts communicationint read_adc_value(int channel)
- returns raw value from a selected channeldouble 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_ICG_1020S(int V_MISO, int V_MOSI, int V_SCLK, int V_SS, int V_SPI_CLK)
- initialize gyroscopevoid begin()
- starts communicationdouble getTemperature()
- returns measured temperatureString getTilt()
- returns the tilted directionvoid setScale(int factor, int gyroscope, int range, int offset)
- sets scale factors of the gyroscopeint whoAmI()
- returns specified value to identify itself