Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sketch is wrong... #1

Open
tehniq3 opened this issue Oct 28, 2021 · 7 comments
Open

Sketch is wrong... #1

tehniq3 opened this issue Oct 28, 2021 · 7 comments

Comments

@tehniq3
Copy link

tehniq3 commented Oct 28, 2021

Hello,

I try to compile the sketch, but first I found issue in TeensyThreads.cpp with a line 29 .. I deleted line and next error was with grey colour for display and than with description of the buttons (*bgImage)... so, you can upload a good sketch?????
I respect your results, but please upload fear sketch.. also first version can't be compiled...
I want to test the device, but is fear to loss 100-200$ just for you not put a good information?????
is not fear... believe me

HINT: try on a blank computer, so install Arduino IDE, all library... I tested on 2 computers and also 2 friends tested.. just compiled and not ok, so...

@tehniq3 tehniq3 changed the title Sketch is not complit Sketch is wrong... Oct 28, 2021
@sepp89117
Copy link
Owner

sepp89117 commented Oct 29, 2021

Hi,
I have now uploaded the latest version of my sketch.
I tested it on a freshly installed PC. After commenting out #include "utils/debug.h" in TeensyThreads.cpp, it compiles without problems.

If you still have problems, please copy the full console output into your answer here.

I would like to remind you that I am a hobby programmer and I cannot guarantee that my code will work. You use my code at your own risk.

@tehniq3
Copy link
Author

tehniq3 commented Oct 29, 2021

Thank you ! Now I saw "Done compiling" ...
In console:
"Memory Usage on Teensy 4.0:
FLASH: code:126708, data:161360, headers:8888 free for files:1734660
RAM1: variables:209600, code:121560, padding:9512 free for local variables:183616
RAM2: variables:12384 free for malloc/new:511904"

Next step is to buy Tennsy 4.0, CAN modules and TFT display...

Keeping touch !

@sepp89117
Copy link
Owner

Hello, what is the state of affairs? Does it work?

@tehniq3
Copy link
Author

tehniq3 commented Dec 5, 2021

I just received the Teensy 4.0 and a 3.5" touch display for RPi (driver ILI9486), but if upload the your skwtch display remain white, I found a dedicate library and display works (after put also pin no.1 to 3.3V): https://youtu.be/2UEOx53p6lg

@sepp89117
Copy link
Owner

Which display exactly did you buy? Please send me a link to the display.

@sepp89117 sepp89117 reopened this Dec 5, 2021
@tehniq3
Copy link
Author

tehniq3 commented Dec 5, 2021

display is from: https://a.aliexpress.com/_mKbKeIq
the display works with https://github.com/palmerr23/ILI9486_Teensy_Library (to show something I added just 3.3V on pin no.1 of display)
your sketch show just a white display

@tehniq3
Copy link
Author

tehniq3 commented Dec 10, 2021

I solved to saw something (I connected just display at Teensy 4.0)... 😎
I used info from https://forum.pjrc.com/threads/55735-ILI9488_t3-Support-for-the-ILI9488-on-T3-x-and-beyond/page28?highlight=ILI9486 as per IS_VER_A, so I changed:

  1. in file ILI9486_t3n.h line 232: #define ILI9486_SPICLOCK 30e6
    2 )in file ILI9486_t3n.cpp

static const uint8_t init_commands[] = {
// 2, 0xb0, 0x0, // Interface Mode Control
// 1, 0x11, // Sleep OUT
// DELAY, 150,
2, 0x3A, 0x55, // use 16 bits per pixel color
2, 0x36, 0x48, // MX, BGR == rotation 0
// 2, 0xC2, 0x44, // Power Control 3
// VCOM Control 1
// 5, 0xC5, 0x00, 0x00, 0x00, 0x00,
// PGAMCTRL(Positive Gamma Control)
16, 0xE0, 0x0F, 0x1F, 0x1C, 0x0C, 0x0F, 0x08, 0x48, 0x98,
0x37, 0x0A, 0x13, 0x04, 0x11, 0x0D, 0x00,
// NGAMCTRL(Negative Gamma Control)
16, 0xE1, 0x0F, 0x32, 0x2E, 0x0B, 0x0D, 0x05, 0x47, 0x75,
0x37, 0x06, 0x10, 0x03, 0x24, 0x20, 0x00,
// Digital Gamma Control 1
16, 0xE2, 0x0F, 0x32, 0x2E, 0x0B, 0x0D, 0x05, 0x47, 0x75,
0x37, 0x06, 0x10, 0x03, 0x24, 0x20, 0x00,
1, 0x11, // Sleep OUT
0x30, 150, // wait some time
1, 0x29, // Display ON
0 // end marker
};

also I changed in ILI9486_t3n.h file
class ILI9486_t3n : public Print
{
public:
ILI9486_t3n(uint8_t _CS, uint8_t _DC, uint8_t _RST, uint8_t _MOSI, uint8_t _SCLK, uint8_t _MISO); ...
I saw you included this option to switch between VER.A and VER.C in https://github.com/sepp89117/ILI9486_RPi-t4 library 👍👍

PS: when I will receive the CAN module I will continue the test, but for moment is ok 👍👌

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

No branches or pull requests

2 participants