Search found 28 matches

by boochow
Tue Aug 07, 2018 3:49 pm
Forum: General Discussion and Questions
Topic: Pyboard + SSD1306
Replies: 26
Views: 3923

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: 22
Views: 6601

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: 22
Views: 6601

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: 22
Views: 6601

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: 22
Views: 6601

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: 22
Views: 6601

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: 22
Views: 6601

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: 22
Views: 6601

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...