PokittoDisplay.h File Reference
#include <stdint.h>
#include "Pokitto_settings.h"
#include "PokittoGlobs.h"
#include "PokittoFonts.h"
#include "PokittoPalettes.h"
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Classes

class  Pokitto::Display
 

Macros

#define COLOR_BLACK   (uint16_t)(0x0000)
 
#define COLOR_BLUE   (uint16_t)(0x001F)
 
#define COLOR_RED   (uint16_t)(0xF800)
 
#define COLOR_GREEN   (uint16_t)(0x07E0)
 
#define COLOR_CYAN   (uint16_t)(0x07FF)
 
#define COLOR_MAGENTA   (uint16_t)(0xF81F)
 
#define COLOR_YELLOW   (uint16_t)(0xFFE0)
 
#define COLOR_WHITE   (uint16_t)(0xFFFF)
 
#define COLOR_GRAY_15   (uint16_t)(0x0861)
 
#define COLOR_GRAY_30   (uint16_t)(0x18E3)
 
#define COLOR_GRAY_50   (uint16_t)(0x3186)
 
#define COLOR_GRAY_80   (uint16_t)(0x528A)
 
#define COLOR_GRAY_128   (uint16_t)(0x8410)
 
#define COLOR_GRAY_200   (uint16_t)(0xCE59)
 
#define COLOR_GRAY_225   (uint16_t)(0xE71C)
 
#define PALETTE_SIZE   16
 

Enumerations

enum  defcolors {
  C_BLACK, C_DARKBLUE, C_PURPLE, C_DARKGREEN,
  C_BROWN, C_DARKBROWN, C_LIGHTGRAY, C_WHITE,
  C_RED, C_ORANGE, C_YELLOW, C_GREEN,
  C_BLUE, C_DARKGRAY, C_PINK, C_PEACH
}
 

Variables

const uint16_t def565palette [16]
 

Detailed Description

Author
Jonne Valola

LICENSE

Software License Agreement (BSD License)

Copyright (c) 2016, Jonne Valola All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of the copyright holders nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Enumeration Type Documentation

◆ defcolors

enum defcolors

The tables below are palettes, that resemble the Pico 8 palette

Variable Documentation

◆ def565palette

const uint16_t def565palette[16]
Initial value:
= {
0,0x194a,0x792a,0x42a,
0xaa86,0x5aa9,0xc618,0xff9d,
0xf809,0xfd00,0xff84,0x72a,
0x2d7f,0x83b3,0xfbb5,0xfe75
}