-
Notifications
You must be signed in to change notification settings - Fork 5
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
SPI /CS needs to be pulled LOW #1
Comments
@HanBingze123 The SPI pins that were used are SCK, MOSI and ECSM. ECSM refers to the chip select pin. You can find the pin assignments for the different pre-tested boards in the EPD_Configuration.h file in the src folder. |
But I didn't find the code defining SPI pins in that configuration file |
But I didn't find the code defining SPI pins in that configuration file
I mean similar
MOSI = 17
SCK = 18
Something like that
从 Windows 版邮件<https://go.microsoft.com/fwlink/?LinkId=550986>发送
发件人: ***@***.***>
发送时间: 2022年1月18日 15:58
收件人: ***@***.***>
抄送: ***@***.***>; ***@***.***>
主题: Re: [PervasiveDisplays/EPD_Driver_GU_small] A IMPORTANT PROBLEM (Issue #1)
@HanBingze123<https://github.com/HanBingze123> The SPI pins that were used are SCK, MOSI and ECSM. ECSM refers to the chip select pin. You can find the pin assignments for the different pre-tested boards in the EPD_Configuration.h file in the src folder.
―
Reply to this email directly, view it on GitHub<#1 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AXJF7ZO55I7OCYBYVDB75BTUWUMSPANCNFSM5MGK2AEQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@HanBingze123 My apologies. You are right. The MOSI and SCK are both connected to the hardware SPI of the different boards which we used. Assuming you are using your boards' hardware SPI, then just connect those two to the related MOSI and SCK pins. MISO can be ignored. For the chip select, those are listed as panelCS in the configuration file. |
But the hardware I use is esp 32, ESP 32 has many hardware SPI, If I want to use software SPI or define the pin number of SPI pin, how do I operate? |
But the hardware I use is esp 32, ESP 32 has many hardware SPI, If I want to use software SPI or define the pin number of SPI pin, how do I operate? |
@HanBingze123 Which ESP32 board are you using? Can you give me the board ID? I can help you select which hardware SPI pins. I would suggest that you use the hardware SPI to reduce the complexity of your hardware and software design. But, if you would still want to use software SPI, this can also be done. However, it will require you to update EPD_configuration.h, EPD_Driver.h and EPD_Driver.cpp to add the MOSI and SCK pins. Not only that, you would need to write a softwareSPI function to replace the SPI.transfer() functions. |
OH,I KNOW |
Are you using the same board as this one? If so, I believe you can use either HSPI or VSPI to test your EPD. You can start with GPIO23 and GPIO18 for the MOSI and CLK. If you're interested to know more about software SPI, check this out. Basically, software SPI is bitbanging. You are hard-coding the CLK and MOSI signals. |
The library relies on the Arduino SDK and uses the hardware SPI implemented by the Arduino-ESP32. The SPI library uses the SCK, MOSI, MISO signals defined at pins_arduino.h
Support for specific boards are beyond the scope of the library. Here some pointers for a specific board:
|
Sorry, I found that the problem is that I pulled the BS pin high, but can you release the old version of the program? |
I want to use esp32 to control
But I didn't find the position of the communication pin that defines the SPI
Can you point out the location
Thanks again
中国人不骗中国人,大哥给说下呗
The text was updated successfully, but these errors were encountered: