Sha256: 900ca5baeffacef7da0de08ea14609842e6251cb9e401f7770934713375698eb
Contents?: true
Size: 634 Bytes
Versions: 1
Compression:
Stored size: 634 Bytes
Contents
module LittleBits class NumberModule # From https://lb-community.s3.amazonaws.com/uploads/supporting_file/asset/448/Counter.ino NUMBER_VALUES = [0,3,6,8,10,13,15,18,20,23,26,28,30,33,35,38,40,43,45,48,50,53,55,58,61, 64,66,69,71,74,76,78,81,84,86,89,91,94,96,99,102,104,106,108,111,114,116, 119,121,124,127,129,132,134,136,139,141,143,146,149,151,154,156,159,160,163, 166,169,171,173,176,179,181,184,186,188,190,193,196,199,202,205,208,210,212, 214,217,218,221,224,227,230,232,235,237,239,242,245,247,252,255] def self.number_to_pwm(number) NUMBER_VALUES[number] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
little_bits-0.0.1 | lib/little_bits/number_module.rb |