Search found 1270 matches

by pythoncoder
Tue Jan 24, 2017 6:57 am
Forum: Programs, Libraries and Tools
Topic: Getting a REPL prompt via UART instead of via USB
Replies: 5
Views: 108

Re: Getting a REPL prompt via UART instead of via USB

I use the following boot.py (which disables USB). Adapt for your UART and baudrate:

Code: Select all

import pyb
pyb.usb_mode(None)
uart = pyb.UART(2, 115200)
pyb.repl_uart(uart)
by pythoncoder
Tue Jan 24, 2017 6:50 am
Forum: The MicroPython pyboard
Topic: RTC oddity: has anyone seen this?
Replies: 2
Views: 94

Re: RTC oddity: has anyone seen this?

I guess merely touching the components around the 32KHz crystal could stop the oscillator. That explains it: with the board powered down apart from the RTC battery I was doubtless casual in my handling. The manual states "The LSE oscillator is switched on and off using the LSEON bit in RCC Back...
by pythoncoder
Mon Jan 23, 2017 7:54 am
Forum: General Discussion and Questions
Topic: micropython IDE for linux on PC
Replies: 11
Views: 294

RS232

The term "RS232" is much abused because it comprises a protocol and an electrical specification. True RS232 operates at (IIRC) +12V and -12V logic levels for long distance communication. An RS232 converter chip converts between 0-5V and those levels. Devices under discussion use the RS232 ...
by pythoncoder
Mon Jan 23, 2017 7:07 am
Forum: General Discussion and Questions
Topic: Supporting CircuitPython
Replies: 6
Views: 173

Supporting CircuitPython

Given the advent of CircuitPython I can envisage a situation where users come here for support. I can see three options. What does the team think is the best way to handle such queries? ⋅ Direct them to Adafruit. ⋅ Ask them to install MicroPython and try again. ⋅ We ins...
by pythoncoder
Mon Jan 23, 2017 7:02 am
Forum: ESP8266 boards
Topic: [SOLVED] DS3231 uRTC set / read problems
Replies: 10
Views: 159

Re: [SOLVED] DS3231 uRTC set / read problems

I'm sorry if I caused offence - it's the last thing I intended. I appreciate the specific problem was solved but was trying to raise a general point. I have posted the general point as a root message as I think it warrants discussion.
by pythoncoder
Sun Jan 22, 2017 5:59 pm
Forum: ESP8266 boards
Topic: [SOLVED] DS3231 uRTC set / read problems
Replies: 10
Views: 159

Supporting CircuitPython

Supporting CircuitPython here promises to be a headache - this is the MicroPython forum after all. I'm loath to invest time and energy learning incompatible forks. This isn't to criticise Adafruit, a company I use and admire; amongst other things they make kit that runs MicroPython :D I'm just conce...
by pythoncoder
Sun Jan 22, 2017 7:24 am
Forum: ESP8266 boards
Topic: Reading UART0 bytes from RX
Replies: 3
Views: 67

Re: Reading UART0 bytes from RX

Assuming your buffer size is the same in the first example it should work. The uart.readinto method should block until either the buffer fills or a timeout occurs. If the UART timeout exceeds the timer period and you're getting fewer than 9 characters things might get re-entrant. There are no buffer...
by pythoncoder
Sat Jan 21, 2017 7:18 am
Forum: General Discussion and Questions
Topic: uasyncio
Replies: 5
Views: 294

Re: uasyncio

Unfortunately I'm not knowledgeable about the network programming side of things; I did some work with umqtt and found that it was difficult to integrate with asynchronous programming because it can block. In other words it can monopolise the CPU until a response is received. If urequests works in a...
by pythoncoder
Fri Jan 20, 2017 10:55 am
Forum: The MicroPython pyboard
Topic: RTC oddity: has anyone seen this?
Replies: 2
Views: 94

RTC oddity: has anyone seen this?

I have a project which uses the Pyboard's low power modes and an RTC backup battery. The situation I'm about to describe convinced me there was an intermittent fault with my hardware so I built a new set. I've now seen it on the new set too. The hardware of both sets is properly constructed with a P...
by pythoncoder
Fri Jan 20, 2017 6:00 am
Forum: General Discussion and Questions
Topic: mpconfigboard.h
Replies: 2
Views: 75

Re: mpconfigboard.h

Thanks for that, Dave. I imagined a simple fix but the complexity is way beyond what the application merits. I can use USB with some adaptation to the hardware so I'll go that route.

Go to advanced search