[youtube]m7FUieXfCRw[/youtube]
Roberthh's reverse function works!
Little update.
https://www.youtube.com/watch?v=m7FUieXfCRw
Search found 6 matches
- Wed Mar 02, 2016 6:47 pm
- Forum: MicroPython pyboard
- Topic: Revers strings in micropython (NotImplementedError with slices as [::-1])
- Replies: 19
- Views: 57365
- Wed Mar 02, 2016 12:54 pm
- Forum: MicroPython pyboard
- Topic: Revers strings in micropython (NotImplementedError with slices as [::-1])
- Replies: 19
- Views: 57365
Re: Revers strings in micropython (NotImplementedError with slices as [::-1])
pythoncoder,
I will try it soon! Thank you.
I have an other solution:
[youtube]thBrAjPJL4c[/youtube]
https://youtu.be/thBrAjPJL4c
I will try it soon! Thank you.
I have an other solution:
[youtube]thBrAjPJL4c[/youtube]
https://youtu.be/thBrAjPJL4c
- Tue Mar 01, 2016 10:57 pm
- Forum: MicroPython pyboard
- Topic: Revers strings in micropython (NotImplementedError with slices as [::-1])
- Replies: 19
- Views: 57365
Re: Revers strings in micropython (NotImplementedError with slices as [::-1])
pythoncoder It is working well in test function, but for close realization at image rendering I must understand ASM. :( I wish to understand. I am tryed to play with "end address", code gave me some acceleration, but bitmap renders too bad and colormap was not as in image. I will try to find some a...
- Tue Mar 01, 2016 8:12 am
- Forum: MicroPython pyboard
- Topic: Revers strings in micropython (NotImplementedError with slices as [::-1])
- Replies: 19
- Views: 57365
Re: Revers strings in micropython (NotImplementedError with slices as [::-1])
Thanks!
I will try it this evening.
I will try it this evening.
- Mon Feb 29, 2016 9:15 pm
- Forum: MicroPython pyboard
- Topic: Revers strings in micropython (NotImplementedError with slices as [::-1])
- Replies: 19
- Views: 57365
Re: Revers strings in micropython (NotImplementedError with slices as [::-1])
It is solved by my self. with open(path + filename, 'rb') as f: f.seek(138) while True: try: data = f.read(500) data = struct.unpack('<{0}H'.format(len(data)//2), data) data = struct.pack('>{0}H'.format(len(data)), *data) lcd_write_data(data) except OSError: break I am still working on it. [youtube]...
- Mon Feb 29, 2016 7:21 pm
- Forum: MicroPython pyboard
- Topic: Revers strings in micropython (NotImplementedError with slices as [::-1])
- Replies: 19
- Views: 57365
Revers strings in micropython (NotImplementedError with slices as [::-1])
Hello, How can I realize that feature without double step slicing? Have you in TODO list full slicing realization in future? I am working with ILI9341 (240x320) TFT LCD and for BMP image rendering I must have something fast as it. I am changing now step by step MSB to LSB by f.read(1) function - it ...