Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Wire.h>
- uint8_t id = 1;
- void setup() {
- Wire.begin();//инициализируем библиотеку wire
- Serial.begin(9600);
- Wire.beginTransmission(id); //Begin a transmission to the I2C slave device with the given address
- Wire.write(0x25);//controller enable
- Wire.endTransmission();
- Wire.beginTransmission(id);
- Wire.write(0x24);//changes id
- Wire.write(0x02);//какой будет новый id
- Wire.endTransmission();
- }
- void loop() {
- }
Advertisement
Add Comment
Please, Sign In to add comment