
- WINDOWS SCRIPT CONTROL 64 BIT HOW TO
- WINDOWS SCRIPT CONTROL 64 BIT INSTALL
- WINDOWS SCRIPT CONTROL 64 BIT DRIVERS
Write and read from the Atmel I2C EEPROM AT24C02 that in the Total Phase I2C/SPI activity board with Aardvark adapter and Aardvark API Python original example aai2c_eeprom.Connect the Aardvark adapter to the I2C/SPI activity board via the I2C/SPI connector.Verify that the computer detects the Aardvark adapter.Run the detect example by typing: C:\Python27\python.exe aadetect.py.Change to the Aardvark API Python directory by typing: cd C:\.\python.
Run the original aadetect Python example as provided in the API package. Be sure to have the aardvark.dll file in same directory as the Python examples as provided in the API package. Be sure to use 64-bit Python when you use the 64-bit version of the the Aardvark API. Verify the Aardvark API examples setup is correct. These guidelines use the default Python installation location of "C:\Python27". WINDOWS SCRIPT CONTROL 64 BIT INSTALL
Install Python 2.x for Windows 64 bit from the Python website.Connect the Aardvark adapter to the PC via the USB connector.Download and unzip the latest version of Aardvark API for Windows 64-bit.
WINDOWS SCRIPT CONTROL 64 BIT DRIVERS
Download and run the latest version of the Total Phase USB Drivers Installer. Then the 4 bytes are read from the same offset. In the guidelines below, the first operation writes 4 bytes to the SPI EEPROM at offset address 0x02 with bitrate 100 KHz and SPI mode 0. In this example, the Aardvark adapter is the SPI master and the Atmel SPI EEPROM AT25080A on the I2C/SPI activity board is the SPI slave. You can see this example's available parameters by running the example without arguments. The example parameters are: PORT, BITRATE, write/read/zero, MODE, ADDR, and LENGTH. aaspi_eeprom example - Read or write SPI data from the SPI EEPROM on the activity board. In the guidelines below, the first operation writes 4 bytes to the I2C EEPROM with I2C slave address 0x50 at offset address 0x02 with bitrate 100 KHz. In this example, the Aardvark adapter is the I2C master and the Atmel I2C EEPROM AT24C02 on the I2C/SPI activity board is the I2C slave. The example parameters are: PORT, BITRATE, write/read/zero, SLAVE_ADDR, OFFSET, and LENGTH. aai2c_eeprom example - Read or write I2C data from the I2C EEPROM on the activity board. aadetect example - Displays the port numbers for the connected Aardvark adapters. This article describes three Aardvark API Python examples: aadetect, aai2c_eprom, and aaspi_eeprom. Although the following describes transferring I2C/SPI data to the Atmel I2C EEPROM AT24C02 and Atmel SPI EEPROM AT25080A found on the I2C/SPI activity board, similar steps can be used for other I2C/SPI devices. WINDOWS SCRIPT CONTROL 64 BIT HOW TO
This article focuses on how to install the Aardvark API, and run a few of the original API Python examples. For new users, Total Phase recommends to use the Python language as it is a simple language, and a good option for scripting. The user can use the Aardvark API to control the Aardvark adapter, and to write a custom program to achieve his goals. The Aardvark API supports multiple operating systems (Windows, Linux, and Mac) and multiple languages (C, Python, Visual Basic, and C#), and includes examples. Transferring I2C/SPI data with Aardvark API is a common use case for the Aardvark Adapter.