Implemented first Hangar-Service
Dependencies: CalibrateMagneto QuaternionMath
Fork of SML2 by
Diff: LEDDriver.cpp
- Revision:
- 46:fd5a62296b12
- Parent:
- 35:fb6e4601adf3
diff -r 6251c0169f4f -r fd5a62296b12 LEDDriver.cpp --- a/LEDDriver.cpp Wed May 27 11:45:00 2015 +0000 +++ b/LEDDriver.cpp Wed May 27 13:01:43 2015 +0000 @@ -42,10 +42,10 @@ void LEDDriver::setWhiteLed(const float w) { uint8_t value = (uint8_t) (w * 255); - + if (value > 255) value = 255; - + write_reg(0x0e, value); }