Thank You for your continued support and contributions!
Take an OF image from wherever, name it c200pt.bin, and load it on sansa. Go to Settings>Diagostic and follow that.
Well when you read the GPIO, you do read the state of the pin, not a single button press edge, so yes, this is normal. Every read with a button pressed will do the same. And since the code runs awfully fast compared to the speed of a finger, you'll probably always get multiple button pressed state in your loops... You can do something like "if button is pressed, loop until it is unpressed again before continuing" if that's really what you want... But I'd also put a limit to that waiting in case something goes wrong...Oh and the third line is to set the pin as an input, not to reset its state
Anyone have a comment re the only 2Mbytes of ram on the c200 v2 target? Is thgat a problem being so low (for audio - I could care less about games or video).
Either the pin remains at the button pressed state until "reset" (whatever that means) which seems impossible, or I have a bug in my code - but im damned if I can see it.Anyone have a comment re the only 2Mbytes of ram on the c200 v2 target? Is thgat a problem being so low (for audio - I could care less about games or video).
Quote from: RockRabbit on December 20, 2008, 03:35:30 PMEither the pin remains at the button pressed state until "reset" (whatever that means) which seems impossible, or I have a bug in my code - but im damned if I can see it.Anyone have a comment re the only 2Mbytes of ram on the c200 v2 target? Is thgat a problem being so low (for audio - I could care less about games or video).Well, apparently you have to reset the pins manually. Switch the pin to output (GPIO_DIR = 1<<X) and write the opposite value (GPIO_PIN(X) = [0 or (1<<X]), then switch to intput again (GPIO_DIR = 0).BTW: I would really welcome if you try my patch and use a bootloader made by the build system. This is way safer, as dual boot remains if you have a bugged bootloader.
By the way - do you have a comment to make re the lack of dram - only 2Mbytes? Or don't you see that as a major problem?
c3 - down button , c4 - select button, c5 - up button.
Page created in 0.135 seconds with 22 queries.