2007-08-21 03:44:36 UTC
Hello. I love the idea of Pyastra! I would like a little help on how I use Python to program the PIC microcontrollers.
I'm building a robot that uses some 16 PIC series, and python will be the main programming language. I've seen some
examples in Basic on how to set variables to corresponding pins, for instance:
M1 Var PORTB.0
M2 Var PORTB.1
I understand that this is setting the variables of Motors 1 and 2 to pins 0 and 1 in Port B. I'm not sure how to write
something like this in Python. Is it like this?
M1 = PORTB.0
Which for some reason doesn't look right. I would greatly appreciate any help. Thank you.