Vibration tester - maintain LEDs on during cycle #13118
Answered
by
peterhinch
Kesse79
asked this question in
RP2040 / Pico
-
Hi everyone, I am working on a vibration test device based on a raspberry Pico and a MCU6050 accellerometer. The following code works well - but i am having difficulties solving how to maintain the LED status on, if this status is set once during the PWM cycle. Can any of you clever people help me sort this out ? The code is copied in below
|
Beta Was this translation helpful? Give feedback.
Answered by
peterhinch
Dec 5, 2023
Replies: 1 comment 3 replies
-
I am not entirely sure what the problem is, but I did note that there is no code to turn the red LED on. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why not code it so that, at the start of the cycle all the LEDs are turned off. During the cycle, LED's can only be turned on, as in this fragment: