#PWMOUT

1 messages · Page 1 of 1 (latest)

rough girder
#

tried the plus . Yes code did load now but I have to change it now for the new sensors so not sure what can be reused later when pulse leds are added again

twin shadow
#

i don't see the upload

#

i mean upload in discord

rough girder
#

ah you want the code ?

twin shadow
#

yes, to see how PWMOut is being used

rough girder
#

please be patient with the code..it's old one for prototypes

twin shadow
#

Just change pulseio to pwmio everywhere and you should be fine

rough girder
#

with a standard firmware ?

twin shadow
#

yes

#

btw we have a debouncer library, or you can use the keypad library also

rough girder
#

for the button ?

twin shadow
#

yes, though your code is pretty simple anyway

#

also would recommend passing args instead of globals, but that is a style thing

rough girder
#

yes as I said I just check stuff isolated on the m0. I you are right about the args it's bad style

#

it worked fine