Setup error for UART

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
nitin
 
Posts: 2
Joined: Sun Mar 01, 2015 3:08 am

Setup error for UART

Post by nitin »

While setting up the UART for beaglebone black we've used these commands :
import Adafruit_BBIO UART as UART
import.setup("UART1")


we are getting a syntax error after this command as
-sh: syntax error near unexpected token `"UART1"'

kindly help us with this error

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Setup error for UART

Post by adafruit_support_mike »

You need UART.setup() rather than import.setup():

https://learn.adafruit.com/setting-up-i ... black/uart

User avatar
nitin
 
Posts: 2
Joined: Sun Mar 01, 2015 3:08 am

Re: Setup error for UART

Post by nitin »

we got it fixed!!
Thank you very much for quick response sir

Locked
Please be positive and constructive with your questions and comments.

Return to “Beagle Bone & Adafruit Beagle Bone products”