Search found 5 matches

by diego.cuba
Wed Aug 02, 2017 10:31 pm
Forum: General Discussion and Questions
Topic: Read multiple lines using UART protocol / uart.readline() or uart.read() not perform it
Replies: 3
Views: 3155

Re: Read multiple lines using UART protocol / uart.readline() or uart.read() not perform it

deshipu wrote:readline reads a single line. To read three lines, you have to call it three times.
Thanks deshipu but i performed and while true and does not read the third one.
by diego.cuba
Wed Aug 02, 2017 5:51 pm
Forum: General Discussion and Questions
Topic: Read multiple lines using UART protocol / uart.readline() or uart.read() not perform it
Replies: 3
Views: 3155

Read multiple lines using UART protocol / uart.readline() or uart.read() not perform it

Dear Micropython Forum, I would like to read 2 or more lines that are result of response from a GSM board which is receiving AT commands by micropython board, and for example i need the third line of its response and i'm using uart.read() , also specifying the number of bytes, does not work properly...
by diego.cuba
Fri Nov 25, 2016 3:09 pm
Forum: MicroPython pyboard
Topic: Set the correct Date at creating a nwe File Document
Replies: 2
Views: 4453

Set the correct Date at creating a nwe File Document

Hi Group, I would like to know how is possible set the correct date when i create a new file , in order to store values that i'm sensing with a sensor. #======================================== archivo=open('/sd/archivo.txt','w') archivo.write('{},{},{},{},{},{},{}\n'.format(t,xm,ym,zm,xg,yg,zg)) #=...
by diego.cuba
Fri Nov 18, 2016 10:10 pm
Forum: MicroPython pyboard
Topic: Use C language and Python together
Replies: 2
Views: 3522

Use C language and Python together

I tried to use both languages, but no succesful yet,
is the re any reference, how can i do it with a sample simple code?.


Thank you,