2019-01-24 20:25:08 -05:00
|
|
|
/*
|
|
|
|
* This file is part of the MicroPython project, http://micropython.org/
|
|
|
|
*
|
|
|
|
* The MIT License (MIT)
|
|
|
|
*
|
|
|
|
* Copyright (c) 2019 Scott Shawcroft for Adafruit Industries
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
|
|
* in the Software without restriction, including without limitation the rights
|
|
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
|
|
* furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
* THE SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MICROPY_INCLUDED_SUPERVISOR_SHARED_DISPLAY_H
|
|
|
|
#define MICROPY_INCLUDED_SUPERVISOR_SHARED_DISPLAY_H
|
|
|
|
|
2020-08-17 20:17:59 -04:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2022-08-04 17:53:49 -04:00
|
|
|
#include "shared-bindings/displayio/TileGrid.h"
|
|
|
|
|
2020-08-17 20:17:59 -04:00
|
|
|
#if CIRCUITPY_TERMINALIO
|
|
|
|
|
2019-01-24 20:25:08 -05:00
|
|
|
#include "shared-bindings/displayio/Bitmap.h"
|
2019-03-19 19:22:09 -04:00
|
|
|
#include "shared-bindings/fontio/BuiltinFont.h"
|
2019-01-25 19:59:18 -05:00
|
|
|
#include "shared-bindings/terminalio/Terminal.h"
|
|
|
|
|
2019-01-24 20:25:08 -05:00
|
|
|
// These are autogenerated resources.
|
|
|
|
|
2019-01-25 19:59:18 -05:00
|
|
|
// This is fixed so it doesn't need to be in RAM.
|
2019-03-19 19:22:09 -04:00
|
|
|
extern const fontio_builtinfont_t supervisor_terminal_font;
|
2019-01-25 19:59:18 -05:00
|
|
|
|
|
|
|
// These will change so they must live in RAM.
|
2019-07-18 19:47:28 -04:00
|
|
|
extern displayio_bitmap_t supervisor_terminal_font_bitmap;
|
2022-06-06 19:54:02 -04:00
|
|
|
extern displayio_tilegrid_t supervisor_terminal_scroll_area_text_grid;
|
|
|
|
extern displayio_tilegrid_t supervisor_terminal_title_bar_text_grid;
|
2019-01-25 19:59:18 -05:00
|
|
|
extern terminalio_terminal_obj_t supervisor_terminal;
|
2020-08-17 20:17:59 -04:00
|
|
|
#endif
|
|
|
|
|
2022-08-04 17:53:49 -04:00
|
|
|
// Always shown.
|
|
|
|
extern displayio_tilegrid_t supervisor_blinka_sprite;
|
|
|
|
|
2019-01-25 19:59:18 -05:00
|
|
|
void supervisor_start_terminal(uint16_t width_px, uint16_t height_px);
|
|
|
|
void supervisor_stop_terminal(void);
|
|
|
|
|
|
|
|
void supervisor_display_move_memory(void);
|
2019-01-24 20:25:08 -05:00
|
|
|
|
|
|
|
#endif // MICROPY_INCLUDED_SUPERVISOR_SHARED_DISPLAY_H
|