[Icon-tech] Developer Question
Nick Gawronski
nick at nickgawronski.com
Wed Nov 4 14:48:57 MST 2009
Hi, Another question on developer is how do you control the vibration moter
so if you wantted to make it vibrate once quickly then wait for a second
then do two longer vibrations like when you reflash?
----- Original Message -----
From: "Michael McDonald" <mmcdonald at aph.org>
To: <tk.watson at verizon.net>; "Icon technicaldiscussions."
<icon-tech at mulcahy.ws>
Sent: Wednesday, November 04, 2009 11:08 AM
Subject: RE: [Icon-tech] Developer Question
> Probably the best way to accomplish this would to be to override the
> onKeyEvent function. You can see an example in the Hangman example. Let
> me know if this helps...
>
> Mike
>
> -----Original Message-----
> From: icon-tech-bounces at mulcahy.ws [mailto:icon-tech-bounces at mulcahy.ws]
> On Behalf Of Keith Watson
> Sent: Tuesday, November 03, 2009 8:28 AM
> To: 'Icon technical discussions.'
> Subject: RE: [Icon-tech] Developer Question
>
> Thanks Ken.
>
> Got another one for you. How do I change the behavior of setKeySetHandler?
> Right now I redefine it when I call a particular function, although it
> works
> I don't think that I am doing it elegantly.
> First I define it as
>
> self.setKeySetHandler('ok', self.functionOne)
>
> and because I don't want the ok key to act the same while I am in
> functionTwo, I set it like this going in.
>
> self.setKeySetHandler('ok', self.variable.activate)
>
> where variable is a Text widget. Then I redefine it back to the original
> on
> the way out of the function.
>
> Is there a better way that you know of?
>
> Keith
>
>
> -----Original Message-----
> From: icon-tech-bounces at mulcahy.ws [mailto:icon-tech-bounces at mulcahy.ws]
> On
> Behalf Of Ken Perry
> Sent: Tuesday, November 03, 2009 7:59 AM
> To: Icon technical discussions.
> Subject: RE: [Icon-tech] Developer Question
>
>
>
> I talked to Mike he says you can edit the prj file and put the media file
> in
> it. If you look at hangman it already does that. We will make it easier
> but this is a way you can do it for now.
>
> Ken
>
> -----Original Message-----
> From: icon-tech-bounces at mulcahy.ws [mailto:icon-tech-bounces at mulcahy.ws]
> On
> Behalf Of Ken Perry
> Sent: Tuesday, November 03, 2009 6:55 AM
> To: tk.watson at verizon.net; Icon technicaldiscussions.
> Subject: RE: [Icon-tech] Developer Question
>
>
>
> I think this is an unfinished feature of developer. There seems to be
> media
> and data portions of the project tree but I don't see commands added
> already
> to handle them. I will look into this.
>
> Thanks,
>
>
> Ken
>
> -----Original Message-----
> From: icon-tech-bounces at mulcahy.ws [mailto:icon-tech-bounces at mulcahy.ws]
> On
> Behalf Of Keith Watson
> Sent: Friday, October 30, 2009 7:37 PM
> To: 'Icon technical discussions.'
> Subject: [Icon-tech] Developer Question
>
> Guys,
>
> If I have an audio file that I want to add to my project, where do I put
> the
> file? And how do I reference it from within the source?
>
> Self.app.playSound("/usr/share/icon/myProject/beer.wav") works fine if I
> have the file there. But I am concerned that when I package the project it
> won't get included.
>
> I looked in /media/hdd/projects/myProject and did not see a media
> directory
> or any mechanism for adding one. Any suggestions?
>
> Thanks,
>
> Keith
>
>
> _______________________________________________
> Icon-tech mailing list
> Icon-tech at mulcahy.ws
> http://www.mulcahy.ws/mailman/listinfo/icon-tech
>
> _______________________________________________
> Icon-tech mailing list
> Icon-tech at mulcahy.ws
> http://www.mulcahy.ws/mailman/listinfo/icon-tech
>
> _______________________________________________
> Icon-tech mailing list
> Icon-tech at mulcahy.ws
> http://www.mulcahy.ws/mailman/listinfo/icon-tech
>
> _______________________________________________
> Icon-tech mailing list
> Icon-tech at mulcahy.ws
> http://www.mulcahy.ws/mailman/listinfo/icon-tech
>
> _______________________________________________
> Icon-tech mailing list
> Icon-tech at mulcahy.ws
> http://www.mulcahy.ws/mailman/listinfo/icon-tech
>
More information about the Icon-tech
mailing list