Fix typos in new sero IO util.
This commit is contained in:
parent
293594355c
commit
62d4ef620e
|
@ -21,7 +21,7 @@ var Cylon = module.exports = {
|
|||
|
||||
IO: {
|
||||
DigitalPin: require('./io/digital-pin'),
|
||||
Utils: requre('./io/utils')
|
||||
Utils: require('./io/utils')
|
||||
},
|
||||
|
||||
api_instance: null,
|
||||
|
|
|
@ -2,7 +2,7 @@ Utils = {
|
|||
// Returns { period: int, duty: int }
|
||||
// Calculated based on params value, freq, pulseWidth = { min: int, max: int }
|
||||
// pulseWidth min and max need to be specified in microseconds
|
||||
periodAndDuty = function(scaledValue, freq, pulseWidth, polarity) {
|
||||
periodAndDuty: function(scaledValue, freq, pulseWidth, polarity) {
|
||||
var period, duty, maxDuty;
|
||||
|
||||
polarity = polarity || 'high';
|
||||
|
@ -23,7 +23,7 @@ Utils = {
|
|||
}
|
||||
|
||||
return { period: period, duty: duty };
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = Utils;
|
||||
|
|
Loading…
Reference in New Issue