Battery usage of analogWrite(LED1, 0.25) vs LED1.write() #2131
Unanswered
espruino-discuss
asked this question in
Puck.js, Pixl.js, Jolt.js and MDBT42
Replies: 1 comment
-
Posted at 2017-04-12 by @gfwilliams That's a hard one - you'd have to test - I think it'll depend on the brightness. There is hardware PWM, but it requires the high-speed oscillator to be on - which will use power even though the processor is asleep. If you want a dim glow, by far the most power efficient way would be doing |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Posted at 2017-04-11 by Drarok
I was wondering, given that there's hardware PWM (I think?) on the Puck, does that use more power than simply running the LED at full bright, or does the reduced LED draw make up for whatever power requirements the PWM has?
Slightly odd question, I know. :)
Beta Was this translation helpful? Give feedback.
All reactions