[Icon-tech] Developer Question

Marc Mulcahy marc at levelstar.com
Wed Nov 4 14:54:35 MST 2009


Write to /proc/everest/motor

Writing a 1 to /proc/everest/motor will turn it on, writing a 0 will turn it
off.

Additionally, if you wan to turn it on for a specific period, write "1
<msecs>" to /proc/everest/motor.  So, for example, if you want it to vibe
for half a second, do:

Echo "1 500" > /proc/everest/motor


 

> -----Original Message-----
> From: icon-tech-bounces at mulcahy.ws 
> [mailto:icon-tech-bounces at mulcahy.ws] On Behalf Of Nick Gawronski
> Sent: Wednesday, November 04, 2009 2:49 PM
> To: icon-tech at mulcahy.ws
> Subject: Re: [Icon-tech] Developer Question
> 
> 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
> > 
> 
> _______________________________________________
> Icon-tech mailing list
> Icon-tech at mulcahy.ws
> http://www.mulcahy.ws/mailman/listinfo/icon-tech
> 
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 9.0.698 / Virus Database: 270.14.48/2479 - Release 
> Date: 11/04/09 00:37:00
> 



More information about the Icon-tech mailing list