Search found 3667 matches

by Roberthh
Thu Oct 21, 2021 8:29 pm
Forum: Raspberry Pi microcontroller boards
Topic: Simple program crash
Replies: 8
Views: 2974

Re: Simple program crash

The decimal constant causes the expression to get float numbers. Float numbers cause a memory allocation. That alone is not a bug. You could try to use some gc.collect() in the main loop of your code, forcing a garbage collection. Since the RP2040 is effectively a 12 bit ADC, you could rewrite the e...
by Roberthh
Thu Oct 21, 2021 7:23 pm
Forum: ESP32 boards
Topic: Issues blinking ESP32 onboard LED
Replies: 7
Views: 25796

Re: Issues blinking ESP32 onboard LED

There is the Signal class and an abstraction on top of Pin. It allows to declare, wehter the logic is straight or inverted. In case of the on-board LED, you have an inverted logic. When using that, ON switched the LED on.
by Roberthh
Tue Oct 19, 2021 8:34 am
Forum: Raspberry Pi microcontroller boards
Topic: Arduino rp2040 connect wifi through SPI
Replies: 4
Views: 3041

Re: Arduino rp2040 connect wifi through SPI

There is an open PR for the Arduino Nano connect supporting WiFi. See https://github.com/micropython/micropython/pull/7669
So it's coming, maybe even before Christmas.
by Roberthh
Mon Oct 18, 2021 6:12 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 290
Views: 460152

Re: Teensy 4.0 & 4.1

BTW, I've finished the FreeRTOS version of the mimxrt port which has many advantages on such a powerful microprocessor. It works great (as far as I've tested it). I'll give some more details after some more testing... That's indeed interesting. There is already a Zephyr port for mimxrt boards. You ...
by Roberthh
Mon Oct 18, 2021 1:42 pm
Forum: Other Boards
Topic: Teensy 4.0 & 4.1
Replies: 290
Views: 460152

Re: Teensy 4.0 & 4.1

I've prepared a simple script to upload the built MicroPython firmware (firmware.bin) to the board. It can be simply used by executing:
@loboris: Do you mind if I add this script and the related Freescale executables to the Pull Request for the ARCH MIX board?
by Roberthh
Sun Oct 17, 2021 11:01 am
Forum: MicroPython pyboard
Topic: I2C Question
Replies: 4
Views: 18512

Re: I2C Question

Note the space between the 4th and 5th hex values..
That's the way, 0x20 is printed. When Python prints bytes objects, it shows printable bytes as such, and non-printable as \xnn. Since \x20 is printable, the character is shown, which in this case is a blanc.
by Roberthh
Sun Oct 17, 2021 10:14 am
Forum: MicroPython pyboard
Topic: I2C Question
Replies: 4
Views: 18512

Re: I2C Question

decimal 20 is hex 14. The data you wrote conmtained decimal 20, and that was read back and shown as \x14. If you want to have \x20 in the register, you have to writeit as decimal 20 or hex 0x20.
by Roberthh
Sat Oct 16, 2021 4:14 pm
Forum: ESP32 boards
Topic: ESP32: get which EXT1 pin caused wake
Replies: 25
Views: 68043

Re: ESP32: get which EXT1 pin caused wake

Creating a tuple of integers is not that bulky. Assigning a pin object to the tuple would be C-wise easy, but that static table of pin objects is encapsulated in machine_pin.c. I do not know whether it would be helpful in checking, whether a certain pin fired, because then the pin object has to be c...
by Roberthh
Sat Oct 16, 2021 3:13 pm
Forum: ESP32 boards
Topic: ESP32: get which EXT1 pin caused wake
Replies: 25
Views: 68043

Re: ESP32: get which EXT1 pin caused wake

The bitmap is just an integer. Testing, whether a certain bit is set is as easy as checking, whether a tuple contains a number - at least when one knows the binary coding of numbers. But if you like a different data type, please do so. b.t.w. it's better to have that method in the esp32 module toget...
by Roberthh
Sat Oct 16, 2021 1:06 pm
Forum: ESP32 boards
Topic: ESP32: get which EXT1 pin caused wake
Replies: 25
Views: 68043

Re: ESP32: get which EXT1 pin caused wake

@sergei.nz I can provide to you a firmware image with the little addition I've posted. Just tell me, which board you have, ESP32 GENERIC or GENERIC_SPIRAM.