Skip to content

Robot Labs Displays

How much RAM does a 128x64 monochrome frame buffer take?

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# Dimensions of the display
width = 128
height = 64

# Total number of pixels
total_pixels = width * height

# Total number of bits (since 1 pixel = 1 bit)
total_bits = total_pixels

# Convert bits to bytes (1 byte = 8 bits)
total_bytes = total_bits / 8

# Convert bytes to kilobytes (1 kilobyte = 1024 bytes)
total_kilobytes = total_bytes / 1024
print(total_kilobytes)

Result

1