OnionIoT / Onion-Docs

Documentation for all things Onion
https://docs.onion.io
GNU General Public License v3.0
112 stars 65 forks source link

PWM-Expansion-Node-Module missing information about required callbacks #60

Open gym22 opened 6 years ago

gym22 commented 6 years ago

Onion-Docs/Omega2/Documentation/Reference/Libraries/PWM-Expansion-Node-Module.md is incorrect.

The setupDriver, setFrequency and disableChip methods require a callback to function correctly. This is missing from the documentation.

i.e.

 pwmExp.setupDriver(0,50,0, () => {
console.log("setupDriver success.");
});