Search found 1388 matches

by pythoncoder
Mon Mar 27, 2017 6:27 am
Forum: General Discussion and Questions
Topic: C enviroment that can read python occasionally, is micropython what I want?
Replies: 12
Views: 218

Re: C enviroment that can read python occasionally, is micropython what I want?

Would it be feasible to strip MicroPython down further? MicroPython implements Python 3.4. Presumably it could be reduced if it were reduced to a subset along the lines of a much earlier version. Surely easier than specifying a language and writing a compiler from scratch. I cut my Python teeth (fan...
by pythoncoder
Mon Mar 27, 2017 6:02 am
Forum: ESP8266 boards
Topic: Saving power
Replies: 12
Views: 2165

Re: Saving power

To disable WiFi you need the following:

Code: Select all

import network
ap = network.WLAN(network.AP_IF)
ap.active(False)  # Disable access point
sta_if = network.WLAN(network.STA_IF)
sta_if.active(False)  # Disable station interface
by pythoncoder
Sun Mar 26, 2017 4:25 pm
Forum: Other Boards
Topic: Esp32 port
Replies: 32
Views: 1857

Re: Esp32 port

Thanks for testing, Robert. That latency is dire. Even worse than the ESP8266 :(
by pythoncoder
Sun Mar 26, 2017 11:20 am
Forum: Development of MicroPython
Topic: Adding a module error
Replies: 9
Views: 151

Re: Adding a module error

MicroPython has no mechanism for dynamically loading C modules. You have to flash a firmware build which has been compiled with your module.
by pythoncoder
Sun Mar 26, 2017 11:17 am
Forum: Programs, Libraries and Tools
Topic: rshell - connecting my lopy board?
Replies: 1
Views: 42

Re: rshell - connecting my lopy board?

You haven't told us how you're connected and what OS you're using. If you're connected via USB you need to know the device name. On Linux you can issue ls /dev/tty* You'll probably find an entry like ttyACM0 or ttyUSB0 (I haven't got a PyCom board to test). Then all you need is rshell -p /dev/ttyUSB...
by pythoncoder
Sun Mar 26, 2017 9:55 am
Forum: Other Boards
Topic: Esp32 port
Replies: 32
Views: 1857

Re: Esp32 port

What is the general state of the ESP32 port? I'm wondering if an ESP32 will overcome some of the reliability issues I've experienced with the ESP8266.

Has anyone tested pin interrupts and the UARTS? @Roberthh if pin interrupts work, have you measured the latency?
by pythoncoder
Sat Mar 25, 2017 7:51 am
Forum: The MicroPython pyboard
Topic: Consistent bitflips when using pyboard as SPI slave and other SPI weirdnesses
Replies: 6
Views: 186

Re: Consistent bitflips when using pyboard as SPI slave and other SPI weirdnesses

I think you should have spi.deinit() i.e. call the instance method. As for the byte order I think your master and slave are not synchronised. The master is sending 1,2,3,4,1,2,3,4... The slave has missed three bytes at some stage so is receiving the 4 from transmission N, followed by the 1,2,3 from ...
by pythoncoder
Thu Mar 23, 2017 7:38 am
Forum: ESP8266 boards
Topic: So you want to use the UART...
Replies: 24
Views: 3019

Re: So you want to use the UART...

If you are only listening all you need is a logic level converter on the RXD line to protect the ESP8266 from 5V.
by pythoncoder
Thu Mar 23, 2017 7:32 am
Forum: The MicroPython pyboard
Topic: Papirus Zero for my Pyboard
Replies: 3
Views: 129

Re: Papirus Zero for my Pyboard

You need to get the Pervasive Displays COG Timing datasheet. The version I have is 4P018-00_02_G2_Aurora+Mb_COG_Timing_V231pdf. It has flowcharts detailing the way to drive each size of panel. I haven't studied sizes other than 2.7". You'll need to compare the flowchart for the size you're usin...
by pythoncoder
Thu Mar 23, 2017 7:15 am
Forum: Other Boards
Topic: Software interrupt on nRF52832
Replies: 7
Views: 173

Re: Software interrupt on nRF52832

... I couldn't assign the error since it only says "NameError:" without the meaningful description you pointed out. It would have helped me a lot... Error reporting on the ESP8266 still leaves a lot to be desired and it sounds like the nRF52832 has the same problem. It is confusing. On ot...

Go to advanced search