Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #102238 > unrolled thread

Re: Python 3.5.1

Started byJoel Goldstick <joel.goldstick@gmail.com>
First post2016-01-29 11:24 -0500
Last post2016-01-29 11:24 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Python 3.5.1 Joel Goldstick <joel.goldstick@gmail.com> - 2016-01-29 11:24 -0500

#102238 — Re: Python 3.5.1

FromJoel Goldstick <joel.goldstick@gmail.com>
Date2016-01-29 11:24 -0500
SubjectRe: Python 3.5.1
Message-ID<mailman.93.1454084674.2338.python-list@python.org>
On Fri, Jan 29, 2016 at 10:35 AM, Joel Cotto <joelcotto23@gmail.com> wrote:

> Hi,
>
> I'm using the new release of python ver 3.5.1 but i got problem using its
> code to communicate w/ serial port. I'm receiving port error. Hope you can
> guide me if there are change made in the command. Thanks and Good Day
>
> import serial ser = 0 def init_serial(): COMNUM = 1 global ser ser =
> serial.Serial() ser.baudrate = 9600 ser.port = COMNUM - 1 ser.timeout = 10
> ser.isOpen() if ser.isOpen(): print ('Open: ' + ser.portstr) init_serial()
> temp = input('Enter SCL command, hit enter:\r\n') ser.write(temp) while 1:
> bytes = ser.readline() print ('You sent: ' + bytes)
> --
> https://mail.python.org/mailman/listinfo/python-list
>

Welcome.  Please repost using plain text so that your indentation is
correct.  Your code is unreadable as is

-- 
Joel Goldstick
http://joelgoldstick.com/stats/birthdays

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web