Search found 211 matches

by liudr
Sun Apr 08, 2018 2:34 am
Forum: ESP32 boards
Topic: Just got WROVER dev board but unusable
Replies: 14
Views: 8395

Re: Just got WROVER dev board but unusable

I use Arduino IDE for smaller MCUs such as ATmega328P with 2K SRAM. Works nicely and is seamless to move to another ATmega chip with more pins and memory but never enough memory to do serious internet stuff. I used to write all the code to just send http requests to servers and process responses wit...
by liudr
Sun Apr 08, 2018 1:52 am
Forum: General Discussion and Questions
Topic: Need general guidance on how to run scripts
Replies: 7
Views: 4575

Need general guidance on how to run scripts

I know the following about MicroPython: boot.py runs at boot main.py runs next System enters serial REPL after main.py exits. All variables defined in main.py remains in scope in serial REPL, which is really nice. Now what I envision is a custom script, say Logger.py, that runs after main.py and sha...
by liudr
Sun Apr 08, 2018 1:42 am
Forum: ESP32 boards
Topic: Anyone recommending a good IDE?
Replies: 20
Views: 25804

Re: Anyone recommending a good IDE?

Loboris port is pretty easy to do this as it is already built in. For repl of over telnet here is the wiki https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo/wiki/telnetserver For file transfer/edit over FTP https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo/wiki/ftpserver I put some code...
by liudr
Sun Apr 08, 2018 1:29 am
Forum: General Discussion and Questions
Topic: How to define ctrl-C handler in MicroPython?
Replies: 5
Views: 6834

How to define ctrl-C handler in MicroPython?

For cpython, this is what I have that handles ctrl-C: def SIGINT_handler(signal, frame): ser.close() data_file.close() print('Quitting program!') sys.exit(0) signal.signal(signal.SIGINT, SIGINT_handler) MicroPython complains about the last line. Is there any way to do similar things in MicroPython b...
by liudr
Sun Apr 08, 2018 1:27 am
Forum: ESP32 boards
Topic: Just got WROVER dev board but unusable
Replies: 14
Views: 8395

Re: Just got WROVER dev board but unusable

This makes sense but I guess arduino core and micropython core don't share developers or common code on sd card. I imagine Arduino could just use 4Line mode since the mcu is not an 8-bit mcu such as atmega328p. Maybe my board only has SPI connections made. I can check connectivity later tonight to c...
by liudr
Sat Apr 07, 2018 7:28 pm
Forum: General Discussion and Questions
Topic: Trying to understand uos vs os
Replies: 12
Views: 7261

Re: Trying to understand uos vs os

OK, thanks. I think I am beginning to understand. For better portability and future-proof, I should use os, although it might cost a bit more memory. I am using ESP32 port with pSRAM firmware forked by lobo. It has enough memory for everything so I don't have to worry about running out of memory for...
by liudr
Sat Apr 07, 2018 4:06 pm
Forum: ESP32 boards
Topic: Just got WROVER dev board but unusable
Replies: 14
Views: 8395

Re: Just got WROVER dev board but unusable

Thanks. I can confirm that manually enabling the pull ups works on my TTGO board but only the SPI mode. The other two modes don't work. I think you got a duplicate pin 15 command. I will try further. Having sd card working without BOB is great!
by liudr
Sat Apr 07, 2018 5:15 am
Forum: General Discussion and Questions
Topic: Trying to understand uos vs os
Replies: 12
Views: 7261

Trying to understand uos vs os

I don't quite understand the distinction between umodule and module. Should I use uos or os instead? Can someone please explain the pros and cons of using either? If uos is only a subset of os, then how come they have the same functions? >>> os. __name__ uname urandom ilistdir listdir mkdir rmdir ch...
by liudr
Sat Apr 07, 2018 5:12 am
Forum: ESP32 boards
Topic: Just got WROVER dev board but unusable
Replies: 14
Views: 8395

Re: Just got WROVER dev board but unusable

Yeah, probably started from 8080 when 16-bit memory became insufficient. Apple][/6502 had the paging things so you could change map different memories to the same memory address by changing the page number. Guess staying in 16-bit was a bad idea. The new 386 and above simply revamped the x86 memory ...
by liudr
Sat Apr 07, 2018 5:05 am
Forum: ESP32 boards
Topic: Just got WROVER dev board but unusable
Replies: 14
Views: 8395

Re: Just got WROVER dev board but unusable

listed folders and saved some "Hello world" to a file etc. Did this save to the SD card or to the flash ?? My board won't initialize the SD slot built in to the board but will initialize/read/write to an external 1 connected to the header. It was the SD card. I just checked and there were about 2 d...