Platform library for RETRO
Embed:
(wiki syntax)
Show/hide line numbers
Display.h
00001 /* 00002 * (C) Copyright 2015 Valentin Ivanov. All rights reserved. 00003 * 00004 * This file is part of the RetroPlatform Library 00005 * 00006 * The RetroPlatform Library is free software: you can redistribute it and/or modify 00007 * it under the terms of the GNU Lesser General Public License as published by 00008 * the Free Software Foundation, either version 3 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public License 00017 * along with this program. If not, see <http://www.gnu.org/licenses/> 00018 * 00019 * This library is inspired by Gamebuino Library (http://gamebuino.com) 00020 * from Aurélien Rodot. 00021 */ 00022 #ifndef DISPLAY_H 00023 #define DISPLAY_H 00024 00025 #include "LCD_ST7735.h" 00026 00027 00028 class Display : public LCD_ST7735 00029 { 00030 00031 public: 00032 Display( 00033 PinName backlightPin, 00034 PinName resetPin, 00035 PinName dsPin, 00036 PinName mosiPin, 00037 PinName misoPin, 00038 PinName clkPin, 00039 PinName csPin, 00040 PanelColorFilter colorFilter = BGR 00041 ); 00042 00043 void drawBitmapIndexed(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *pbmp); 00044 void drawBitmapIndexed(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *pbmp, const uint16_t *palette, bool mirrored = false); 00045 //void drawBitmapTransparent(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *pbmp, const uint16_t *palette, uint8_t color, bool mirrored = false); 00046 void drawBitmapIndexed(uint8_t x, uint8_t y, int w, int h, int src_x, int src_y, int srcWidth, int srcHeight, const uint8_t *pbmp, const uint16_t *palette); 00047 00048 void drawBitmapIndexed(uint8_t x, uint8_t y, const uint8_t *pbmp); 00049 void eraseBitmapIndexed(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *pbmp); 00050 void eraseBitmapIndexed(uint8_t x, uint8_t y, const uint8_t *pbmp); 00051 }; 00052 00053 00054 #endif //DISPLAY_H
Generated on Tue Jul 12 2022 23:21:39 by 1.7.2