Donate Share

Pyastra

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Python and PIC

You are viewing a single message from this topic. View all messages.

  1. 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.
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.