You can draw on a 128×64 OLED with an ATtiny85 without allocating a full-screen RAM framebuffer: send display data directly to the OLED controller’s display RAM, or stream pre-encoded image data from the ATtiny85’s program flash. The best approach depends on the display controller and whether you need general pixel drawing, plots, or static images.
Why a full-screen framebuffer will not fit
Microchip specifies the ATtiny85 with 512 bytes of SRAM and 8 KB of program memory. A 128×64 monochrome image at one bit per pixel requires 1,024 bytes, twice the chip’s total SRAM—before accounting for the stack, variables, and bus state. See Microchip’s ATtiny85 product specifications.
“No buffer” generally means avoiding a duplicate, full-screen image in the microcontroller’s SRAM. The OLED controller has its own display RAM, so software can write data there directly. Static images can instead live in program flash and be sent to the display as needed. These methods reduce SRAM use, but they do not remove the need to track the pixels or bytes required by the operation you are performing.
Choose a method that matches the controller and drawing task
| Approach | Controller or content | How it avoids a full SRAM frame | Main limitation |
|---|---|---|---|
| Read-modify-write drawing | SH1106; general pixel changes | Reads existing display data, changes the needed bits, and writes it back | The cited Tiny Graphics Library is SH1106-specific; verify the controller and interface behavior. |
| Tiny Function Plotter | SSD1306 or SH1106; plots over time | Uses focused plotting operations rather than a general full-screen text-and-graphics buffer | It does not draw text and is not a general graphics library. |
| Direct display-RAM streaming | SSD1306; byte-oriented drawing or updates | Sets display-RAM addresses, then streams bytes while the controller advances its address pointer | Do not assume SSD1306 I2C reads support the SH1106 read-modify-write method. |
| Stream images from program flash | SSD1306; pre-encoded static images | Keeps image data in program flash and sends it to the display without a duplicate full frame in SRAM | Best suited to stored assets; it is not proof that every dynamic graphics task will fit. |
Use SH1106 read-modify-write for pixel drawing
The Tiny Graphics Library described by Hackaday uses an SH1106 feature to read display data over I2C. Software can retrieve the byte containing a pixel, change the relevant bit, and write the byte back. That lets it preserve neighboring pixels without holding the whole screen in the ATtiny85’s SRAM. The library in that example is specifically for SH1106-based OLEDs; the technique should not be presumed to work with an SSD1306.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
Check the actual controller on your OLED module before choosing this route. Listings can be inconsistent, and Hackaday notes that SH1106 is sometimes misspelled “SSH1106.” A module’s advertised resolution or appearance alone does not establish which controller it uses. Read the module documentation or inspect its controller marking where possible. Hackaday’s 2018 explanation of the library and plotting alternative is at “Drawing On An OLED With An ATtiny85, No RAM Buffers Allowed”.
For plots, use a focused no-buffer library
If the display’s job is to graph changing values over time, the Tiny Function Plotter is a narrower option. The cited project supports both SSD1306 and SH1106 displays and does not support text. That scope can be an advantage for a plotter, but it makes the library unsuitable when the application also needs general text and graphics.
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
Stream bytes directly into SSD1306 display RAM
The SSD1306 Rev. 1.5 datasheet documents page, horizontal, and vertical addressing modes. In page mode, software selects a page and starting column; the column address advances as display data is written. In horizontal mode, the column advances and wraps to the next page at the configured range boundary. Horizontal and vertical modes let software set page and column ranges before streaming data. This controller-managed addressing can write bytes into display RAM without maintaining a mirrored 1,024-byte screen in ATtiny85 SRAM.
The datasheet specifies that the SSD1306 serial interface is always in write mode. Therefore, do not apply the SH1106 read-modify-write approach to an SSD1306 over I2C on the assumption that the display will return its RAM contents. Instead, organize writes around the SSD1306’s addressing modes and the bytes your application needs to update. The technical details are in Solomon Systech’s SSD1306 Rev. 1.5 datasheet.
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
Keep static image data in program flash
For images known at compile time, storing encoded bytes in program flash is another way to avoid a duplicate full-screen SRAM buffer. In the TinyPhoto project, the author reports fitting five encoded images in about 4,900 bytes, with about 1,300 bytes of C code and a minimal custom display driver using about 200 bytes of Flash. Those are figures for that project, not general memory requirements for other image formats or drivers. The author describes sending the images to a 128×64 SSD1306 one by one.
The TinyPhoto author also reports running that setup at 8 MHz or faster for a 60 Hz full-screen refresh target. Treat this as a project-specific report, not a guaranteed refresh rate for another program: timing varies with the code, bus implementation, and hardware. The project account is available at “TinyPhoto: Embedded Graphics and Low-Fat Computing”.
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
Check the hardware and SRAM budget before coding
- Identify the OLED controller. Confirm whether the module uses SH1106 or SSD1306; the drawing strategies are not interchangeable.
- Confirm resolution and interface. Modules sold under similar descriptions can vary. Check the actual module documentation and wiring rather than assuming every board is the same.
- Choose the drawing scope. Use a plotting-focused library for plots, SH1106 read-modify-write for supported pixel operations, direct SSD1306 writes for addressable updates, or flash streaming for stored images.
- Budget SRAM beyond the display. The 512-byte total also has to accommodate application globals, stack, and bus state. A partial buffer may be possible, but there is no universal safe size; account for the needs of the specific program.
- Plan programming and clock configuration. Bare-chip programming and fuse changes may call for an AVR ISP programmer. The TinyPhoto author also describes using a spare Arduino Nano or Uno; its clock-setting guidance is specific to that project.
Libraries can have modes that use buffers even when some other mode does not. For example, Tiny4kOLED’s documentation describes buffer use and particular display geometries and initialization settings, including double buffering for common 128×32 displays using otherwise unused controller RAM. Check the selected mode against a strict no-full-screen-buffer requirement rather than assuming that the library name or display support guarantees it.
Quick Recap
Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

