| 193 | } |
| 194 | |
| 195 | int GoPiGo3::set_led(uint8_t led, uint8_t red, uint8_t green, uint8_t blue){ |
| 196 | spi_array_out[0] = Address; |
| 197 | spi_array_out[1] = GPGSPI_MESSAGE_SET_LED; |
| 198 | spi_array_out[2] = led; |
| 199 | spi_array_out[3] = red; |
| 200 | spi_array_out[4] = green; |
| 201 | spi_array_out[5] = blue; |
| 202 | return spi_transfer_array(6, spi_array_out, spi_array_in); |
| 203 | } |
| 204 | |
| 205 | float GoPiGo3::get_voltage_5v(){ |
| 206 | float voltage; |
no test coverage detected