If you are working with a 1.3 inch IPS LCD, the default orientation is typically portrait mode with a 240x240 pixel resolution when the display is in its standard mounting position, where the flexible PCB (FPC) connector exits from the bottom edge. This is consistent across most common driver ICs like the ST7789V or GC9A01, which are used in these small round or square IPS panels. The default scan direction is set from top-left to bottom-right, and the memory mapping is arranged so that the first pixel (0,0) is at the top-left corner when the display is held with the connector at the bottom. However, orientation can vary slightly depending on the manufacturer’s specific PCB layout or the initialization code in the driver library. For example, the 1.3 inch 240x240 ips display from DisplayModule uses the ST7789V driver, which defaults to a 240x240 resolution in a 1:1 aspect ratio, but the physical orientation of the glass substrate and the FPC exit point means that the default is portrait when the connector is down. If you rotate the display 90 degrees clockwise, you get landscape orientation, but the pixel data will be shifted unless you adjust the MADCTL register (0x36) in the driver. Let’s break this down with real data and practical considerations.

Physical dimensions and default orientation details
The 1.3 inch IPS LCD has a diagonal size of 1.3 inches, which translates to approximately 33.02 mm. The active area is typically 23.4 mm x 23.4 mm for a square panel, but some variants have a slightly rectangular shape if the resolution is not exactly square. The default orientation is defined by the way the glass is bonded to the FPC. In most mass-produced units, the FPC exits from the bottom edge when the display is viewed from the front. This means the top of the display is opposite the connector. The driver IC, like the ST7789V, has a default memory write direction that starts from the top-left corner (column 0, row 0) and writes sequentially to the bottom-right (column 239, row 239). This is confirmed by the datasheet of the ST7789V, which specifies that after power-on reset, the MADCTL register is set to 0x00, meaning no rotation, no mirroring, and the RGB order is default. The default orientation is therefore portrait mode with the connector at the bottom. If you mount the display in an enclosure where the connector is on the side, the image will appear rotated 90 degrees relative to the physical orientation. This is a common mistake in DIY projects, where users assume the default orientation matches the PCB layout. To verify, you can check the pinout: the SPI interface (CS, DC, SCL, SDA) is usually on the FPC, and the display’s backlight and reset pins are also there. The physical orientation of the glass is such that the viewing angle is optimized for the default portrait mode, with the best contrast and color saturation when viewed straight on.

Driver IC and register settings for orientation
The ST7789V driver is the most common for 1.3 inch IPS LCDs, but the GC9A01 is also used in some round variants. The default orientation is determined by the MADCTL register (0x36). After reset, the register value is 0x00, which sets the column address order from left to right, row address order from top to bottom, and RGB order (not BGR). This means the display is in portrait mode with the origin at the top-left. If you want to change orientation, you can write to the MADCTL register. For example, to rotate 90 degrees clockwise, set MADCTL to 0x60 (or 0xC0 depending on the bit layout). To rotate 180 degrees, set to 0xC0. To flip horizontally, set to 0x80. The exact values depend on the driver IC, but for ST7789V, the following table shows common orientation settings:

Table: MADCTL register values for ST7789V default orientation and rotations

| Orientation | MADCTL value (hex) | Description |
|-------------|-------------------|-------------|
| Default (portrait, connector bottom) | 0x00 | Top-left origin, no rotation |
| 90° clockwise (landscape, connector right) | 0x60 | Row and column swapped, mirrored |
| 180° (portrait, connector top) | 0xC0 | Both row and column reversed |
| 270° clockwise (landscape, connector left) | 0xA0 | Row and column swapped, reversed |
| Flip horizontal | 0x80 | Mirror along vertical axis |
| Flip vertical | 0x40 | Mirror along horizontal axis |

Note that the default orientation assumes the display is viewed from the front (glass side). If you are using the display in a project where the connector is on the top, you will need to set MADCTL to 0xC0 to correct the orientation. Also, the resolution is 240x240, so rotating does not change the pixel count, but the physical aspect ratio remains square. This is different from rectangular displays where rotation changes the width and height. For the 1.3 inch IPS LCD, the default orientation is always square, so rotation only affects the direction of text and graphics. In practice, many libraries like Adafruit_GFX or TFT_eSPI allow you to set the rotation with a function like setRotation(), which internally writes to the MADCTL register. For example, in TFT_eSPI, rotation 0 is default (portrait, connector bottom), rotation 1 is 90 degrees, rotation 2 is 180 degrees, and rotation 3 is 270 degrees. This matches the table above.

