Due to high demand expect some shipping delays at this time, orders may not ship for 3-4 business days.
0

ItsyBitsy nRF5280
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

ItsyBitsy nRF5280

by smashup on Mon Nov 29, 2021 2:38 pm

Hey, I am currently using Itsy Bitsy nRF5280, and I am using the following code below to output a signal. It works but the only issue here is that when the ItsyBitsy nRF5280 is powered, it takes about three seconds to finally output the signal. How can I reduce the time it take to output the digital signal right after turning on the ItsyBitsy nRF5280.
I have not added any delay that would cause the three second delay at the beginning; therefore, the three second delay after the power on is internal to ItsyBitsy nRF5280.
What can I do to reduce the three second delay after turning it on.

import time
import board
import pwmio

Trig1 = pwmio.PWMOut(board.D10, frequency=10, duty_cycle=20000)

while True:
Trig1

smashup
 
Posts: 1
Joined: Mon Nov 29, 2021 2:27 pm

Re: ItsyBitsy nRF5280

by dastels on Mon Nov 29, 2021 6:50 pm

The code seems to have been clipped off.

Regardless, there's always going to be some startup time with a CircuitPython application. The CircuitPython runtime has to start up, your code has to be loaded and compiled, and the imported libraries/modules need to be loaded.

The ultimate way to speed thing up is to switch to C++.

Dave

dastels
 
Posts: 8486
Joined: Tue Oct 20, 2015 3:22 pm

Please be positive and constructive with your questions and comments.