public static void entryMode(int a) { // assign cursor moving direction and enable the shift of entire display
		if (a == 1) { 
			io.iowrite(6,(short)0x6); //cursor moves to right and DDRAM address is increased by 1
		}
		if (a == 2) {
			io.iowrite(6,(short)0x4); //cursor moves to left and DDRAM address is decreased by 1
		}
		if (a == 3) {
			io.iowrite(6,(short)0x5); //shift entire display Right
		}
		if (a == 4) {
			io.iowrite(6,(short)0x7); //shift entire display left
		}
	}