Data from real-world testing and common issues
I have tested multiple 1.3 inch IPS LCDs from different suppliers, including the ones from DisplayModule and generic modules from AliExpress. The default orientation is consistent across all units with the ST7789V driver, but there is a catch: the FPC exit point can vary. Some modules have the FPC exiting from the bottom, but others have it from the left or right depending on the PCB design. For example, a module designed for a smartwatch might have the FPC exiting from the side to fit the enclosure. In such cases, the default orientation is still portrait relative to the glass, but the connector position changes the physical mounting. This means you need to check the datasheet or the physical layout before assuming the orientation. The DisplayModule 1.3 inch 240x240 ips display has a clearly marked pinout, and the FPC exits from the bottom edge when the display is viewed from the front. The default orientation is portrait, and the backlight is on the same side as the connector. If you are using this display with an Arduino or ESP32, the default initialization code will work without any rotation adjustments. However, if you mount the display upside down, you will need to set rotation to 2 (180 degrees).

Electrical and timing considerations for orientation
The default orientation also affects the SPI communication timing. The ST7789V driver has a default frame rate of 60 Hz, and the display is driven by a 16-bit or 18-bit color depth. The default orientation does not change the pixel clock or the data rate, but it does affect the memory addressing. When you write pixel data, the driver automatically increments the column and row addresses based on the MADCTL setting. In default orientation, the column address increments from 0 to 239, and the row address increments from 0 to 239. If you rotate the display, the addressing changes, but the total number of pixels remains the same. This is important for performance: if you are writing a full frame buffer, the orientation does not affect the speed, but if you are writing partial updates, the orientation changes the direction of the data flow. For example, in default orientation, a horizontal line is written by incrementing the column address, which is efficient because the driver’s internal memory is organized in rows. In landscape orientation, a horizontal line requires incrementing the row address, which might be slower if the driver’s memory is optimized for column access. However, for the 1.3 inch IPS LCD, the difference is negligible because the resolution is small.

Comparison with other small IPS displays
To give you a broader perspective, the default orientation of a 1.3 inch IPS LCD is similar to other small displays like the 0.96 inch or 1.14 inch IPS LCDs, but there are differences. The 0.96 inch display typically has a resolution of 160x80, and its default orientation is landscape because the driver IC (like the ST7735S) is designed for a rectangular aspect ratio. The 1.3 inch display is square, so the default orientation is portrait by convention, but it can be used in any orientation without losing pixel count. The 1.5 inch IPS LCD, on the other hand, has a resolution of 240x240 but a slightly larger diagonal, and its default orientation is also portrait with the connector at the bottom. The key difference is the physical size and the FPC connector pitch. The 1.3 inch display uses a 0.5mm pitch FPC, while larger displays might use 0.8mm or 1.0mm pitch. This affects the PCB layout and the ease of soldering. The default orientation is also influenced by the display’s intended use: many 1.3 inch displays are used in wearable devices, where the default orientation is portrait to match the watch face orientation. This is a design choice by the manufacturer, and it is consistent across most brands.

Practical tips for setting up the default orientation
When you first power on a 1.3 inch IPS LCD, the default orientation will show the image correctly if the connector is at the bottom. If you are using a development board like the ESP32 or STM32, the initialization sequence should include a reset pulse and then a write to the MADCTL register if needed. Most libraries handle this automatically, but if you are writing raw commands, you need to send the command 0x36 followed by the desired value. For example, to set the default orientation, send 0x36, then 0x00. To set rotation 90 degrees, send 0x36, then 0x60. The default orientation is also affected by the RGB color order. Some displays have a BGR order instead of RGB, which would require setting the MADCTL bit 3 to 1. This is rare for 1.3 inch IPS LCDs, but it can happen. Check the datasheet for your specific module. The DisplayModule 1.3 inch 240x240 ips display uses RGB order, so the default orientation is correct without any color swapping. If you see a blue or red tint, it might be a color order issue, not an orientation issue. The default orientation is also important for the backlight control. The backlight is usually on the same side as the FPC, and the default orientation ensures that the backlight is at the bottom of the display. If you rotate the display, the backlight position changes, which might affect the viewing angle if the backlight is not uniform. However, for IPS technology, the viewing angle is wide (typically 170 degrees), so this is not a major concern.

Data from driver IC datasheets
The ST7789V datasheet (version 1.0 from Sitronix) explicitly states that the default scan direction is from top-left to bottom-right after power-on reset. The MADCTL register is set to 0x00, which means the column address is incremented from left to right, and the row address is incremented from top to bottom. The datasheet also includes a table showing the effect of different MADCTL values on the scan direction. For the GC9A01 driver, the default is similar, but the register layout is slightly different. The GC9A01 has a MADCTL register at 0x36 as well, but the bit definitions are the same for the basic rotation. The default orientation is also portrait, but the GC9A01 is often used in round displays, where the default orientation is less critical because the circular shape makes orientation less obvious. However, the pixel memory is still organized in a square matrix, so the default orientation is still portrait with the connector at the bottom. In practice, the GC9A01 driver is used in some 1.3 inch round IPS LCDs, and the default orientation is the same as the ST7789V. The key difference is that the GC9A01 has a higher frame rate option (up to 120 Hz) but the default is still 60 Hz.

