Search found 30 matches

by boochow
Wed Aug 22, 2018 2:03 pm
Forum: Drivers for External Components
Topic: Displays with driver subclassed from framebuf
Replies: 30
Views: 20395

Re: Seeking display with driver subclassed from framebuf

The framebuf class is able to work with multiple colours and the official SSD1306 driver is subclassed from framebuf. Are any colour displays available with drivers written in this way? I am using 16bit color framebuf class in my bare metal Raspberry Pi port . demo: https://youtu.be/aUXRWUTasrY?t=1...
by boochow
Sat Aug 11, 2018 7:26 am
Forum: General Discussion and Questions
Topic: Pyboard + SSD1306
Replies: 26
Views: 18017

Re: Pyboard + SSD1306

Hi Peter, thank you so much for your comment.
I'm sorry I was misunderstanding the mid-level API.
The second line of my code re-sends the slave address again, so it cannot produce the expected result.
I think a proper solution needs to wait for PR4020.
Yes, PR4020 looks good and simple enough.
by boochow
Tue Aug 07, 2018 3:49 pm
Forum: General Discussion and Questions
Topic: Pyboard + SSD1306
Replies: 26
Views: 18017

Re: Pyboard + SSD1306

Hi Peter, I think that rewriting write_data() method using mid-level I2C API makes this driver usable with hardware I2C. I did it with hardware I2C class of my bare metal Raspberry Pi port and it worked fine. def write_data(self, buf): self.i2c.writeto(self.addr, bytearray([0x40]), False) self.i2c.w...
by boochow
Tue Aug 07, 2018 3:32 pm
Forum: Other Boards
Topic: bare metal Raspberry Pi Zero port
Replies: 25
Views: 30145

Re: bare metal Raspberry Pi Zero port

@OutoftheBOTS_ Yes, there are some All-Winner chip based boards similar to Raspberry Pi. Maybe it is not so difficult to port MicroPython itself to these boards. However, as far as I know, their bare metal codes and technical information are very limited in contrary to Raspberry Pi. So, I'm afraid t...
by boochow
Thu Aug 02, 2018 10:05 pm
Forum: Other Boards
Topic: bare metal Raspberry Pi Zero port
Replies: 25
Views: 30145

Re: bare metal Raspberry Pi Zero port

Thanks @loboris @OutoftheBOTS_ now I understand what's going on in the loboris port. In my MicroPython ESP32 port the reset with CTRL_D is only simulated while in raw REPL to enable running rshell without the real reset. It just resets the raw REPL. look at the source . Did you make this modified ve...
by boochow
Wed Aug 01, 2018 11:31 pm
Forum: Other Boards
Topic: bare metal Raspberry Pi Zero port
Replies: 25
Views: 30145

Re: bare metal Raspberry Pi Zero port

The fact that x remains defined tell me that the repl isn't being soft-reset when doing the ls command. (this esp32 has the loboris port on it) If I press Control-D on the esp32 repl, and then try print(x) it fails to find x. Wow. Amazing. Actually, I did the completely same test with you on the la...
by boochow
Wed Aug 01, 2018 12:51 pm
Forum: Other Boards
Topic: bare metal Raspberry Pi Zero port
Replies: 25
Views: 30145

Re: bare metal Raspberry Pi Zero port

@dhylands Thank you for the information. I'm sorry my comment was not clear.
What I mean is that all rshell commands that execute a script on the pyboard (ls, cp, cat, etc.) do a soft-reboot at the beginning of execution.
MicroPython on ESP32 does a soft-reboot in the same manner.
by boochow
Tue Jul 31, 2018 3:11 pm
Forum: Other Boards
Topic: bare metal Raspberry Pi Zero port
Replies: 25
Views: 30145

Re: bare metal Raspberry Pi Zero port

>> With write access to the SD card and raw REPL there would be scope for doing development using rshell. I had included a code as a frozen module which creates RAM disk and mounts it on the root at boot time, so the root directory is writable already. I have not tested rshell yet, but hope it is n...
by boochow
Fri Jul 27, 2018 11:12 am
Forum: Other Boards
Topic: bare metal Raspberry Pi Zero port
Replies: 25
Views: 30145

Re: bare metal Raspberry Pi Zero port

Hi, thank you all for your comments. >> impressive. just out of curiosity, how kong does it take to boot to REPL? It takes around 4 seconds to boot. >> Since the RPi is WiFi enabled then a FTP server could be added to edit/transfer scripts from PC wireless. Unfortunately, I think it is very hard to ...
by boochow
Wed Jul 25, 2018 3:54 pm
Forum: Other Boards
Topic: bare metal Raspberry Pi Zero port
Replies: 25
Views: 30145

bare metal Raspberry Pi Zero port

Hi all, I have been working on Raspberry Pi port after @naums releases his PR (https://github.com/micropython/micropython/pull/3522) at the last year end. Yes, I know the previous discussions about Raspberry Pi port (https://forum.micropython.org/viewtopic.php?f=12&t=1192) but I do this to learn the...