blob: f075d4984c72f243f12509d96876ee330db408d2 [file] [log] [blame]
// Copyright 2022 The Pigweed Authors
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// License for the specific language governing permissions and limitations under
// the License.
#pragma once
#include "pw_coordinates/vec_int.h"
#include "pw_framebuffer/rgb565.h"
using namespace pw::framebuffer;
namespace pw::display {
void Init();
uint16_t* GetInternalFramebuffer();
// TODO(tonymd): Add a DPI or physical size value.
int GetWidth();
int GetHeight();
// TODO(tonymd): Add update functions for new framebuffer types or make this a
// templated class.
void Update(FramebufferRgb565* framebuffer);
bool TouchscreenAvailable();
bool NewTouchEvent();
pw::coordinates::Vec3Int GetTouchPoint();
} // namespace pw::display