Common mistakes and how to fix them
One common mistake is assuming that the default orientation is landscape because the display is square. This is not true. The default orientation is always defined by the manufacturer’s PCB layout, and for 1.3 inch IPS LCDs, it is almost always portrait. Another mistake is forgetting to set the rotation in the library. If you use the TFT_eSPI library with the default configuration, the display will show the image correctly only if the connector is at the bottom. If you mount the display in a different orientation, you need to call setRotation() in the setup function. For example, if you mount the display with the connector on the left, you need to set rotation to 1 (90 degrees). If you mount it with the connector on the top, set rotation to 2 (180 degrees). If you mount it with the connector on the right, set rotation to 3 (270 degrees). You can also adjust the orientation by modifying the user setup file in TFT_eSPI, which allows you to set the default rotation at compile time. This is more efficient than calling setRotation() every time. The default orientation is also affected by the SPI mode. The ST7789V supports SPI mode 0 and mode 3, but the default is mode 0 (CPOL=0, CPHA=0). This does not affect the orientation, but it affects the timing of the data transfer. If you use the wrong SPI mode, the display might not initialize correctly, and the image might appear garbled. This is often mistaken for an orientation issue, but it is actually a timing issue. The default orientation is only about the pixel mapping, not the communication protocol.

Real-world application examples
In a smartwatch project, the default orientation of the 1.3 inch IPS LCD is portrait, which matches the typical watch face. The connector is at the bottom, which allows the FPC to connect to the main board inside the watch case. If you are building a handheld game console, you might want the display in landscape orientation to match the game screen. In that case, you would set the rotation to 90 degrees. The default orientation is not a limitation because you can easily change it in software. The important thing is to understand that the default orientation is a hardware property, but it can be overridden by the driver IC settings. The DisplayModule 1.3 inch 240x240 ips display is designed for flexibility, and the default orientation can be changed in the initialization code. The datasheet for this display provides the exact MADCTL values for each rotation, and the library examples show how to set the rotation. If you are using this display with an Arduino, the default orientation is portrait, and the image will be displayed correctly without any additional code. However, if you are using a different microcontroller, you might need to adjust the initialization sequence. The default orientation is also important for the touchscreen interface, if your display has one. Some 1.3 inch IPS LCDs come with a resistive or capacitive touch panel, and the default orientation of the touch controller is usually aligned with the display’s default orientation. If you rotate the display, you also need to rotate the touch coordinates, which can be done in software. The default orientation for the touch panel is also portrait, with the X-axis horizontal and the Y-axis vertical.

Technical specifications and default orientation impact
The 1.3 inch IPS LCD has a typical brightness of 300-400 cd/m², a contrast ratio of 1000:1, and a viewing angle of 170 degrees. The default orientation does not affect these specifications, but it does affect the perceived image quality if the display is mounted at an angle. For example, if you mount the display in landscape orientation but do not change the rotation, the image will appear sideways, and the text will be unreadable. This is a common issue in projects where the display is mounted in a custom enclosure. The default orientation is also important for the backlight voltage. The backlight is typically driven by a 3.3V or 5V supply, and the default orientation ensures that the backlight is on the same side as the connector. If you rotate the display, the backlight connector might be on a different side, which could affect the wiring. However, the backlight is usually on the same FPC, so the orientation does not change the electrical connection. The default orientation is also relevant for the display’s refresh rate. The ST7789V driver supports a default refresh rate of 60 Hz, but this can be changed by writing to the FRMCTR1 register. The orientation does not affect the refresh rate, but it does affect the memory access pattern. In default orientation, the memory is accessed in a row-major order, which is efficient for most graphics operations. If you rotate the display, the memory access becomes column-major, which might be slower for some operations. However, for a 240x240 display, the difference is minimal.

Testing and verification methods
To verify the default orientation of your 1.3 inch IPS LCD, you can run a simple test pattern. Write a red rectangle in the top-left corner of the display. If the rectangle appears at the top-left when the connector is at the bottom, the default orientation is correct. If the rectangle appears at the top-right, the display is rotated 90 degrees. If it appears at the bottom-left, it is rotated 270 degrees. If it appears at the bottom-right, it is rotated 180 degrees. This test is easy to do with any microcontroller. You can also use the display’s built-in test commands, like the ST7789V’