Search found 1688 matches

by jimmo
Thu Mar 26, 2020 5:51 am
Forum: ESP8266 boards
Topic: Non-used PWM object make other PWM objects malfunctioned
Replies: 6
Views: 433

Re: Non-used PWM object make other PWM objects malfunctioned

I think I'd need to test this to give a more useful answer, but sort of idle curiosity, have you tried running at a higher PWM frequency (or longer delay between iterations of your loop)? I think the limit on ESP8266 is 1000Hz With PWM at 500Hz and setting the duty cycle every 1ms, you're never real...
by jimmo
Thu Mar 26, 2020 3:31 am
Forum: MicroPython pyboard
Topic: Connection - Direct control
Replies: 6
Views: 489

Re: Connection - Direct control

Hi, The pyboard.py tool (which is one of many tools that you can use to copy files to the device or run code without copying) can also be used as a library. I recently wrote some (very basic) docs for this: http://docs.micropython.org/en/latest/reference/pyboard.py.html#using-the-pyboard-library Not...
by jimmo
Thu Mar 26, 2020 3:28 am
Forum: MicroPython pyboard
Topic: Pin IRQ Debounce Messing with REPL
Replies: 10
Views: 789

Re: Pin IRQ Debounce Messing with REPL

Unfortunately you just can't do delays or "waiting" in an interrupt handler. Instead I would recommend making a timer that goes off every few milliseconds. Inside the timer callback, add one to a global variable if the button is down, otherwise set it to zero. At the point it reaches some threshold ...
by jimmo
Thu Mar 26, 2020 1:09 am
Forum: MicroPython pyboard
Topic: Pin IRQ Debounce Messing with REPL
Replies: 10
Views: 789

Re: Pin IRQ Debounce Messing with REPL

Hi,

Could you please post your code (or at least a minimal example that shows what you're describing)? Otherwise we'll be just guessing.

But...my guess is that maybe you have some delays or loops in in your interrupt handler?
by jimmo
Thu Mar 26, 2020 1:07 am
Forum: ESP32 boards
Topic: ESP-32 Pycharm
Replies: 3
Views: 344

Re: ESP-32 Pycharm

It feels like the IDE integrations are just fraught with minor issues that just end up confusing new users. Perhaps there's a silent majority of users who aren't seeing issues but we certainly see a lot of questions in the forum along these lines. It's not a particularly easy problem to solve, and n...
by jimmo
Thu Mar 26, 2020 12:55 am
Forum: Programs, Libraries and Tools
Topic: Large flash size on STM32 port for PyBoard 1.1
Replies: 9
Views: 468

Re: Large flash size on STM32 port for PyBoard 1.1

As an example, I need the "pow" function form the math library but the stm32 version does not have the implementation for it Do you want pow or powf? Sounds like you may be using doubles, which will lead to a large increase in code size due to no hardware double-precision floating point support. Re...
by jimmo
Thu Mar 26, 2020 12:49 am
Forum: General Discussion and Questions
Topic: OSError: -110
Replies: 2
Views: 209

Re: OSError: -110

FWIW, in regular Python

Code: Select all

$ python3
>>> import os
>>> os.strerror(110)
'Connection timed out'
But something must be wrong with the line numbering... 86 is a possible candidate though.
by jimmo
Wed Mar 25, 2020 7:40 am
Forum: Programs, Libraries and Tools
Topic: Large flash size on STM32 port for PyBoard 1.1
Replies: 9
Views: 468

Re: Large flash size on STM32 port for PyBoard 1.1

But also, does what I said about the linker script and flash size make sense?
by jimmo
Wed Mar 25, 2020 7:39 am
Forum: Programs, Libraries and Tools
Topic: Large flash size on STM32 port for PyBoard 1.1
Replies: 9
Views: 468

Re: Large flash size on STM32 port for PyBoard 1.1

While it is possible to write embedded stuff in C++, a lot of care must be taken. In particular, you're basically going to end up duplicating a lot of the code already provided in the firmware (e.g. string handling, lists, maps, math, etc). i.e. if your C++ code uses anything from the STL (vector, m...
by jimmo
Wed Mar 25, 2020 5:42 am
Forum: Other Boards
Topic: [Particle_Xenon/NRF5X] build fails - tinyusb hal file missing
Replies: 6
Views: 457

Re: [Particle_Xenon/NRF5X] build fails - tinyusb hal file missing

I have all the NRF boards building again but limited ability to test NRF here. I'll send the PR anyway, and follow up when I have a chance to do some testing (I have a Xenon also and some nRF51822 boards)