Search found 2346 matches

by jimmo
Fri Jul 23, 2021 3:08 am
Forum: General Discussion and Questions
Topic: STM32L423KC - Low power modes
Replies: 2
Views: 68

Re: STM32L423KC - Low power modes

but I couldn't find pyb.standby or stop function in the firmware. The pyb module has been largely superceded by the machine module, and I think only some boards provide the aliases on the pyb module. In any case, you should be able to use machine.lightsleep() and machine.deepsleep() for stop and st...
by jimmo
Fri Jul 23, 2021 3:05 am
Forum: ESP32 boards
Topic: PIR interrupt and send
Replies: 3
Views: 109

Re: PIR interrupt and send

That code you suggested also somehow didn't work. Sorry I haven't tested it, but if you add some print statements it should be possible to figure out what's going on. (Add a print in the interrupt handler to confim that it's setting `motion`, and then print in the different if/else cases to see whe...
by jimmo
Thu Jul 22, 2021 4:22 am
Forum: ESP32 boards
Topic: PIR interrupt and send
Replies: 3
Views: 109

Re: PIR interrupt and send

then just stays off. I think the problem is that the main loop is constantly checking the "motion" flag, but if the flag is set then it re-sets "motion_start" to the current time. So once motion is set to True in the interrupt, then it will never "time out" because "motion_start" is always being up...
by jimmo
Thu Jul 22, 2021 4:13 am
Forum: General Discussion and Questions
Topic: Old files persisting/will not delete
Replies: 4
Views: 610

Re: Old files persisting/will not delete

Problem solved, but I am frustrated that this can even be an issue. Using D1 mini pro, the problematic class was inside a folder, if it makes a difference. I created an account on the forum just to up your issue that still exists. Thanks for reporting. I'd really like to get to the bottom of this i...
by jimmo
Wed Jul 21, 2021 11:59 pm
Forum: Programs, Libraries and Tools
Topic: Cpython ble api android l2cap kivy
Replies: 1
Views: 62

Re: Cpython ble api android l2cap kivy

The only thing I've seen that's close is Bleak -- https://github.com/hbldh/bleak
by jimmo
Wed Jul 21, 2021 11:57 pm
Forum: Raspberry Pi microcontroller boards
Topic: How send string from PC to RP2040?
Replies: 6
Views: 189

Re: How send string from PC to RP2040?

duckt14 wrote:
Wed Jul 21, 2021 10:03 pm
I'm using UART but I'm not having success in that.
How is the UART connected to your PC? Do you have a separate UART-USB adaptor (e.g. FTDI) also wired up?
by jimmo
Wed Jul 21, 2021 11:55 pm
Forum: Programs, Libraries and Tools
Topic: Timers - several timers + several run per day
Replies: 3
Views: 88

Re: Timers - several timers + several run per day

I think I figured it out (as test example) Yep, that looks good. How to terminate "run_forever()"? The simple answer is that "you don't"... i.e. the only reason to terminate run_forever is when your program is stopped (i.e. by you hitting Ctrl-C or resetting the board). Your entire program should r...
by jimmo
Wed Jul 21, 2021 11:50 pm
Forum: MicroPython pyboard
Topic: PDM support on Micropython
Replies: 6
Views: 1124

Re: PDM support on Micropython

njepsen wrote:
Wed Jul 21, 2021 10:28 pm
Thanks for your reply Mike.
FYI Mike's PR was merged and the I2S functionality is now available in the nightly builds (and will be in 1.17)
by jimmo
Wed Jul 21, 2021 7:37 am
Forum: Programs, Libraries and Tools
Topic: Timers - several timers + several run per day
Replies: 3
Views: 88

Re: Timers - several timers + several run per day

1) Cannot it be that the Scheduled period is simply too much? (I read that in Firmware 1.16 - there is a limitation to the number of timers = 4 (0 - 3)). (I can send the code - but it is too long ) Possibly, I would need to check. But in general the timers make more sense when you need low-latency ...
by jimmo
Wed Jul 21, 2021 1:16 am
Forum: Raspberry Pi microcontroller boards
Topic: Storing data into RP2040 flash
Replies: 15
Views: 459

Re: Storing data into RP2040 flash

The board I'm using is the Adafruit Feather RP2040, and because it has the wrong flash size definition, I had to change the mpconfigboard.h, changing MICROPY_HW_FLASH_STORAGE_BYTES and redefining PICO_FLASH_SIZE_BYTES. However, I can't find where the PICO_FLASH_SIZE_BYTES is normally defined. Ahh I...