LiamsGitHub / AS7265x-spectrometer

Python module to drive the SparkFun Triad Spectroscopy Sensor
16 stars 13 forks source link

The mapping order seems incorrect, which is easy to correct #2

Open dagmarius opened 3 years ago

dagmarius commented 3 years ago

To obtain reasonable spectra, e.g. from a LED lamp with known spectrum one should change the mapping array in the reoderData subroutine, as theAS72651 is read first, not last. I used: mappings - [(13,1),(14,2),(15,3),(,16,4),(,17,5),(,18,6),(7,7),(,8,8),(1,9),(9,10),(2,11),(10,12),(3,13),(4,14),(5,15),(6,16),(11,17),(12,18)]

Hope this helps, Dagmar