Search found 5096 matches

by pythoncoder
Tue Apr 20, 2021 12:36 pm
Forum: Pyboard D-series
Topic: ntptime kills the wifi station, hard reset required to fix
Replies: 11
Views: 537

Re: ntptime kills the wifi station, hard reset required to fix

... Is that -3155673600 indicative of the problem? Actually after trying this a few more times it seems if I don't wait more than one (?) second between tries then I get the error... If you look at ntptime.py you'll find this line . A return value of -3155673600 means that the time() function has f...
by pythoncoder
Tue Apr 20, 2021 12:17 pm
Forum: ESP32 boards
Topic: CORE in ESP32
Replies: 1
Views: 99

Re: CORE in ESP32

No. FreeRTOS runs on one core and MicroPython on the other. MicroPython supports pre-emptive multitasking via _thread and cooperative multitasking via uasyncio, but in both cases (on ESP32) execution is on a single core.
by pythoncoder
Tue Apr 20, 2021 12:11 pm
Forum: General Discussion and Questions
Topic: oled date display
Replies: 2
Views: 65

Re: oled date display

Try this format string

Code: Select all

'{:02d}-{:02d}-{:02d}'.format(t[0] - 2000,t[1],t[2])
by pythoncoder
Tue Apr 20, 2021 10:20 am
Forum: General Discussion and Questions
Topic: How do you catch getaddrinfo() errors
Replies: 9
Views: 378

Re: How do you catch getaddrinfo() errors

Interesting link. It's noteworthy that your two addresses both fall in the 74.125.0.0/16 range reported in September 2017. The article talks of the address ranges changing with time - it doesn't mention whether individual addresses within a range might become unavailable. A possible approach to mini...
by pythoncoder
Mon Apr 19, 2021 3:49 pm
Forum: General Discussion and Questions
Topic: How do you catch getaddrinfo() errors
Replies: 9
Views: 378

Re: How do you catch getaddrinfo() errors

... That didn't take long ... took about 10 minutes for it to change from ('74.125.200.108', 465) to ('74.125.68.109', 465)... That's interesting. I wonder if the old address still worked? I'm no expert on this stuff but it's possible that Google maintain a pool of IP addresses and DNS servers serv...
by pythoncoder
Mon Apr 19, 2021 3:46 pm
Forum: General Discussion and Questions
Topic: Why does FrameBuffer not accept bytes objects?
Replies: 1
Views: 54

Re: Why does FrameBuffer not accept bytes objects?

I suggest you look at font-to-py . This solves the problem, enabling fonts to be accessed from flash with tiny RAM usage. The Writer and CWriter classes enable these to be rendered to any display whose driver is subclassed from FrameBuffer. Key features are the use of a memoryview for allocation-fre...
by pythoncoder
Mon Apr 19, 2021 3:41 pm
Forum: Raspberry Pi microcontroller boards
Topic: movw not working (solved! not possible on V6)
Replies: 2
Views: 117

Re: movw not working

The Pico instruction set is ARM V6 whereas Pyboards are ARM V7. There are unsupported instructions including all the floating point ones.
by pythoncoder
Mon Apr 19, 2021 9:30 am
Forum: General Discussion and Questions
Topic: Web server In/out + physical button control via gpio
Replies: 7
Views: 280

Re: Web server In/out + physical button control via gpio

I haven't responded to this query because I lack web programming experience: I was hoping someone better qualified would pop up. I feel sure this can be done using uasyncio with a uasyncio-based server such as PicoWeb. I can explain how to use uasyncio to respond to hardware changes (see my tutorial...
by pythoncoder
Mon Apr 19, 2021 9:19 am
Forum: Raspberry Pi microcontroller boards
Topic: Pico start warning
Replies: 2
Views: 135

Re: Pico start warning

wangshujun@tom.com wrote:
Sun Apr 18, 2021 1:56 pm
... other serial port tools can't access normally. The environment is ST's CDC driver used by winc7 system CDC driver
I haven't seen this using rshell or miniterm.
by pythoncoder
Mon Apr 19, 2021 9:11 am
Forum: General Discussion and Questions
Topic: ssd1306 0.96 oled font size
Replies: 2
Views: 104

Re: ssd1306 0.96 oled font size

The SSD1306 driver inherits from FrameBuffer, which means that arbitrary fonts may be rendered using the Writer class in font-to-py.

There is also a nano-gui which works with these displays.