Skip to content

help modifying BMP_functions to display BMP with 16-bit color RGB555 #1029

Discussion options

You must be logged in to vote

Sure thing - thank you. Here's a zipped BMP with 16-bit 555 depth (drag/drop of the BMP itself didn't work...format not recognized).
graph20190626.zip

My test sketch is the following, together with your BMP_functions.ino in separate tab:

#include <Arduino.h>
#include "FS.h"
#include <LITTLEFS.h>
#include <TFT_eSPI.h>  // tested w/ v.2.3.59 and .60;  don't forget to save user_setup *before* updating
TFT_eSPI tft = TFT_eSPI();

void setup()
{
  Serial.begin(115200);
  Serial.println("starting LitFS");
  if (!LITTLEFS.begin()) {
    Serial.println("LitFS mount failed");
    return;
  }
  tft.begin();
  tft.setRotation(3);  // 0 & 2 Portrait. 1 & 3 landscape
  drawBmp("/graph.bmp", 0, 0); // …

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Bodmer
Comment options

You must be logged in to vote
2 replies
@galed3e3
Comment options

@galed3e3
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants