Issue with digitalPulse #5114
Replies: 1 comment
-
Posted at 2024-05-22 by @gfwilliams Which board are you using? All your other questions seem to have been about ESP32. Do you want to output just a single pulse? If you do have an STM32-based board likle in https://www.espruino.com/STM32+Peripherals I believe you should be able to set the timer not to auto-reload, in which case it'll just do one pulse. ... or you can maybe use SPI - put the pulse (or pulses) you want as bits in an array, and then just use SPI to send the array and the pulses will appear on the MOSI line Posted at 2024-05-23 by Nicktonious I work with different boards and have certain struggles with STM-based (mine is that one with STM32F411). Anyway, now it's a question not really about ws2812, but how to make digitalPulse work with impulses I need. Posted at 2024-05-24 by @gfwilliams
Are you saying in a roundabout way you have an IskraJS board, or at least not an official Espruino board? I don't think If this is just about neopixels and you not wanting to use an SPI line, check out trying to compile Espruino with this code built in: https://github.com/espruino/Espruino/blob/master/libs/neopixel/jswrap_neopixel.c#L135-L141 For the WIO LTE the neopixel wasn't on an SPI pin and so there needed to be a software-only solution, which works for STM32: https://github.com/espruino/Espruino/blob/52352efac4f8f40976a4d268a0a074ad15251b29/targets/stm32/stm32_ws2812b_driver.c#L12 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2024-05-22 by Nicktonious
Board doesn't send pulses with duration less than 1us. As far as I understand that's a deal with prescaling mcu frequency.
Found ur post with examples of how to access a timer, but I feel like it's only about PWM, therefore not not what I need. Can anyone answer is it even possible to change min pulse duration?
Beta Was this translation helpful? Give feedback.
All reactions