Closed Qdeathstar closed 8 years ago
They both print the pattern 16x16 at 100,100 once, as suppose, correctly, both tested a minute ago. How to use pattern repeately? Well, you have to figure out, I just wroted the library and commands and provided some examples, the pattern it's stored correctly and printed as well. This library provide pattern functionality for 800x480 screen as well even if (theorically) this screen doesn't support layers unless forcing 8bit, color space, I provide transparent 8 bit conversion to seamless 16bit and enable layers support always, and works...
In both examples you got a blue screen with a colored pattern icon of 16x16 at 100,100, please look at your screen with more attention.
This is not an issue, sorry...
thank you. I figured that out, using for loops...
The issue with the example is why does the bte code have no effect on the sketch? Why include it in the example if it doesn't do anything.
On Feb 9, 2016, at 2:45 AM, max mc costa notifications@github.com wrote:
They both print the pattern 16x16 at 100,100 once, as suppose, correctly, both tested a minute ago. How to fill the screen with the pattern? Well, you have to figure out, I just wroted the library and commands and provided some examples. This is not an issue, sorry...
— Reply to this email directly or view it on GitHub.
try this...
/*
Just a basic example, an hello world example.
*/
#include <SPI.h>
#include <RA8875.h>
#include "pattern16x16.h"
#define RA8875_CS 10
#define RA8875_RESET 8//any pin or 255 to disable it!
RA8875 tft = RA8875(RA8875_CS, RA8875_RESET);
void setup()
{
Serial.begin(38400);
//long unsigned debug_start = millis ();
//while (!Serial && ((millis () - debug_start) <= 5000)) ;
Serial.println("RA8875 start");
tft.begin(RA8875_800x480);
}
void loop()
{
tft.clearScreen(RA8875_BLUE);
tft.writePattern(100, 100, _pattern16x16, 16, false); //this write a pattern 16x16 at 100,100
tft.BTE_move(100, 100, 16, 16, 200, 200, 1, 1, true, 0xC5);
delay(1000);
tft.clearScreen(RA8875_BLUE);
tft.writePattern(200, 200, _pattern16x16, 16, false);
tft.BTE_move(200, 200, 16, 16, 300, 300, 1, 1, true, 0xC4);
delay(1000);
}
BTE has been updated an some example it's old
Thank you, that works much better
On Feb 9, 2016, at 3:45 PM, max mc costa notifications@github.com wrote:
try this...
/ Just a basic example, an hello world example. /
include
include
include "pattern16x16.h"
define RA8875_CS 10
define RA8875_RESET 8//any pin or 255 to disable it!
RA8875 tft = RA8875(RA8875_CS, RA8875_RESET);
void setup() { Serial.begin(38400); //long unsigned debug_start = millis (); //while (!Serial && ((millis () - debug_start) <= 5000)) ; Serial.println("RA8875 start"); tft.begin(RA8875_800x480);
}
void loop() { tft.clearScreen(RA8875_BLUE); tft.writePattern(100, 100, _pattern16x16, 16, false); //this write a pattern 16x16 at 100,100 tft.BTE_move(100, 100, 16, 16, 200, 200, 1, 1, true, 0xC5); delay(1000); tft.clearScreen(RA8875_BLUE); tft.writePattern(200, 200, _pattern16x16, 16, false); tft.BTE_move(200, 200, 16, 16, 300, 300, 1, 1, true, 0xC4); delay(1000); } BTE has been updated an some example it's old
— Reply to this email directly or view it on GitHub.
Hello,
I am trying to figure out what the pattern function does. According to the RA8875 data sheet, you can set a pattern, then display it repeatedly over a certain area that you set. However, i can't figure out how do it in your example.
`
and
`
` produce the same affect on my screen, like the BTE functions aren't doing anything..