magtag vs il0373 refresh time

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
artman70
 
Posts: 20
Joined: Tue Nov 29, 2016 8:44 am

magtag vs il0373 refresh time

Post by artman70 »

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

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

Re: magtag vs il0373 refresh time

Post by artman70 »

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?

User avatar
tannewt
 
Posts: 3304
Joined: Thu Oct 06, 2016 8:48 pm

Re: magtag vs il0373 refresh time

Post by tannewt »

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.

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

Re: magtag vs il0373 refresh time

Post by artman70 »

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

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

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

Re: magtag vs il0373 refresh time

Post by artman70 »

it worked. .thanks again!!

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”