MCPcopy Create free account
hub / github.com/DexterInd/GoPiGo3 / set_led

Method set_led

Software/C/GoPiGo3.cpp:195–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195int 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
205float GoPiGo3::get_voltage_5v(){
206 float voltage;

Callers 1

mainFunction · 0.45

Calls 1

spi_transfer_arrayFunction · 0.85

Tested by

no test coverage detected