Set grove output pin LOW/HIGH Keyword arguments: pin -- The grove pin(s). GROVE_1_1, GROVE_1_2, GROVE_2_1, and/or GROVE_2_2. state -- The pin state. GROVE_LOW or GROVE_HIGH.
(self, pin, state)
| 622 | reply = self.spi_transfer_array(outArray) |
| 623 | |
| 624 | def set_grove_state(self, pin, state): |
| 625 | """ |
| 626 | Set grove output pin LOW/HIGH |
| 627 | |
| 628 | Keyword arguments: |
| 629 | pin -- The grove pin(s). GROVE_1_1, GROVE_1_2, GROVE_2_1, and/or GROVE_2_2. |
| 630 | state -- The pin state. GROVE_LOW or GROVE_HIGH. |
| 631 | """ |
| 632 | outArray = [self.SPI_Address, self.SPI_MESSAGE_TYPE.SET_GROVE_STATE, pin, state] |
| 633 | reply = self.spi_transfer_array(outArray) |
| 634 | |
| 635 | def set_grove_pwm_duty(self, pin, duty): |
| 636 | """ |
no test coverage detected