Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Wire.h>
- void setup()
- {
- Wire.begin();
- }
- void loop()
- {
- //Se PCF8574A mude 32 para 56
- Wire.beginTransmission(56); //Begin the transmission to PCF8574
- Wire.write(1); //Send the data to PCF8574
- Wire.write(0); //Send the data to PCF8574
- Wire.write(2); //Send the data to PCF8574
- Wire.write(0); //Send the data to PCF8574
- Wire.write(4); //Send the data to PCF8574
- Wire.write(0); //Send the data to PCF8574
- Wire.write(8); //Send the data to PCF8574
- Wire.write(0); //Send the data to PCF8574
- Wire.write(16); //Send the data to PCF8574
- Wire.write(0); //Send the data to PCF8574
- Wire.write(32); //Send the data to PCF8574
- Wire.write(0); //Send the data to PCF8574
- Wire.write(64); //Send the data to PCF8574
- Wire.write(0); //Send the data to PCF8574
- Wire.write(128); //Send the data to PCF8574
- Wire.write(0); //Send the data to PCF8574
- Wire.endTransmission(); //End the Transmission
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement