All Courses
All Courses
Courses by Software
Courses by Semester
Courses by Domain
Tool-focused Courses
Machine learning
POPULAR COURSES
Success Stories
Master Code:#include <LiquidCrystal.h> // Library for LCD display functionLiquidCrystal lcd(12, 11, 5, 4, 3, 2); // Define LCD Module Pins (RS, EN, D4, D5, D6, D7)void setup(){ lcd.begin(16, 2);}void loop(){ lcd.setCursor(0, 0); // Sets cursor at line one of LCD lcd.print(">> Master <<"); // Prints ">>…
MAHATHIR MOHAMED
updated on 30 Jun 2023
Master Code:
#include <LiquidCrystal.h> // Library for LCD display function
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); // Define LCD Module Pins (RS, EN, D4, D5, D6, D7)
void setup()
{
lcd.begin(16, 2);
}
void loop()
{
lcd.setCursor(0, 0); // Sets cursor at line one of LCD
lcd.print(">> Master <<"); // Prints ">> Master <<" on LCD
lcd.setCursor(0, 1); // Sets cursor at line two of LCD
lcd.print("SlaveVal: 99"); // Prints "SlaveVal: 99" on LCD
delay(1000);
}
Slave code:
#include <LiquidCrystal.h> // Library for LCD display function
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); // Define LCD Module Pins (RS, EN, D4, D5, D6, D7)
void setup()
{
lcd.begin(16, 2);
}
void loop()
{
lcd.setCursor(0, 0); // Sets cursor at line one of LCD
lcd.print(">> Slave <<"); // Prints ">> Slave <<" on LCD
lcd.setCursor(0, 1); // Sets cursor at line two of LCD
lcd.print("MasterVal: 100"); // Prints "MasterVal: 100" on LCD
delay(1000);
}
Leave a comment
Thanks for choosing to leave a comment. Please keep in mind that all the comments are moderated as per our comment policy, and your email will not be published for privacy reasons. Please leave a personal & meaningful conversation.
Other comments...
Project 3
AIM: Build an object-oriented library which can be used to track automobile maintenance. There can be different car types such as petrol, diesel, gas, electric etc., This library should be able to support at least three of the car types. Maintenance tasks include activities like oil change or replace oil filter,…
26 Nov 2023 01:23 PM IST
Week 1 Understanding Different Battery Chemistry
1) Prepare a table which includes materials & chemical reactions occurring at the anode and cathode of LCO, LMO, NCA, NMC, LFP and LTO type of lithium ion cells.Give your detailed explanation on it. Lithium ion batteries can be designed for optimal capacity with the drawback of limited loading, slow charging and reduced…
26 Nov 2023 01:22 PM IST
Project 2 - Implement the Code for controlling the retraction and extension of Airplane’s landing gear
AIM: To control the retraction and extension of Airplane’s landing gear can be implemented using Finite State Machine (FSM). FSM is the most efficient algorithm which is mathematical model of computation. CODE: #include <iostream>using namespace std; string lights,lever; …
13 Nov 2023 08:02 AM IST
Project 1 - Creation of user defined data type to implement the user interfaces for working with ‘Set’ (Mathematical Set theory) using Linked List
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> // Link list node struct Node { int data; struct Node* next; }; //function declaration void push(struct Node** head_ref, int new_data); int isPresent(struct Node* head, int data); // Function to get union of two linked lists head1 and head2 struct…
13 Nov 2023 07:47 AM IST
Related Courses
0 Hours of Content
Skill-Lync offers industry relevant advanced engineering courses for engineering students by partnering with industry experts.
© 2025 Skill-Lync Inc. All Rights Reserved.