![]() Serial.println(“Master Value is equal to”) Int potvalue = analogRead(A0) // Reads analog value from POT (0-5V)īyte MasterSend = map(potvalue,0,1023,0,127) //Convert digital value (0 to 1023) to (0 to 127) Wire.requestFrom(8,1) // request 1 byte from slave Arduino Wire.begin() //Begins I2C communication at pin (A4,A5) Serial.begin(9600) //Begins Serial Communication at 9600 baud rate Lcd.setCursor(0,0) //Sets Cursor at first line of Display LiquidCrystal lcd(2, 3, 4, 5, 6,7 ) //Define LCD Module Pins. Master code: #include//Library for I2C Communication The Arduino code is split in two parts: the master code and the slave code, which run on two different Arduino. VSS to RW (Read/Write) to ground terminal. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |