We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It will be good if this fuction will be in your code. I made it by this wa: ` import smbus import time
DEVICE = 0x40 # Default device I2C address COMMAND_MODE = 0xA9 SET_NEW_ADDR = 0x42 SET_NEW_ADDR_HSB = 0x00 SET_NEW_ADDR_LSB = 0x01 bus = smbus.SMBus(1)
#Перевод в режим программирования bus.write_byte(DEVICE, COMMAND_MODE)
time.sleep(0.01)
#Запись нового адреса bus.write_i2c_block_data(DEVICE,SET_NEW_ADDR,[SET_NEW_ADDR_HSB,SET_NEW_ADDR_LSB])
time.sleep(0.01)`
After this to read pressure need to turn of CRC section.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It will be good if this fuction will be in your code.
I made it by this wa:
`
import smbus
import time
DEVICE = 0x40 # Default device I2C address
COMMAND_MODE = 0xA9
SET_NEW_ADDR = 0x42
SET_NEW_ADDR_HSB = 0x00
SET_NEW_ADDR_LSB = 0x01
bus = smbus.SMBus(1)
#Перевод в режим программирования
bus.write_byte(DEVICE, COMMAND_MODE)
time.sleep(0.01)
#Запись нового адреса
bus.write_i2c_block_data(DEVICE,SET_NEW_ADDR,[SET_NEW_ADDR_HSB,SET_NEW_ADDR_LSB])
time.sleep(0.01)`
After this to read pressure need to turn of CRC section.
The text was updated successfully, but these errors were encountered: