Thanks deshipu but i performed and while true and does not read the third one.deshipu wrote:readline reads a single line. To read three lines, you have to call it three times.
Search found 5 matches
- 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
- 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...
- 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)) #=...
- Wed Nov 23, 2016 10:59 pm
- Forum: MicroPython pyboard
- Topic: Use C language and Python together
- Replies: 2
- Views: 3522
Re: Use C language and Python together
[quote="dhylands"]You may want to check the following:
http://forum.micropython.org/viewtopic.php?f=3&t=2370
http://forum.micropython.org/viewtopic.php?f=2&t=1411
http://forum.micropython.org/viewtopic.php?f=3&t=153[/quote]
Thank you so much, friend!
http://forum.micropython.org/viewtopic.php?f=3&t=2370
http://forum.micropython.org/viewtopic.php?f=2&t=1411
http://forum.micropython.org/viewtopic.php?f=3&t=153[/quote]
Thank you so much, friend!
- 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,
is the re any reference, how can i do it with a sample simple code?.
Thank you,