[ Log In ]

16x2 LCD (Liquid Crystal Display)

16x2 LCD (Liquid Crystal Display)

Front of the 128x64 display module

128x64 OLED Display Yel/Blu

Multimeter Security Banana Plug To Test Hook Clip Probe Lead Cable 500V

Multimeter Security Banana Plug To Test Hook Clip Probe Lead Cable 500V

3 Foot USB Cable Type A to USB Cable Type A

USB Cable Type A Male to USB Type A Male - 3 FT

USB 2.0 Cable 10 Foot Type A Male to Type B Male

USB 2.0 Cable Type A Male to Type B Male - 10 FT

Tumbnail: 62 oz-in NEMA 17 Stepping motors (also called stepper motor)

NEMA 17 Stepping Motor (62 oz-in 5mm single shaft)

$19.95 Out of Stock
Image of the Atmega324p


10K timmer potentiometer

10K Trimmer Potentiometer (Through Hole)

White prototyping breadboard with 30 tie strips and two power rails on each side.

White Prototyping Breadboard (2x30 columns of tie strips and 2x2 rows of power strips)


Programming: Create a Chasing 'x' on the LCD to Determine the x and y LCD cursor Locations

A moving 'x' is displayed along all possible LCD cursor locations and the actual location of the 'x' is displayed on the bottom right of the LCD to inform what are the possible locations on the current LCD. Many LCDs have different row ans column specifications. This program allow the user to determine the constraints of their LCD so the LCD can be used within these cursor location constraints.

A for loop is used to cycle the 'x' in all of the cursor locations. An x is placed on the current location, a delay is used to give the user time to see the x and the location number. The cursor goes back to that location and displays a space to remove the 'x' so the next 'x' can be displayed and it appears to be moving.
for (int x = 0; x<128; x++)
    Send_A_Command(0x80 + x);
    itoa(x, positionString, 10);
    Send_A_Command(0x80 + 97);
    end_A_Command(0x80 + x);
    Send_A_String(" ");

Comments and Additional Information

Have some code to share? Or additional information? Respond here:

You need to be logged in to save a response on this page. The response must be constructive, helpful, supplimentary or to correct the existing video, code or narrative content.


Code (optional):