Search found 6 matches

by Sonam Phuntsho
Wed Sep 11, 2019 6:44 am
Forum: General Discussion and Questions
Topic: OSError: [Errno 2] ENOENT
Replies: 6
Views: 204

Re: OSError: [Errno 2] ENOENT

Thank you for the information @ roberthh. :)
by Sonam Phuntsho
Wed Sep 11, 2019 2:24 am
Forum: General Discussion and Questions
Topic: OSError: [Errno 2] ENOENT
Replies: 6
Views: 204

Re: OSError: [Errno 2] ENOENT

Thank you @ roberthh. (Apology for the long gap and again bringing this topic) I could upload the main.py and boot.py with ascii.txt file to the lopy4 flash and the program could run and i can see the print executed. My code below: i mport binascii import struct ascii = 'SIGN.txt' with open(ascii, '...
by Sonam Phuntsho
Thu Aug 29, 2019 3:51 am
Forum: General Discussion and Questions
Topic: OSError: [Errno 2] ENOENT
Replies: 6
Views: 204

Re: OSError: [Errno 2] ENOENT

The file ascii.txt is only 1Kb and it was located in the same folder. In fact I did not upload the main.py code as well as the ascii.txt in the flash. Is it because of that?

Thank you
by Sonam Phuntsho
Wed Aug 28, 2019 2:41 pm
Forum: General Discussion and Questions
Topic: OSError: [Errno 2] ENOENT
Replies: 6
Views: 204

OSError: [Errno 2] ENOENT

Hi, I am intending to convert the ascii.txt file into the hexadecimal and I used the following code (micropython) in Lopy4 which has ESP32; import binascii ascii = 'ascii.txt' with open(ascii, 'rb') as f: content = f.read() data = binascii.hexlify(content) print(data) But I am getting the following ...
by Sonam Phuntsho
Wed Aug 28, 2019 8:17 am
Forum: Programs, Libraries and Tools
Topic: Pillow for Micropython
Replies: 2
Views: 168

Re: Pillow for Micropython

@Roberthh.

Thank you for the reply. Actually now I intend to convert the ascii.text file to the hexadecimal in the micropython. Referred some of the codes but seems it did not work. Any guidance?

Thank you
by Sonam Phuntsho
Tue Aug 27, 2019 2:38 am
Forum: Programs, Libraries and Tools
Topic: Pillow for Micropython
Replies: 2
Views: 168

Pillow for Micropython

Hi All, I am using a Lopy4 which has ESP32 chip. I intend to convernt the image jpeg file to the ASCII and I believe we have to use the Pillow module like we use Pillow in desktop python. Does the micropython support Pillow? Please help me and advise me the use of pillow module for the micropython. ...