IOT Virtual Lab
Home
Simulation Window
Go Back
Interfacing of Arduino with Slider Switch :
ARDUINO CODE
#include
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); String message[] ={ "This is a ", "Sample Program", "to Interface", "LCD 16x2 Module." }; void setup(){ lcd.begin(16,2); } void loop(){ for(int i=0;i<4;i++){ lcd.clear(); lcd.setCursor(0, 0); lcd.print("Virtual Lab"); lcd.setCursor(0, 1); lcd.print(message[i]); delay(2000); } }
Start Simulation