// This file is part of the CircuitPython project: https://circuitpython.org // // SPDX-FileCopyrightText: Copyright (c) 2019 Scott Shawcroft for Adafruit Industries // // SPDX-License-Identifier: MIT #pragma once #include "common-hal/microcontroller/Pin.h" #include "shared-bindings/displayio/__init__.h" #include "shared-module/displayio/Group.h" typedef struct dotclockframebuffer_framebuffer_obj dotclockframebuffer_framebuffer_obj_t; extern const mp_obj_type_t dotclockframebuffer_framebuffer_type; void common_hal_dotclockframebuffer_framebuffer_construct(dotclockframebuffer_framebuffer_obj_t *self, const mcu_pin_obj_t *de, const mcu_pin_obj_t *vsync, const mcu_pin_obj_t *hsync, const mcu_pin_obj_t *dclk, const mcu_pin_obj_t **red, uint8_t num_red, const mcu_pin_obj_t **green, uint8_t num_green, const mcu_pin_obj_t **blue, uint8_t num_blue, int frequency, int width, int height, int hsync_pulse_width, int hsync_back_porch, int hsync_front_porch, bool hsync_idle_low, int vsync_pulse_width, int vsync_back_porch, int vsync_front_porch, bool vsync_idle_low, bool de_idle_high, bool pclk_active_high, bool pclk_idle_high, int overscan_left); void common_hal_dotclockframebuffer_framebuffer_deinit(dotclockframebuffer_framebuffer_obj_t *self); bool common_hal_dotclockframebuffer_framebuffer_deinitialized(dotclockframebuffer_framebuffer_obj_t *self); mp_int_t common_hal_dotclockframebuffer_framebuffer_get_width(dotclockframebuffer_framebuffer_obj_t *self); mp_int_t common_hal_dotclockframebuffer_framebuffer_get_height(dotclockframebuffer_framebuffer_obj_t *self); mp_int_t common_hal_dotclockframebuffer_framebuffer_get_frequency(dotclockframebuffer_framebuffer_obj_t *self); mp_int_t common_hal_dotclockframebuffer_framebuffer_get_refresh_rate(dotclockframebuffer_framebuffer_obj_t *self); mp_int_t common_hal_dotclockframebuffer_framebuffer_get_row_stride(dotclockframebuffer_framebuffer_obj_t *self); mp_int_t common_hal_dotclockframebuffer_framebuffer_get_first_pixel_offset(dotclockframebuffer_framebuffer_obj_t *self); void common_hal_dotclockframebuffer_framebuffer_refresh(dotclockframebuffer_framebuffer_obj_t *self);