This library is a collection for the Arduino for two modules on the Joy-Pi Advanced. See here for more information.
This library includes the following modules:
- ADC
- Gyroscope
ADC_TLA2518(int MISO, int MOSI, int SCLK, int SS, int 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 MISO, int MOSI, int SCLK, int SS, int 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