Add SC7A20 accelerometer support
!!! AI GENERATED MESSAGE !!! This commit introduces support for the SC7A20 accelerometer. The accelerometer readings can now be displayed on the screen, and the display mode can be toggled using the encoder. Additionally, the EMA filter constants for voltage and current readings have been updated from K2 to K4 for potentially smoother readings.
This commit is contained in:
parent
48f1656540
commit
2ccf069e15
5 changed files with 146 additions and 13 deletions
|
|
@ -12,7 +12,7 @@ U8G2_SRC:=$(U8G2_DIR)/u8x8_d_$(DISPLAY).c $(filter-out $(U8G2_DIR)/u8x8_d_%.c, \
|
|||
$(filter-out $(U8G2_DIR)/mui%.c, $(wildcard $(U8G2_DIR)/*.c)))
|
||||
|
||||
EXTRA_CFLAGS += -I$(U8G2_DIR)
|
||||
ADDITIONAL_C_FILES += lib_i2c.c display.c
|
||||
ADDITIONAL_C_FILES += lib_i2c.c display.c sc7a20.c
|
||||
|
||||
include ch32fun/ch32fun/ch32fun.mk
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue