[visionegg] Re: flow control problems
- From: Mikko Vähäsöyrinki <mikko@xxxxxxxxxxx>
- To: visionegg@xxxxxxxxxxxxx
- Date: Sat, 12 Nov 2005 08:48:46 -0800
Hi Bertrand,
I managed to write the program i was describing without fully
understanding the class issue. Thanks, for the explanation.
Cheers,
Mikko
When calling "LPTTrigPin14()", you create an instance of the class
LPTTrigPin14. This is your first step. You need an instance of a
class to be able to call its methods (or functions). For the sake
of completeness, this is not true for static class methods, but
this is not applicable in your case.
So what you need to do is something like this:
lptt_instance = LPTTrigPin14()
x = lptt_instance.during_go_eval()
print x
If you call "print lptt_instance", like you mentioned, the textual
representation of the class instance is printed. This means the
memory address of the class and its type.
Unfortunately, I haven't studied enough the workings of the various
controllers to help you further.
Good day,
Bertrand
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
- References:
- [visionegg] flow control problems
- From: Mikko Vähäsöyrinki
- [visionegg] Re: flow control problems
- From: Bertrand Guay-Paquet
Other related posts:
- » [visionegg] flow control problems
- » [visionegg] Re: flow control problems
- » [visionegg] Re: flow control problems
So what you need to do is something like this: lptt_instance = LPTTrigPin14() x = lptt_instance.during_go_eval() print x
If you call "print lptt_instance", like you mentioned, the textual representation of the class instance is printed. This means the memory address of the class and its type.
Unfortunately, I haven't studied enough the workings of the various controllers to help you further.
Good day, Bertrand
====================================== The Vision Egg mailing list Archives: http://www.freelists.org/archives/visionegg Website: http://www.visionegg.org/mailinglist.html
====================================== The Vision Egg mailing list Archives: http://www.freelists.org/archives/visionegg Website: http://www.visionegg.org/mailinglist.html
- [visionegg] flow control problems
- From: Mikko Vähäsöyrinki
- [visionegg] Re: flow control problems
- From: Bertrand Guay-Paquet