no-OS
Loading...
Searching...
No Matches
camera_tft.h File Reference

Lossless row-batched SSD2119 RGB565 camera writer. More...

#include <stdint.h>
Include dependency graph for camera_tft.h:

Functions

void camera_tft_show_rgb565 (int x0, int y0, uint8_t *image, int width, int height)
 Draw an RGB565 image from the camera on the TFT.
 
void camera_tft_hard_reset (void)
 Hold the SSD2119 reset line low for 20 ms and wait for it to restart.
 
void camera_tft_reinit (void)
 Hard reset and reprogram the SSD2119 without touching its SPI setup.
 

Detailed Description

Lossless row-batched SSD2119 RGB565 camera writer.

Author
Victor Pascu (victo.nosp@m.r.pa.nosp@m.scu@a.nosp@m.nalo.nosp@m.g.com)

Copyright 2026(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Function Documentation

◆ camera_tft_hard_reset()

void camera_tft_hard_reset ( void )

Hold the SSD2119 reset line low for 20 ms and wait for it to restart.

◆ camera_tft_reinit()

void camera_tft_reinit ( void )

Hard reset and reprogram the SSD2119 without touching its SPI setup.

The panel is black until the next frame is drawn.

◆ camera_tft_show_rgb565()

void camera_tft_show_rgb565 ( int x0,
int y0,
uint8_t * image,
int width,
int height )

Draw an RGB565 image from the camera on the TFT.

Parameters
x0- Horizontal position of the image on the panel.
y0- Vertical position of the image on the panel.
image- RGB565 pixel data.
width- Image width in pixels.
height- Image height in pixels.