-
Notifications
You must be signed in to change notification settings - Fork 132
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
amslide won't work on 2.7 #32
Comments
you will need to check that the CS for SD and CS for EPD are on different pins. If you are not using the SPI FLASH on the eval board the connect this th 3.3V to siaple this flash chip and free up one I/O. |
Hi, me and my colleagues have already checked and assigned different pins for the CS of the SD and EPD. Just to clarify, do you mean that the SPI Flash pin will be connected to 3.3V. the amslide code was given that the flash is instantiated on pin 8. what would happen to the free I/o? would that be the one used for the SD CS? i do appreciate your response. |
I was thinking that the FLASH CS could be used as SD CS if you were short of I/O pins. Tying FLASH CS high just disables it (assuming it is not being used) to free up the I/O (also remove any flash setup from the amslide.ino) Did you check that set_spi_for_sdcard is correct for you board? |
Which 2.7 panel version/COG version do you have? |
Hi, what i have here is a COG 2.7 panel. im using an arduino uno and a SD shield from egizmo. "Did you check that set_spi_for_sdcard is correct for you board?"--about this, i haven't check this though. how would i know if this the right for my application? sorry, i really don't have much knowledge about this stuff. thanks for your patience.. |
The SD card CS is part of the FAT FS configuration as in:
|
|
I have just checked the amslide with the original aLaMode board to make sure that it does still work correctly. I did add some #if so I could use the V231_G2 2.7" panel that I have. I is currently working, reading images from a 4GB uSD Card. |
Hi, |
I also tried uploading the amslide you recently updated. It wouldn't work also. I believe the connection here is the problem now. Its either the arduino or the sd shield is not working well.. or maybe my connection. |
May I ask something, the documentation of the amslide says that it was done using the alamode board but it also states there that it should work on arduinos that have an sd or plugin shield. for my sd shield the default is pin 4. in the coding, i noticed that the pin discharge is also using this pin. does that mean i can use the pin 4 for the CS for the sd? also, in the code, it states there that the epd flash cs is pin 9 and epd cs is pin 8. if i understood it right, im all good if i use pin 10 for the sd cs. im really having a hard time here. i have tried removing the solder of the cs in the sd shield and conected it directly to the pin 4. any help would be deeply appreciated. |
if you have to use pin 4 as you CS then change the definition in the amdemo.ino these are the defaults I set:
you could swap with 10 and make 10 the discharge, thus freeing pin 4 for you SD CS |
hi, i have tried using a different sd shield, an audio shield exactly.it worked fine now. but id like to try this configurations you sent. maybe the sd shield wouldn't be wasted after all. thanks |
hi, i know this is out of context. but do you know how to make custom images with the ".27" format?. now im trying to make multiple images to run in the amslide. also, could you explain what the text in the index.txt mean? it says there that |
hi, on the creating the image. i was able to make 10 new images that i customize to be displayed on the board. the problem now is that i dont know how it will be numbered in the index.txt file. it there a necessary sequence for this? or does the numbers really matter? its really weird though. i tried to make random numbering for each file. at the last image. it wont display only the image before that. please help me in anyway. thanks |
The file format is:
The file is read and displayed, there is a for loop to execute the delay, the next index line is read and at the end of the index it is reopened and the images are displayed again. The format of the image file exactly matches the display byte count. I did not try to do any scaling or have any header, it is just raw binary bytes that are put straigh onto the display. If you look at the sample XBM image files (e.g. I made the images originally using GIMP; the process was rotate/resize/crop image to best fit the display size, convert to 2 colour black/white export as XBM. |
Hi, thank you very much for the help. there is some things i recognized in the for loop,it is an infinite loop and that the condition in the if is that, it opens the index.txt file den closes it. is there a way we could just reset to the starting line if there is no more files to display. i believe the syntax ".read()" is a line by line reading of the file. also, this is the time of the delay for the next image? If so, would any number work? like if i will use 5 for my 10 image (maybe 100+ soon). im very sorry if i have a lot of questions. i really just want to make this work. thanks and great work there. |
have a look to see if there is a "seek" function for the file, if there is then seek to position zero and the next read would fetch the first line again. You could always try another method: like name all the files as numbers |
A quick look on the code. it has seek function. but im not quite sure what you mean by seek function for the file. but for now, im still stuck with the images not looping back and forth. and only up to the second to the last image will be display. anyhow, im quite preoccupied today, but i'll try this later. Thanks. |
try: |
I tried to have some test points in the code. It goes to an infinite loop when it enters: |
hi, i'm actually doing a project that is the same as how the amslide would work. im using an epd extension board to display multiple images. i was hoping to load them from an sd card shield. im using arduino uno for my interface between the sd and the display board. i have tried many configurations already, but to no avail im having issues with SPI. i have tried using the recently posted code in this site. independently, the uploading the demo code 270 in version 230 worked fine. also for the sd card. but when they are both connected. i cant seem to solve the problem.. something on pin 12? if i remove it, the display would work but SD won't. the setup is actually mounted on top of each other.
any help would be appreciated.
thanks,
kevin
The text was updated successfully, but these errors were encountered: