test_MAX31856.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:Adafruit_Python_MAX31856 作者: johnrbnsn 项目源码 文件源码
def tearDown(self):
        GPIO.cleanup()

    #def test_software_spi_initialize(self):
        #'''Checks to see if the sensor can initialize on the software SPI interface.

        #Will fail if it cannot find the MAX31856 library or any dependencies.
        #Test only checks to see that the sensor can be initialized in Software, does not check the
        #hardware connection.
        #'''
        #_logger.debug('test_software_SPI_initialize()')
        ## Raspberry Pi software SPI configuration.
        #software_spi = {"clk": 25, "cs": 8, "do": 9, "di": 10}
        #sensor = MAX31856(software_spi=software_spi)

        #if sensor:
            #self.assertTrue(True)
        #else:
            #self.assertTrue(False)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号