Luckily there's a workaround. But it does not disable the backlight of the screen. The first thing you will notice is that the display blanks automatically after 10 minutes. Now that we're done with the actual setup it's time to tune the whole thing for permanent use. The libavg event system is fully multitouch-enabled and makes building even complex multitouch applications easy. It also includes it's own tracker for optical FTIR and DI devices. It supports Win7 Touch, Linux Drivers, TUIO and even the Apple Multitouch Trackpad - in short, all major driver models. There are no working binaries for a current Rasbian and building it seems to be a major project. libavg is great for multitouch development. Too bad I hadn't checked for arm compatibility. My friend Anika pointed me to the new flexbox CSS3 features which helped me building my menu in no time.īut how to make it an desktop app that can execute local scripts? My plan was to use the awesome node-webkit which combines the Chrome renderer with nodejs. My next idea was to use technology I'm familar with. The libavg included in Raspbian was too old to even run my app and manually installing as described in their wiki just resulted in a black screen. The documentation is very sparse, Stackoverflow has just about two handful of answers related to it, but I succeeded in building a simple menu.īut to my disappointment, I couldn't get it working on the Raspberry. With Kivy, interface designers can code once and deploy to multiple platforms, while the built-in support for OpenGL ES 2 allows them to use modern and powerful graphics and design. libavg is a graphics library we had used in some projects at work so I knew it would be able to handle my tasks, but I had never worked with it myself before. A NUI is a kind of interface where the user naturally learns about the various interactions provided by a user interface while they’re usually kept invisible. My first try was based on Python and libavg. Unfortunately I couldn't find any existing tool to display a full screen menu optimized for a tiny screen with low resolution. A simple GUI to select a user and a keyword. The goal is to be able to just press a few buttons on that screen to automatically scan some paper, assign a keyword to it and upload it to the right user's account. Self._tapRecognizer = gesture.TapRecognizer(self.As you may remember from the first part, the software is running on a Raspberry Pi with an attached Touch Screen. Self._activeAreaNode = avg.RectNode(size=size, opacity=0, parent=self) Size = avg.Point2D(max(minSize, size.x), max(minSize, size.y)) "Button: Can't specify both fatFingerEnlarge and activeAreaNode")) Super(_ButtonBase, self)._init_(**kwargs)ĭef _setActiveArea(self, upNode, activeAreaNode, fatFingerEnlarge): Node.subscribe(vbutton.RELEASED, onKeyUp)Įxamples of custom publishers from here: class _ButtonBase(avg.DivNode): is checked on the user interface, Hello World prints the message. Node.subscribe(vbutton.PRESSED, onKeyDown) Database oriented wxPython repackage) PyGUI Libavg (Media Oriented Applications). Node = avg.WordsNode(pos=(10,10), font="arial", text="Hello World", parent=rootNode) #serialid isn't implemented anywhere but this is what ideally I would like to have happenĬanvas = player.createMainCanvas(size=(640,480)) #!/usr/bin/env pythonįrom libavg import avg, statemachine, playerĭef _init_(self, parent=None, **kwargs): Here is some nonfunctional code that I have that I think has the basics of what needs to be done. I want the custom publisher to take the 10 serial outputs and pass a rialid parameter to various subscribers similarly to what event.keystring does. An analogy of what I am trying to do would be to use libavg's keyboard handling to process different keyboard inputs. All I need is a way to create 10 different triggers given different serial inputs. My understanding is that I need to create my own Publisher that I will call when I process serial commands. I'm trying to find a way to use libavg's event handlers from an embedded serial output.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |