Search found 463 matches

by SpotlightKid
Wed Jun 24, 2020 11:41 am
Forum: Other Boards
Topic: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards
Replies: 167
Views: 315790

Re: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards

I just received an MCUDev DevEBox STM32F407VGT6 board from AliExpress (only ~$9 € inlc. shippng). This is now marked: VER:V3.0 SN:1904 The only visible changes I can see are an additional diode to the left of C1 and two new resistors (R1,R4) above R34. @mcauser 's board definition works perfectly. T...
by SpotlightKid
Mon Jun 22, 2020 9:33 pm
Forum: General Discussion and Questions
Topic: "Empty" TypeError
Replies: 5
Views: 3109

Re: "Empty" TypeError

You can always delegate instead of inheriting: class Cfg: def __init__(self, default={}): self._dict = {} self._dict.update(default) def __getattr__(self, name): return getattr(self._dict, name) def __getitem__(self, name): return self._dict[name] def __repr__(self): return repr(self._dict) # plus a...
by SpotlightKid
Sun Jun 14, 2020 10:11 pm
Forum: Development of MicroPython
Topic: Encoder in Hardware with Timer Peripheral
Replies: 10
Views: 6057

Re: Encoder in Hardware with Timer Peripheral

Oh, these look also handy for breadboarding and DIY projects, yes. But ordering from China is such nuisance. Still waiting on three orders from >4 weeks ago.
by SpotlightKid
Sun Jun 14, 2020 5:19 pm
Forum: Development of MicroPython
Topic: Encoder in Hardware with Timer Peripheral
Replies: 10
Views: 6057

Re: Encoder in Hardware with Timer Peripheral

Ok, we're talking about different encoders and different uses here. My experience is with using encoders for controlling user interfaces, e.g. in place of a potentiometer. These are encoders that come for 5-8 bucks for 10 pieces.
by SpotlightKid
Sat Jun 13, 2020 8:16 pm
Forum: Development of MicroPython
Topic: Encoder in Hardware with Timer Peripheral
Replies: 10
Views: 6057

Re: Encoder in Hardware with Timer Peripheral

Do you get reliable monotonic increments/decrements of the counter with this? In my experience the internal decoding does not handle encoders with switch bouncing (which is most of them) very well. I get the best experience, when handling the pins myself in a pin interrupt handler and keeping the pr...
by SpotlightKid
Sat Jun 13, 2020 8:05 pm
Forum: Other Boards
Topic: STM32 USB
Replies: 7
Views: 4822

Re: STM32 USB

What kind of board is this? Does it have a ST Link interface, maybe? Do you have MICROPY_HW_ENABLE_USB enabled?
by SpotlightKid
Sat Jun 13, 2020 8:03 pm
Forum: General Discussion and Questions
Topic: How to Execute Pythin Scripts
Replies: 8
Views: 3733

Re: How to Execute Pythin Scripts

Also, when you manage to import your script properly, please not that all code of module thats on a global level is executed when importing it. It is therefor better to put it into a function, which you call after importing, Secondly, when executing a script (as opposed to the interactive prompt), y...
by SpotlightKid
Tue Jun 09, 2020 6:04 pm
Forum: General Discussion and Questions
Topic: Optimizations in frozen bytecode
Replies: 2
Views: 1562

Re: Optimizations in frozen bytecode

Yes, all of them, because they affect runtime behaviour. Except short variable names, this is about memory.
by SpotlightKid
Thu May 21, 2020 1:03 am
Forum: General Discussion and Questions
Topic: Season of Docs : MicroPython
Replies: 23
Views: 14198

Re: Season of Docs : MicroPython

I think the existing documentation has serious problems with accuracy. Many things are outdated, specific to a port or not specific enough (important differences between ports are not listed) or just plain wrong. That's one of the first areas, which I think needs attention.