Ask coding questions

← Back to all posts
module error IBSerial
sura2016

hello ,
if you can help me in python with the micro controller (MAKER) when i write my code :
import time
from IBSerial import *
import IBSerial as IBMaker
IBMaker.Open_Port("COM1","115200")
IBMaker.PinMAP("MAKER")
IBMaker.begin("V0.00")

while(1):
IBMaker.Leds_Char('A',1000)

IBMaker.Close_Port()

its give the next message :

File "main.py", line 2
from IBSerial import *
^
IndentationError: unexpected indent

Voters
MusabAt
Coder100
sura2016
Comments
hotnewtop
ShoryaMalani

The problem it seems is in your actual code there is a space before from IBSerial import *