Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

setScrollMargins() issues with #1947
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

setScrollMargins() issues with #1947

by jim_lee on Thu Jul 30, 2020 11:46 pm

Been working with a guy that does animated .GIFs and he likes to use setScrollMargins(). Sadly, it seems that setScrollMargins() has no effect on the #1947 Arduino cap. touch shield. Anyone know anything about this?

The code in question..

Code: Select all | TOGGLE FULL SIZE
/**************************************************************************/
/*!
    @brief   Set the "address window" - the rectangle we will write to RAM with
   the next chunk of      SPI data writes. The ILI9341 will automatically wrap
   the data as each row is filled
    @param   x1  TFT memory 'x' origin
    @param   y1  TFT memory 'y' origin
    @param   w   Width of rectangle
    @param   h   Height of rectangle
*/
/**************************************************************************/
void Adafruit_ILI9341::setAddrWindow(uint16_t x1, uint16_t y1, uint16_t w,
                                     uint16_t h) {
                                   
  uint16_t x2 = (x1 + w - 1), y2 = (y1 + h - 1);
  writeCommand(ILI9341_CASET); // Column address set
  SPI_WRITE16(x1);
  SPI_WRITE16(x2);
  writeCommand(ILI9341_PASET); // Row address set
  SPI_WRITE16(y1);
  SPI_WRITE16(y2);
  writeCommand(ILI9341_RAMWR); // Write to RAM
}

Thanks!

-jim lee

jim_lee
 
Posts: 658
Joined: Thu May 24, 2012 8:24 pm

Re: setScrollMargins() issues with #1947

by jim_lee on Tue Aug 04, 2020 1:47 pm

C'mon Adafruit, No ghosting me here. You can at least reply, "Yeah we read this but have no idea what can be done about it."

-jim lee

jim_lee
 
Posts: 658
Joined: Thu May 24, 2012 8:24 pm

Re: setScrollMargins() issues with #1947

by adafruit_support_carter on Thu Aug 06, 2020 8:38 pm

Is the issue with setScrollMargins or setAddrWindow?

There appears to be an open issue related to setScrollMargins:
https://github.com/adafruit/Adafruit_ILI9341/issues/62

adafruit_support_carter
 
Posts: 16944
Joined: Tue Nov 29, 2016 2:45 pm

Re: setScrollMargins() issues with #1947

by jim_lee on Fri Aug 07, 2020 1:28 am

It was setAddrWindow() that the issue was with. I finally gave up on the code they had and just "rolled my own". And it worked. But it was odd that setAddrWindow() seemed to just do nothing for my system, ( This was example code from the originator of the project. ) I was trying to run it on a teensy 3.2 & Adafruit 1947. I guess on whatever he was testing it on, everything worked fine.

Thanks for getting back to me. Just hate to feel ignored.

-jim lee

jim_lee
 
Posts: 658
Joined: Thu May 24, 2012 8:24 pm

Re: setScrollMargins() issues with #1947

by adafruit_support_carter on Fri Aug 07, 2020 11:27 am

If you can recreate the issue with a simple demo sketch, you can open a new issue in that repo.

adafruit_support_carter
 
Posts: 16944
Joined: Tue Nov 29, 2016 2:45 pm

Re: setScrollMargins() issues with #1947

by jim_lee on Sat Aug 08, 2020 2:21 am

ok

-jim lee

jim_lee
 
Posts: 658
Joined: Thu May 24, 2012 8:24 pm

Please be positive and constructive with your questions and comments.