Skip to main content

Python wrapper for coinesAPI

Project description

COINESPY: Interface for Bosch Sensortec's Engineering Boards.

COINESPY provides a python interface for interacting with the Bosch Sensortec's Engineering boards.

The library offers the following range of functionalities:

  • Control VDD and VDDIO of sensor
  • Configure SPI and I2C bus parameters
  • Read and write into registers of sensors from Bosch Sensortec via SPI and I2C
  • Read and write digital pins of the Application Board.

Code example

Here’s a script to verify the installation by fetching the coinespy version, and the hardware and software versions of the connected board.

	import coinespy as cpy
	from coinespy import ErrorCodes
	
	COM_INTF = cpy.CommInterface.USB
	
	if __name__ == "__main__":
		board = cpy.CoinesBoard()
		print('coinespy version - %s' % cpy.__version__)
		board.open_comm_interface(COM_INTF)
		if board.error_code != ErrorCodes.COINES_SUCCESS:
			print(f'Could not connect to board: {board.error_code}')
		else:
			b_info = board.get_board_info()
			print(f"coines lib version: {board.lib_version}")
			print(
				f'BoardInfo: HW/SW ID: {hex(b_info.HardwareId)}/{hex(b_info.SoftwareId)}')
			board.close_comm_interface()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coinespy-1.0.1.tar.gz (1.3 MB view hashes)

Uploaded Source

Built Distribution

coinespy-1.0.1-py3-none-any.whl (1.3 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page