Search found 410 matches

by mattyt
Sat Aug 25, 2018 4:40 am
Forum: ESP32 boards
Topic: Neopixel issue
Replies: 3
Views: 2492

Re: Neopixel issue

Do you happen to be using an ESP32? There's an issue on that port that many Neopixels behave similarly to what you describe unless you pass a 'timing=True' when you instantiate the Neopixel class. See #159 on the old ESP32 port repo for details. So try something like: pixel_strip = neopixel.NeoPixel...
by mattyt
Sun Aug 05, 2018 2:04 pm
Forum: ESP32 boards
Topic: ESP32 - update clock after boot
Replies: 11
Views: 9844

Re: ESP32 - update clock after boot

The error is misleading but I've come across it before; I see it when there is no internet connection.

To connect to your wifi:

Code: Select all

import network
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
wlan.connect('YourWifiSsid', 'yourwifipassword')
by mattyt
Tue Jul 31, 2018 1:05 pm
Forum: Drivers for External Components
Topic: Neo7Segment Driver
Replies: 0
Views: 1660

Neo7Segment Driver

I've recently been playing with Unexpected Maker's Neo7Segment displays. They're a neat 7-segment module made up of NeoPixels. So now there's a MicroPython driver for the Neo7Segment . :) It's bare-bones at the moment; I intend to improve the encapsulation of the segment mapping, add colour fading a...
by mattyt
Tue Jul 31, 2018 12:34 pm
Forum: ESP32 boards
Topic: Any resources to help me work collaborately with MicroPython's main team?
Replies: 5
Views: 3203

Re: Any resources to help me work collaborately with MicroPython's main team?

@pythoncoder's suggestions are, as always, excellent. In particular, a lot happens under the radar amongst the issues in Github . I'm not one that typically learns well from video's but a few things clicked when Damien George - creator of MicroPython - presented how to Wrap a C module in MicroPython...
by mattyt
Sun Jul 22, 2018 8:20 am
Forum: ESP32 boards
Topic: ESP32 - update clock after boot
Replies: 11
Views: 9844

Re: ESP32 - update clock after boot

`ntptime` is alluded to in the ESP8266 docs but, you're right, it's not been well documented. As best I can tell it's only in the ESP8266 and ESP32 ports (and a different implementation in the Loboris fork as Dave mentioned). Since it's a pure python implementation it could be easily added to any of...
by mattyt
Sat Jul 21, 2018 2:27 pm
Forum: ESP32 boards
Topic: ESP32 - update clock after boot
Replies: 11
Views: 9844

Re: ESP32 - update clock after boot

There is primitive NTP support in the ESP32 port (borrowed from the ESP8266 port). In short:

Code: Select all

import ntptime
ntptime.settime()  # Synchronise the system time using NTP
Caveat: There is no timezone support so the system time will be set to UTC.
by mattyt
Tue Jul 17, 2018 12:45 pm
Forum: General Discussion and Questions
Topic: Wrapper for existing C-Library
Replies: 6
Views: 4502

Re: Wrapper for existing C-Library

We recently recorded Damien giving a talk titled Wrap a C module in MicroPython at our June Melbourne MicroPython Meetup. Sounds relevant for what you're asking!

@deshipu also wrote some MicroPython Development Documentation that covered similar ground.
by mattyt
Tue Jul 17, 2018 6:15 am
Forum: General Discussion and Questions
Topic: The Melbourne MicroPython Meetup blog
Replies: 7
Views: 4313

Re: The Melbourne MicroPython Meetup blog

I hadn't - and it looks like a neat addition. Thanks @pythoncoder!
by mattyt
Tue Jul 17, 2018 12:53 am
Forum: ESP32 boards
Topic: Putty is slow
Replies: 5
Views: 4348

Re: Putty is slow

Sounds very much like flow control, as @Roberthh mentioned.

To clarify, Flow Control, in the Connection/Serial category, needs to be set to None:
putty_flow_control.png
putty_flow_control.png (28.62 KiB) Viewed 4217 times
by mattyt
Mon Jul 16, 2018 11:39 pm
Forum: General Discussion and Questions
Topic: The Melbourne MicroPython Meetup blog
Replies: 7
Views: 4313

Re: The Melbourne MicroPython Meetup blog

It looks mostly correct @deshipu. The only point that jumped out was the directories have changed a little (specifically: ports are now in ports ). I raised a quick PR . And although perhaps not finished , it's a valuable resource! As time allows I'll be sure to update it rather than create my own.