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

MCP23S17 too slow #4

Open
robertspil opened this issue Oct 7, 2021 · 5 comments
Open

MCP23S17 too slow #4

robertspil opened this issue Oct 7, 2021 · 5 comments

Comments

@robertspil
Copy link

Before and after each change of the pin_cs ( Chip Select pin ) there is a sleep_ms(1)
The SPI specifications for the MCP23S17 have some time delays for the CS signal, no more than 100 ns.
I use this code with a Raspberry Pico, WITHOUT any sleep, with a big performance increase .
Maybe a sleep of one microsecond may be safe for a very fast processor.

@NicolasJVelez
Copy link

Hi @robertspil, I am working with an ESP32 in micropython and it has a very slow screen update. How can I do to increase the speed? I have commented the function def delay_us( self ):

@mchobby
Copy link
Owner

mchobby commented Jun 9, 2022

Hi,
didn't take the time to update the library.... will do it right now.

@mchobby
Copy link
Owner

mchobby commented Jun 9, 2022

Replaced the milli-second delay by micro-second delay. Will already be better waiting for advanced testing

@NicolasJVelez
Copy link

Replaced the milli-second delay by micro-second delay. Will already be better waiting for advanced testing

I can't see any changes in the ST7687 library. I already commented on the delays, and the screen refresh is still slow, any advice?

@mchobby
Copy link
Owner

mchobby commented Jun 10, 2022

How sorry, you did record it into the MCP23S17 issue
Please open a new issue... I will have a look

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

3 participants