a83d812413584b77a885fcfc2111581d7ba78019,Software/Python/gopigo3.py,GoPiGo3,get_grove_analog,#GoPiGo3#Any#,714

Before Change


            return
        
        value = self.spi_read_16(message_type)
        return value
    
    def reset_all(self):
        
        Reset the GoPiGo3.

After Change


        else:
            raise IOError("Pin(s) unsupported. Must get one at a time.")
        
        outArray = [self.SPI_Address, message_type, 0, 0, 0, 0, 0]
        reply = self.spi_transfer_array(outArray)
        if(reply[3] == 0xA5):
            if(reply[4] == 0): // no error
                return (((reply[5] << 8) & 0xFF00) | (reply[6] & 0xFF))
            else:
                raise ValueError("get_grove_analog error: Invalid value")
        else:
            raise IOError("get_grove_analog error: No SPI response")
    
    def reset_all(self):
        
        Reset the GoPiGo3.
        
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 15

Instances


Project Name: DexterInd/GoPiGo3
Commit Name: a83d812413584b77a885fcfc2111581d7ba78019
Time: 2017-05-16
Author: matt@dexterindustries.com
File Name: Software/Python/gopigo3.py
Class Name: GoPiGo3
Method Name: get_grove_analog


Project Name: DexterInd/GoPiGo3
Commit Name: a83d812413584b77a885fcfc2111581d7ba78019
Time: 2017-05-16
Author: matt@dexterindustries.com
File Name: Software/Python/gopigo3.py
Class Name: GoPiGo3
Method Name: get_grove_voltage


Project Name: DexterInd/GoPiGo3
Commit Name: a83d812413584b77a885fcfc2111581d7ba78019
Time: 2017-05-16
Author: matt@dexterindustries.com
File Name: Software/Python/gopigo3.py
Class Name: GoPiGo3
Method Name: get_grove_state