
Is this the "Master Control Program"? I asked a similar question on the blog post. Don't think it was answered.ShiftPlusOne wrote:Something like this has been developed for the astro pi mission. I don't know if it's going to be public, but I'll ask.


That was the first thing I did as well (/usr/src/sense-hat/examples)... maybe the software would be in a much better state if I didn't then get distracted playing it.scotty101 wrote:got distracted writing a version of snake

Have you seen this bunch of posts?scotty101 wrote:I still need to spend some time thinking about how to use one of the other keypress event libraries rather than pygame.
Yep, that was what started my thought process. I haven't decided which of the methods is most suitable for standalone Pi's where using PyGame is overkill. I think evdev will be the easiest apart from the fact that you have to map it to a specific input device.ShiftPlusOne wrote:Have you seen this bunch of posts?scotty101 wrote:I still need to spend some time thinking about how to use one of the other keypress event libraries rather than pygame.
viewtopic.php?f=104&t=119025#p807878

The parts I wrote (in C) access the input device directly, MCP uses python-evdev, and I think some student code uses pygame.scotty101 wrote:Any idea what the real AstroPi uses?
Not quite, you can read from all the devices:scotty101 wrote:the fact that you have to map it to a specific input device
Ahhh. I guess I could use glob to get all of the input devices and listen to all of them for specific key presses. I'd like to replicate the pygame functionality. I'll give it a bash tomorrow.ShiftPlusOne wrote:Not quite, you can read from all the devices:scotty101 wrote:the fact that you have to map it to a specific input device
https://python-evdev.readthedocs.org/en ... le-devices
I was thinking of something like the code used for the Pimoroni Display-O-Tron 3000 https://github.com/pimoroni/dot3kscotty101 wrote:I had been going to develop one but got distracted writing a version of snake and pong!
Original Poster, if you have some more details about what you are looking for, I'll see if I have some time when I have my SenseHat handy.
The Display-O-Tron has the advantage of multiple lines all shown simultaneously rather than a single line of scrolling text. An SenseHat menu would have to be a lot simpler.subjektivdk wrote:I was thinking of something like the code used for the Pimoroni Display-O-Tron 3000 https://github.com/pimoroni/dot3kscotty101 wrote: Original Poster, if you have some more details about what you are looking for, I'll see if I have some time when I have my SenseHat handy.
Simple graphics for every menu item. Use joystick to move up/down, joystick press or right to select, left to leave menu item. Then the uo/down should just cycle the menu.scotty101 wrote:I had been going to develop one but got distracted writing a version of snake and pong!
Original Poster, if you have some more details about what you are looking for, I'll see if I have some time when I have my SenseHat handy.