Drive for inexpensive 128x64 OLED displays
Raik (463) 2061 posts |
This and the other I have stolen from the German Pandora Forum supportet via gp2x.de.
I know now. I have read the aviable technical docs last hours… to many English for my brain but with the additional datasheeds it is clear… no chance with your module Until I have the knowledge and ability to program a driver, I’m “Six feet under” |
Rick Murray (539) 13840 posts |
Talking mostly out of my backside here :-) I suspect talking to the display will be the easier part. After all, doesn’t the BCM chip support handling SPI at a reasonably high level? |
Raik (463) 2061 posts |
Primary Display would be fine. It works with Wheezy but the configuration is a little bit fiddly. |
Rick Murray (539) 13840 posts |
Raik (and others): This is an idea of what I had in mind… http://www.youtube.com/watch?v=keHfvpEq6UU The pauses are when the playback fails. My (amazingly hacky) code detects this, kills off the modules, reloads them, and resumes playback from the last saved song position. ;-) It polls status every 20cs. There is no point doing it sooner, it seems to take 15-17cs for the module to initialise. The problem is exacerbated by 320kbps files (128kbps play with fewer or no hiccups). Unfortunately I left 128kbps behind when portable MP3 players started measuring their capacities in G instead of M. Didn’t somebody (Kevin Bracey?) say a long long time ago that all this freely disabling interrupts here there and everywhere was one day going to bite us on the ass? Well I can see teeth and they ain’t behind a smile…….. [dum-dum dum dum, dum-dum dum dum] |
David Feugey (2125) 2709 posts |
:) |
Raik (463) 2061 posts |
Good work, but the music… not enough electric guitar, drums not enough, not enough Pogo… Sorry, but if you like it, it is ok (please do not fight) |
Rick Murray (539) 13840 posts |
When I’m debugging and it is brick-wall time, that’s when I switch the playlist to a Within Temptation selection. Enough guitars and drums now? :-D [those penguins…hahahahahaha!!!!] |
Raik (463) 2061 posts |
Off-Topic: |
Jess Hampshire (158) 865 posts |
While not wanting to derail Rammstein (Heat from the flame throwers on your face pulsing in time to the beat :) ) I think I should point out that RISC OS pico seems an ideal match to this display system. |
Rick Murray (539) 13840 posts |
As I said elsewhere, if ROOL want it, they know my email address… though I think they are currently busy with other things :-) I’m currently writing a StrongHelp manual to accompany the module. |
Raik (463) 2061 posts |
I know… |
Rick Murray (539) 13840 posts |
Not released yet, but the module now extracts pixel data itself provided there is no left/right bit offset. Saves lots of SpriteOp calls to read pixels. Ought to run faster, but there’s a speed you reach when you can’t really tell the difference. Still, it makes me feel better knowing that it does it that way. I threw together a really hacky bit of code to try to pull the title of the current track from DigitalCD. It’s a rather horrible interface, it’d be much nicer if DigitalCD could issue a wimp message upon something new playing. That’d save a lot of farting around trying to work out what is or is not playing. Picture dropped on imgur, the PC isn’t running… PS: Station is AnimeNFO, 192kbps streaming MP3. |
Andrew Conroy (370) 740 posts |
Agreed! I played around with the DCDUtils SWIs a while ago for my 20×4 LCD panel. I got it scrolling the name of the current track but only by keep asking what the track was and noting when it changed. |
Rick Murray (539) 13840 posts |
Public holiday here in France. Crappy weather. Was bored. So I had some time to kill between “then” and the second Eurovision semi-final. So… OLED, 128×64. About right for retro-pong. :-) http://www.heyrick.co.uk/software/oled/ Wanna see it in action? http://www.youtube.com/watch?v=cts9HlCLzR0 Giggle at how the scrolly-effect makes the picture hiccup as the camera’s auto-stabiliser tries to make sense of what is going on. ;-) |
Steve Pampling (1551) 8170 posts |
Impending doom alert. Damn, Saturday too. |
Rick Murray (539) 13840 posts |
Well, the bad news for you may be that the bloke1 with the beard2 and the dress qualified so will show up on Saturday.
If only the World Cup was two two hours programmes and a final three and a bit hour programme… 1 Though everybody refers to this person as ‘she’2. 2 I get that some guys dress up as girls, either for fun or something more serious. I even get that some guys want to be girls, or think they always should have been… But a guy in a dress with a full beard? No. That ain’t right. There’s diddy-squat feminine about a beard. |
Steve Pampling (1551) 8170 posts |
T20 matches don’t last that long. Oh, the one where they kick a bigger ball around. Nah, most of that lot should be wearing dresses. |
Chris Evans (457) 1614 posts |
I think most of them do :-) |
nemo (145) 2546 posts |
Have you asked the author? I found him very helpful when I wanted to control DCD from the MMK Keyboard – that’s where that interface came from. |
Steve Pampling (1551) 8170 posts |
Just seen the news this morning. Heard some snippets: UK – average, some half decent, winner – also ran. Does anyone vote for the song or is that an old fashioned idea? 1 Kenny Everett reference |
Rick Murray (539) 13840 posts |
It wasn’t a bad song. Might even have won without the….angle…. I think the UK did better than normal. 17th or something, with a song that was not going to be a winner but was better than many recent entries, I feel kind of sorry for the Russian twins. Let’s just say there was a LOT of booing. A LOT. I understand why, but it isn’t exactly their fault that their country’s leader is hell-bent on dragging their country back to the Soviet era… |
Michael Emerton (483) 136 posts |
Hi Nemo, How did you drive the MMK? |
nemo (145) 2546 posts |
A heap of modules! A custom PS2 driver to map the additional keys (and rotary encoder) to logical keys. A custom International Module to map extra keys (and dead accents) to keypresses. A custom module to move reset to the MMK’s power/sleep button instead of break (while leaving the wimp watchdog on Break). A custom module to map hundreds of ALT key combinations to new keypresses. And finally a number of modules to implement the ‘media control’ keys. Depending on the module chosen, the MMK’s media keys could directly drive a CD-ROM (if it supported audio playback), CD-ROM emulation (for drives that didn’t support track jumps for audio playback), or a generic module that controlled system volume and DigitalCD. This led to Andre adding wimp message &5327E to DigitalCD, so that the keyboard support could find the window handle of its primary controller, so it could send keypresses to it specifically. There was even a program that showed system volume as an overlay on-screen that popped up whenever it changed, in software or by turning the MMK’s ‘volume knob’. Incidentally, that knob responded to modifiers, so was actually eight logical knobs, IYSWIM. |
Michael Emerton (483) 136 posts |
Ouch, I think that needs looking at as surely it should be in with the standard keys… How long have MMKs been about? Or are your modules available some where? :@) |
Rick Murray (539) 13840 posts |
Help please! My OLED module works by redirecting output to a sprite and then sending a bitmap of that sprite to the OLED. The problem is, if the user is holding down Ctrl and Shift (as one might if they are about to press C to get Zap to compile), everything freezes. Thanks. |