-
Notifications
You must be signed in to change notification settings - Fork 6
Should LED default to PWM #69
Copy link
Copy link
Open
Description
Whether an LED can do PWM values depends on the IO it is driving. When a user instantiates an LED without specifying an IO, we assume it will be on builtin/digital. i.e.:
const blinker = await new LED(12); // uses builtin/digital
const pulser = await new LED({ pin: 14, IO: "builtin/pwm" });Should it be the other way around?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels