mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[ion] LED changes color on charging event only for N0110 model
This commit is contained in:
@@ -25,7 +25,6 @@ src += $(addprefix ion/src/shared/, \
|
||||
crc32_eat_byte.cpp \
|
||||
decompress.cpp \
|
||||
events.cpp \
|
||||
led.cpp \
|
||||
platform_info.cpp \
|
||||
storage.cpp \
|
||||
unicode/utf8_decoder.cpp\
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
ion_device_src += $(addprefix ion/src/device/n0100/drivers/, \
|
||||
board.cpp \
|
||||
led.cpp \
|
||||
power.cpp \
|
||||
reset.cpp \
|
||||
)
|
||||
|
||||
15
ion/src/device/n0100/drivers/led.cpp
Normal file
15
ion/src/device/n0100/drivers/led.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <ion/led.h>
|
||||
#include <ion/battery.h>
|
||||
#include <ion/usb.h>
|
||||
|
||||
namespace Ion {
|
||||
namespace LED {
|
||||
|
||||
KDColor updateColorWithPlugAndCharge() {
|
||||
/* Prevent updating LED color with charging status as the end of charge
|
||||
* current is never detected on N0100 model. */
|
||||
return KDColorBlack;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
ion_device_src += $(addprefix ion/src/device/n0110/drivers/, \
|
||||
board.cpp \
|
||||
cache.cpp \
|
||||
led.cpp \
|
||||
power.cpp \
|
||||
reset.cpp \
|
||||
)
|
||||
|
||||
@@ -11,5 +11,9 @@ void setColor(KDColor c) {}
|
||||
|
||||
void setBlinking(uint16_t period, float dutyCycle) {}
|
||||
|
||||
KDColor updateColorWithPlugAndCharge() {
|
||||
return KDColorBlack;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user