Parameters
ms: the number of milliseconds to pause (unsigned long)
255 = 5v so 1.5v= 76.5
int level = 76.5;
it's a correct code ?
Nigel Goodwin need 32khz so in delay i should write 0.015ms
Nigel Goodwin t 1.5 V what I should write in my case?
I Need pwm with variable duty cycle also 1.5 v magnitude
int LED_pin = 11; // Brancher votre oscilloscope a
int level = 50; //PWM_out_level : cela signifie le rapport cyclique comme il est illustré sur le photo
void setup()
{
pinMode(LED_pin, OUTPUT);
}
void loop()
{
analogWrite(LED_pin, level);
delayMicroseconds(50);
analogWrite(LED_pin, 0);
delayMicroseconds(50);
}
I Need pwm with variable duty cycle also 1.5 v magnitude
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?