Due to high demand expect some shipping delays at this time, orders may not ship for 3-4 business days. On MLK Day no orders will be shipped.
0

magtag vs il0373 refresh time
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

magtag vs il0373 refresh time

by artman70 on Sat Dec 04, 2021 1:44 pm

why does it seem the magtag doesnt enforce the refresh time but the il0373 does?

when i magtag.set_text it works immediately but the 2.9featherwing says it needs more time.
is there a way i can lower the refresh time to 1 minute instead?
thanks

artman70
 
Posts: 20
Joined: Tue Nov 29, 2016 8:44 am

Re: magtag vs il0373 refresh time

by artman70 on Sun Dec 05, 2021 1:38 pm

another related question.. i have a grayscale epaper featherwing and a featherS2 is there any way i can run the magtag libraries on this setup.. its essentially the same ?
maybe with some minor changes?

artman70
 
Posts: 20
Joined: Tue Nov 29, 2016 8:44 am

Re: magtag vs il0373 refresh time

by tannewt on Mon Dec 06, 2021 5:00 pm

artman70 wrote:why does it seem the magtag doesnt enforce the refresh time but the il0373 does?

when i magtag.set_text it works immediately but the 2.9featherwing says it needs more time.
is there a way i can lower the refresh time to 1 minute instead?
thanks


It looks like the magtag sets `seconds_per_frame` to 5: https://github.com/adafruit/circuitpyth ... ard.c#L165

You should be able to pas `seconds_per_frame=5` to the IL0373 constructor to get the same behavior with the wing. The default is 180 iirc. We do this to ensure that the rapid refreshes are deliberate.

artman70 wrote:another related question.. i have a grayscale epaper featherwing and a featherS2 is there any way i can run the magtag libraries on this setup.. its essentially the same ?
maybe with some minor changes?


You can try. I'm not sure exactly what changes would be needed.

tannewt
 
Posts: 2732
Joined: Thu Oct 06, 2016 8:48 pm

Re: magtag vs il0373 refresh time

by artman70 on Mon Dec 06, 2021 5:42 pm

that makes sense..
but how would i pass that parameter to the constructor (sorry im still new with CP)
like below?

heres whats in the code now..
Code: Select all | TOGGLE FULL SIZE
spi = busio.SPI(board.SCK, board.MOSI)  # Uses SCK and MOSI
epd_cs = board.IO1
epd_dc = board.IO3
display_bus = displayio.FourWire(
    spi, command=epd_dc, chip_select=epd_cs, baudrate=1000000
)
display = adafruit_il0373.IL0373(
    display_bus,
    width=296,
    height=128,
    rotation=270,
    black_bits_inverted=False,
    color_bits_inverted=False,
    grayscale=True,
    refresh_time=1,
    seconds_per_frame=5,
)


thanks for the help

artman70
 
Posts: 20
Joined: Tue Nov 29, 2016 8:44 am

Re: magtag vs il0373 refresh time

by artman70 on Mon Dec 06, 2021 6:30 pm

it worked. .thanks again!!

artman70
 
Posts: 20
Joined: Tue Nov 29, 2016 8:44 am

Please be positive and constructive with your questions and comments.