Search found 5097 matches
- Wed Apr 21, 2021 5:25 pm
- Forum: ESP32 boards
- Topic: micropython-nano-gui with m5stickc.
- Replies: 1
- Views: 41
Re: micropython-nano-gui with m5stickc.
The rgb() function you copied converts 24-bit rgb color values to an 8-bit result, for use with a bytearray buffer. This is a RAM saving device: I use GS8 mode for the underlying framebuf, with values being expanded to 12-bit at runtime. I'm surprised the result looks remotely correct! Given that yo...
- 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: 551
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...
- Tue Apr 20, 2021 12:17 pm
- Forum: ESP32 boards
- Topic: CORE in ESP32
- Replies: 1
- Views: 108
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.
- Tue Apr 20, 2021 12:11 pm
- Forum: General Discussion and Questions
- Topic: oled date display
- Replies: 2
- Views: 72
Re: oled date display
Try this format string
Code: Select all
'{:02d}-{:02d}-{:02d}'.format(t[0] - 2000,t[1],t[2])
- Tue Apr 20, 2021 10:20 am
- Forum: General Discussion and Questions
- Topic: How do you catch getaddrinfo() errors
- Replies: 9
- Views: 401
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...
- Mon Apr 19, 2021 3:49 pm
- Forum: General Discussion and Questions
- Topic: How do you catch getaddrinfo() errors
- Replies: 9
- Views: 401
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...
- Mon Apr 19, 2021 3:46 pm
- Forum: General Discussion and Questions
- Topic: Why does FrameBuffer not accept bytes objects?
- Replies: 2
- Views: 75
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...
- Mon Apr 19, 2021 3:41 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: movw not working (solved! not possible on V6)
- Replies: 2
- Views: 127
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.
- 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...
- Mon Apr 19, 2021 9:19 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Pico start warning
- Replies: 2
- Views: 147
Re: Pico start warning
I haven't seen this using rshell or miniterm.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