Writing to LCD With CloudX
by Olayiwola_Ayinde in Circuits > Microcontrollers
150 Views, 0 Favorites, 0 Comments
Writing to LCD With CloudX
This simple project will teach you on how to write anything to LCD using CloudX Microcontroller, you don't need much component to write on the popular 16x2 alphanumeric LCD.
Materials Needed
- CloudX M633 Microcontroller
- SoftCard
- Jumper Wires
- CloudX USB cable
- BreadBoard
You can get all this components from make Electronics NG website.
Circuit Diagram
CloudX -------- LCD
GND -------- VSS
5V -------- VDD
GND -- though 1k resistor -- V0
Pin1 -------- RS
Pin2 -------- EN
GND -------- RW
Pin3 -------- D4
Pin4 -------- D5
Pin5 -------- D6
Pin6 -------- D7
5V -------- A
GND -------- K
Code
#include <CloudX\M633.h> #include <CloudX\Lcd.h>
setup(){
//setup here
Lcd_setting(1,2,3,4,5,6); // Lcd_setting(RS,EN,D4,D5,D6,D7)
Lcd_cmd(clear); // Clear
Lcd_cmd(cursorOff); // Off Cursor
loop(){
//Program here
Lcd_writeText(1,3,"Hello World!"); //display on row 1 column 3
Lcd_writeText(2,1,"I AM CLOUDX MCU"); // display on row 2 column 1
delay(1000); //wait for 1 second
}
}