├── Hardware ├── Watch Max(改进版) │ ├── Watch Max.PcbDoc │ ├── Watch Max.pdf │ ├── WatchX.PrjPcb │ └── WatchX.SchDoc ├── WatchX(原版) │ ├── WatchX.PcbDoc │ ├── WatchX.PrjPcb │ ├── WatchX.SchDoc │ └── WatchX.pdf └── 先读我.txt ├── Images ├── About.jpg ├── Altitude.jpg ├── Brightness.jpg ├── Main.jpg ├── README.md ├── Settings.jpg ├── StopWatch.jpg └── TimeConfig.jpg ├── LICENSE ├── README.md └── WatchX ├── ArduinoAPI ├── Arduino.c ├── Arduino.h ├── HardwareSerial.cpp ├── HardwareSerial.h ├── Print.cpp ├── Print.h ├── Printable.h ├── SPI.cpp ├── SPI.h ├── Stream.cpp ├── Stream.h ├── Tone.cpp ├── Tone.h ├── WCharacter.h ├── WMath.cpp ├── WMath.h ├── WProgram.h ├── WString.cpp ├── WString.h ├── Wire.cpp ├── Wire.h ├── WireBase.cpp ├── WireBase.h ├── avr │ ├── dtostrf.c │ ├── dtostrf.h │ ├── interrupt.h │ └── pgmspace.h ├── binary.h ├── dtostrf.c ├── dtostrf.h ├── itoa.c ├── itoa.h ├── libmaple_types.h └── wirish_math.h ├── Core ├── CMSIS │ ├── Device │ │ └── ST │ │ │ └── STM32F4xx │ │ │ ├── Include │ │ │ ├── stm32f4xx.h │ │ │ └── system_stm32f4xx.h │ │ │ └── Source │ │ │ └── Templates │ │ │ ├── SW4STM32 │ │ │ ├── startup_stm32f401xx.s │ │ │ ├── startup_stm32f40_41xxx.s │ │ │ ├── startup_stm32f40xx.s │ │ │ ├── startup_stm32f410xx.s │ │ │ ├── startup_stm32f411xe.s │ │ │ ├── startup_stm32f412xg.s │ │ │ ├── startup_stm32f413_423xx.s │ │ │ ├── startup_stm32f427_437xx.s │ │ │ ├── startup_stm32f427xx.s │ │ │ ├── startup_stm32f429_439xx.s │ │ │ ├── startup_stm32f446xx.s │ │ │ └── startup_stm32f469_479xx.s │ │ │ ├── TASKING │ │ │ └── cstart_thumb2.asm │ │ │ ├── TrueSTUDIO │ │ │ ├── startup_stm32f401xx.s │ │ │ ├── startup_stm32f40_41xxx.s │ │ │ ├── startup_stm32f40xx.s │ │ │ ├── startup_stm32f410xx.s │ │ │ ├── startup_stm32f411xe.s │ │ │ ├── startup_stm32f412xg.s │ │ │ ├── startup_stm32f413_423xx.s │ │ │ ├── startup_stm32f427_437xx.s │ │ │ ├── startup_stm32f427xx.s │ │ │ ├── startup_stm32f429_439xx.s │ │ │ ├── startup_stm32f446xx.s │ │ │ └── startup_stm32f469_479xx.s │ │ │ ├── arm │ │ │ ├── startup_stm32f401xx.s │ │ │ ├── startup_stm32f40_41xxx.s │ │ │ ├── startup_stm32f40xx.s │ │ │ ├── startup_stm32f410xx.s │ │ │ ├── startup_stm32f411xe.s │ │ │ ├── startup_stm32f412xg.s │ │ │ ├── startup_stm32f413_423xx.s │ │ │ ├── startup_stm32f427_437xx.s │ │ │ ├── startup_stm32f427x.s │ │ │ ├── startup_stm32f429_439xx.s │ │ │ ├── startup_stm32f446xx.s │ │ │ └── startup_stm32f469_479xx.s │ │ │ ├── gcc_ride7 │ │ │ ├── startup_stm32f401xx.s │ │ │ ├── startup_stm32f40_41xxx.s │ │ │ ├── startup_stm32f40xx.s │ │ │ ├── startup_stm32f427_437xx.s │ │ │ ├── startup_stm32f427x.s │ │ │ └── startup_stm32f429_439xx.s │ │ │ ├── iar │ │ │ ├── startup_stm32f401xx.s │ │ │ ├── startup_stm32f40_41xxx.s │ │ │ ├── startup_stm32f40xx.s │ │ │ ├── startup_stm32f410xx.s │ │ │ ├── startup_stm32f411xe.s │ │ │ ├── startup_stm32f412xg.s │ │ │ ├── startup_stm32f413_423xx.s │ │ │ ├── startup_stm32f427_437xx.s │ │ │ ├── startup_stm32f427x.s │ │ │ ├── startup_stm32f429_439xx.s │ │ │ ├── startup_stm32f446xx.s │ │ │ └── startup_stm32f469_479xx.s │ │ │ └── system_stm32f4xx.c │ ├── Flash │ │ ├── FlashOS.h │ │ ├── STM32F401xx_OPT.FLM │ │ ├── STM32F40xxx_41xxx_OPT.FLM │ │ ├── STM32F410xx_412xx_OPT.FLM │ │ ├── STM32F411xx_OPT.FLM │ │ ├── STM32F413xx_423xx_OPT.FLM │ │ ├── STM32F42xxx_43xxx_OPT.FLM │ │ ├── STM32F446RevA_Quad_SPI.FLM │ │ ├── STM32F446_Quad_SPI.FLM │ │ ├── STM32F446xx_OPT.FLM │ │ ├── STM32F469_Quad_SPI.FLM │ │ ├── STM32F469xx_479xx_OPT.FLM │ │ ├── STM32F4xx │ │ │ ├── FlashDev.c │ │ │ ├── FlashPrg.c │ │ │ ├── STM32F4xx.uvoptx │ │ │ ├── STM32F4xx.uvprojx │ │ │ └── Target.lin │ │ ├── STM32F4xx_1024.FLM │ │ ├── STM32F4xx_1024dual.FLM │ │ ├── STM32F4xx_128.FLM │ │ ├── STM32F4xx_1536.FLM │ │ ├── STM32F4xx_2048.FLM │ │ ├── STM32F4xx_256.FLM │ │ ├── STM32F4xx_384.FLM │ │ ├── STM32F4xx_512.FLM │ │ └── STM32F4xx_OTP.FLM │ └── Include │ │ ├── arm_common_tables.h │ │ ├── arm_const_structs.h │ │ ├── arm_math.h │ │ ├── core_cm0.h │ │ ├── core_cm0plus.h │ │ ├── core_cm3.h │ │ ├── core_cm4.h │ │ ├── core_cm7.h │ │ ├── core_cmFunc.h │ │ ├── core_cmInstr.h │ │ ├── core_cmSimd.h │ │ ├── core_sc000.h │ │ └── core_sc300.h ├── STM32F4xx_StdPeriph_Driver │ ├── inc │ │ ├── misc.h │ │ ├── stm32f4xx_adc.h │ │ ├── stm32f4xx_can.h │ │ ├── stm32f4xx_cec.h │ │ ├── stm32f4xx_crc.h │ │ ├── stm32f4xx_cryp.h │ │ ├── stm32f4xx_dac.h │ │ ├── stm32f4xx_dbgmcu.h │ │ ├── stm32f4xx_dcmi.h │ │ ├── stm32f4xx_dfsdm.h │ │ ├── stm32f4xx_dma.h │ │ ├── stm32f4xx_dma2d.h │ │ ├── stm32f4xx_dsi.h │ │ ├── stm32f4xx_exti.h │ │ ├── stm32f4xx_flash.h │ │ ├── stm32f4xx_flash_ramfunc.h │ │ ├── stm32f4xx_fmc.h │ │ ├── stm32f4xx_fmpi2c.h │ │ ├── stm32f4xx_fsmc.h │ │ ├── stm32f4xx_gpio.h │ │ ├── stm32f4xx_hash.h │ │ ├── stm32f4xx_i2c.h │ │ ├── stm32f4xx_iwdg.h │ │ ├── stm32f4xx_lptim.h │ │ ├── stm32f4xx_ltdc.h │ │ ├── stm32f4xx_pwr.h │ │ ├── stm32f4xx_qspi.h │ │ ├── stm32f4xx_rcc.h │ │ ├── stm32f4xx_rng.h │ │ ├── stm32f4xx_rtc.h │ │ ├── stm32f4xx_sai.h │ │ ├── stm32f4xx_sdio.h │ │ ├── stm32f4xx_spdifrx.h │ │ ├── stm32f4xx_spi.h │ │ ├── stm32f4xx_syscfg.h │ │ ├── stm32f4xx_tim.h │ │ ├── stm32f4xx_usart.h │ │ └── stm32f4xx_wwdg.h │ └── src │ │ ├── misc.c │ │ ├── stm32f4xx_adc.c │ │ ├── stm32f4xx_can.c │ │ ├── stm32f4xx_cec.c │ │ ├── stm32f4xx_crc.c │ │ ├── stm32f4xx_cryp.c │ │ ├── stm32f4xx_cryp_aes.c │ │ ├── stm32f4xx_cryp_des.c │ │ ├── stm32f4xx_cryp_tdes.c │ │ ├── stm32f4xx_dac.c │ │ ├── stm32f4xx_dbgmcu.c │ │ ├── stm32f4xx_dcmi.c │ │ ├── stm32f4xx_dfsdm.c │ │ ├── stm32f4xx_dma.c │ │ ├── stm32f4xx_dma2d.c │ │ ├── stm32f4xx_dsi.c │ │ ├── stm32f4xx_exti.c │ │ ├── stm32f4xx_flash.c │ │ ├── stm32f4xx_flash_ramfunc.c │ │ ├── stm32f4xx_fmc.c │ │ ├── stm32f4xx_fmpi2c.c │ │ ├── stm32f4xx_fsmc.c │ │ ├── stm32f4xx_gpio.c │ │ ├── stm32f4xx_hash.c │ │ ├── stm32f4xx_hash_md5.c │ │ ├── stm32f4xx_hash_sha1.c │ │ ├── stm32f4xx_i2c.c │ │ ├── stm32f4xx_iwdg.c │ │ ├── stm32f4xx_lptim.c │ │ ├── stm32f4xx_ltdc.c │ │ ├── stm32f4xx_pwr.c │ │ ├── stm32f4xx_qspi.c │ │ ├── stm32f4xx_rcc.c │ │ ├── stm32f4xx_rng.c │ │ ├── stm32f4xx_rtc.c │ │ ├── stm32f4xx_sai.c │ │ ├── stm32f4xx_sdio.c │ │ ├── stm32f4xx_spdifrx.c │ │ ├── stm32f4xx_spi.c │ │ ├── stm32f4xx_syscfg.c │ │ ├── stm32f4xx_tim.c │ │ ├── stm32f4xx_usart.c │ │ └── stm32f4xx_wwdg.c ├── Startup │ ├── ARM │ │ ├── STM32F401xx_OPT.s │ │ ├── STM32F40xxx_41xxx_OPT.s │ │ ├── STM32F42xxx_43xxx_OPT.s │ │ ├── STM32F4xx_OTP.s │ │ ├── startup_stm32f401xx.s │ │ ├── startup_stm32f40_41xxx.s │ │ ├── startup_stm32f427_437xx.s │ │ └── startup_stm32f429_439xx.s │ ├── GCC │ │ ├── startup_stm32f401xx.S │ │ ├── startup_stm32f40_41xxx.S │ │ ├── startup_stm32f427_437xx.S │ │ └── startup_stm32f429_439xx.S │ └── system_stm32f4xx.c ├── adc.c ├── adc.h ├── delay.c ├── delay.h ├── exti.c ├── exti.h ├── flash.c ├── flash.h ├── gpio.c ├── gpio.h ├── mcu_type.h ├── pwm.c ├── pwm.h ├── rng.c ├── rng.h ├── rtc.c ├── rtc.h ├── stm32f4xx_conf.h ├── system_stm32f4xx.c ├── timer.c └── timer.h ├── KeilClear.bat ├── Libraries ├── Adafruit_BMP180 │ ├── Adafruit_BMP085.cpp │ └── Adafruit_BMP085.h ├── Adafruit_GFX_Library │ ├── Adafruit_GFX.cpp │ ├── Adafruit_GFX.h │ ├── Adafruit_SPITFT.cpp │ ├── Adafruit_SPITFT.h │ ├── Adafruit_SPITFT_Macros.h │ ├── Fonts │ │ ├── FreeMono12pt7b.h │ │ ├── FreeMono18pt7b.h │ │ ├── FreeMono24pt7b.h │ │ ├── FreeMono9pt7b.h │ │ ├── FreeMonoBold12pt7b.h │ │ ├── FreeMonoBold18pt7b.h │ │ ├── FreeMonoBold24pt7b.h │ │ ├── FreeMonoBold9pt7b.h │ │ ├── FreeMonoBoldOblique12pt7b.h │ │ ├── FreeMonoBoldOblique18pt7b.h │ │ ├── FreeMonoBoldOblique24pt7b.h │ │ ├── FreeMonoBoldOblique9pt7b.h │ │ ├── FreeMonoOblique12pt7b.h │ │ ├── FreeMonoOblique18pt7b.h │ │ ├── FreeMonoOblique24pt7b.h │ │ ├── FreeMonoOblique9pt7b.h │ │ ├── FreeSans12pt7b.h │ │ ├── FreeSans18pt7b.h │ │ ├── FreeSans24pt7b.h │ │ ├── FreeSans9pt7b.h │ │ ├── FreeSansBold12pt7b.h │ │ ├── FreeSansBold18pt7b.h │ │ ├── FreeSansBold24pt7b.h │ │ ├── FreeSansBold9pt7b.h │ │ ├── FreeSansBoldOblique12pt7b.h │ │ ├── FreeSansBoldOblique18pt7b.h │ │ ├── FreeSansBoldOblique24pt7b.h │ │ ├── FreeSansBoldOblique9pt7b.h │ │ ├── FreeSansOblique12pt7b.h │ │ ├── FreeSansOblique18pt7b.h │ │ ├── FreeSansOblique24pt7b.h │ │ ├── FreeSansOblique9pt7b.h │ │ ├── FreeSerif12pt7b.h │ │ ├── FreeSerif18pt7b.h │ │ ├── FreeSerif24pt7b.h │ │ ├── FreeSerif9pt7b.h │ │ ├── FreeSerifBold12pt7b.h │ │ ├── FreeSerifBold18pt7b.h │ │ ├── FreeSerifBold24pt7b.h │ │ ├── FreeSerifBold9pt7b.h │ │ ├── FreeSerifBoldItalic12pt7b.h │ │ ├── FreeSerifBoldItalic18pt7b.h │ │ ├── FreeSerifBoldItalic24pt7b.h │ │ ├── FreeSerifBoldItalic9pt7b.h │ │ ├── FreeSerifItalic12pt7b.h │ │ ├── FreeSerifItalic18pt7b.h │ │ ├── FreeSerifItalic24pt7b.h │ │ ├── FreeSerifItalic9pt7b.h │ │ ├── Org_01.h │ │ ├── Picopixel.h │ │ ├── Tiny3x3a2pt7b │ │ └── TomThumb.h │ ├── README.md │ ├── fontconvert │ │ ├── Makefile │ │ ├── fontconvert.c │ │ ├── fontconvert_win.md │ │ └── makefonts.sh │ ├── gfxfont.h │ ├── glcdfont.c │ ├── library.properties │ └── license.txt ├── Adafruit_ST7789 │ ├── Adafruit_ST7789.cpp │ └── Adafruit_ST7789.h ├── ButtonEvent │ ├── ButtonEvent.cpp │ └── ButtonEvent.h ├── DigitalFilter │ ├── DigitalFilter.h │ └── examples │ │ └── adc_filter.cpp ├── EEPROM │ ├── EEPROM.cpp │ └── EEPROM.h ├── EEPROM_File │ ├── EEPROM_File.cpp │ └── EEPROM_File.h ├── I2Cdev │ ├── I2Cdev.cpp │ ├── I2Cdev.h │ ├── keywords.txt │ └── library.json ├── MPU6050 │ ├── Examples │ │ ├── MPU6050_DMP6 │ │ │ ├── MPU6050_DMP6.ino │ │ │ └── Processing │ │ │ │ └── MPUTeapot.pde │ │ └── MPU6050_raw │ │ │ └── MPU6050_raw.ino │ ├── MPU6050.cpp │ ├── MPU6050.h │ ├── MPU6050_6Axis_MotionApps20.h │ ├── MPU6050_9Axis_MotionApps41.h │ └── helper_3dmath.h ├── MillisTaskManager │ ├── MillisTaskManager.cpp │ └── MillisTaskManager.h ├── PageManager │ ├── PageManager.cpp │ └── PageManager.h ├── SoftSerial │ ├── SoftSerial.cpp │ └── SoftSerial.h ├── Time │ ├── DateStrings.cpp │ ├── Readme.txt │ ├── Time.cpp │ ├── Time.h │ ├── TimeLib.h │ ├── examples │ │ ├── Processing │ │ │ └── SyncArduinoClock │ │ │ │ ├── SyncArduinoClock.pde │ │ │ │ └── readme.txt │ │ ├── TimeArduinoDue │ │ │ └── TimeArduinoDue.ino │ │ ├── TimeGPS │ │ │ └── TimeGPS.ino │ │ ├── TimeNTP │ │ │ └── TimeNTP.ino │ │ ├── TimeNTP_ESP8266WiFi │ │ │ └── TimeNTP_ESP8266WiFi.ino │ │ ├── TimeRTC │ │ │ └── TimeRTC.ino │ │ ├── TimeRTCLog │ │ │ └── TimeRTCLog.ino │ │ ├── TimeRTCSet │ │ │ └── TimeRTCSet.ino │ │ ├── TimeSerial │ │ │ └── TimeSerial.ino │ │ ├── TimeSerialDateStrings │ │ │ └── TimeSerialDateStrings.ino │ │ └── TimeTeensy3 │ │ │ └── TimeTeensy3.ino │ ├── keywords.txt │ ├── library.json │ └── library.properties ├── cm_backtrace │ ├── cm_backtrace.c │ ├── cm_backtrace.h │ ├── cmb_cfg.h │ ├── cmb_def.h │ └── fault_handler │ │ ├── gcc │ │ └── cmb_fault.S │ │ ├── iar │ │ └── cmb_fault.S │ │ └── keil │ │ └── cmb_fault.S ├── lv_conf.h ├── lv_ex_conf.h ├── lv_examples │ ├── README.md │ ├── docs │ │ ├── astyle_c │ │ └── astyle_h │ ├── lv_apps │ │ ├── benchmark │ │ │ ├── benchmark.c │ │ │ ├── benchmark.h │ │ │ ├── benchmark.mk │ │ │ ├── benchmark_bg.c │ │ │ └── benchmark_bg.png │ │ ├── demo │ │ │ ├── bubble_pattern.png │ │ │ ├── demo.c │ │ │ ├── demo.h │ │ │ ├── demo.mk │ │ │ └── img_bubble_pattern.c │ │ ├── sysmon │ │ │ ├── sysmon.c │ │ │ ├── sysmon.h │ │ │ └── sysmon.mk │ │ ├── terminal │ │ │ ├── terminal.c │ │ │ ├── terminal.h │ │ │ └── terminal.mk │ │ └── tpcal │ │ │ ├── tpcal.c │ │ │ ├── tpcal.h │ │ │ └── tpcal.mk │ ├── lv_ex_conf_templ.h │ ├── lv_examples.h │ ├── lv_examples.mk │ ├── lv_tests │ │ ├── lv_test.h │ │ ├── lv_test_group │ │ │ ├── lv_test_group.c │ │ │ ├── lv_test_group.h │ │ │ ├── lv_test_group.mk │ │ │ └── lv_test_group_1.png │ │ ├── lv_test_misc │ │ │ ├── lv_test_task.c │ │ │ └── lv_test_task.h │ │ ├── lv_test_obj │ │ │ ├── lv_test_obj.c │ │ │ ├── lv_test_obj.h │ │ │ ├── lv_test_obj.mk │ │ │ └── lv_test_object_1.png │ │ ├── lv_test_objx │ │ │ ├── lv_test_arc │ │ │ │ ├── lv_test_arc.c │ │ │ │ ├── lv_test_arc.h │ │ │ │ ├── lv_test_arc.mk │ │ │ │ └── lv_test_arc_1.png │ │ │ ├── lv_test_bar │ │ │ │ ├── lv_test_bar.c │ │ │ │ ├── lv_test_bar.h │ │ │ │ ├── lv_test_bar.mk │ │ │ │ └── lv_test_bar_1.png │ │ │ ├── lv_test_btn │ │ │ │ ├── lv_test_btn.c │ │ │ │ ├── lv_test_btn.h │ │ │ │ ├── lv_test_btn.mk │ │ │ │ └── lv_test_btn_1.png │ │ │ ├── lv_test_btnm │ │ │ │ ├── lv_test_btnm.c │ │ │ │ ├── lv_test_btnm.h │ │ │ │ ├── lv_test_btnm.mk │ │ │ │ └── lv_test_btnm_1.png │ │ │ ├── lv_test_canvas │ │ │ │ ├── lv_test_canvas.c │ │ │ │ ├── lv_test_canvas.h │ │ │ │ ├── lv_test_canvas.mk │ │ │ │ └── lv_test_canvas_1.png │ │ │ ├── lv_test_cb │ │ │ │ ├── lv_test_cb.c │ │ │ │ ├── lv_test_cb.h │ │ │ │ ├── lv_test_cb.mk │ │ │ │ └── lv_test_cb_1.png │ │ │ ├── lv_test_chart │ │ │ │ ├── lv_test_chart.c │ │ │ │ ├── lv_test_chart.h │ │ │ │ ├── lv_test_chart.mk │ │ │ │ └── lv_test_chart_1.png │ │ │ ├── lv_test_cont │ │ │ │ ├── lv_test_cont.c │ │ │ │ ├── lv_test_cont.h │ │ │ │ ├── lv_test_cont.mk │ │ │ │ ├── lv_test_cont_1.png │ │ │ │ └── lv_test_cont_2.png │ │ │ ├── lv_test_cpicker │ │ │ │ ├── lv_test_cpicker.c │ │ │ │ ├── lv_test_cpicker.h │ │ │ │ └── lv_test_cpicker.mk │ │ │ ├── lv_test_ddlist │ │ │ │ ├── lv_test_ddlist.c │ │ │ │ ├── lv_test_ddlist.h │ │ │ │ ├── lv_test_ddlist.mk │ │ │ │ └── lv_test_ddlist_1.png │ │ │ ├── lv_test_gauge │ │ │ │ ├── lv_test_gauge.c │ │ │ │ ├── lv_test_gauge.h │ │ │ │ ├── lv_test_gauge.mk │ │ │ │ └── lv_test_gauge_1.png │ │ │ ├── lv_test_img │ │ │ │ ├── flower_icon.png │ │ │ │ ├── img_flower_icon.c │ │ │ │ ├── lv_test_img.c │ │ │ │ ├── lv_test_img.h │ │ │ │ ├── lv_test_img.mk │ │ │ │ └── lv_test_img_1.png │ │ │ ├── lv_test_imgbtn │ │ │ │ ├── imgbtn_img_1.c │ │ │ │ ├── imgbtn_img_2.c │ │ │ │ ├── imgbtn_img_3.c │ │ │ │ ├── imgbtn_img_4.c │ │ │ │ ├── lv_test_imgbtn.c │ │ │ │ ├── lv_test_imgbtn.h │ │ │ │ ├── lv_test_imgbtn.mk │ │ │ │ └── lv_test_imgbtn_1.png │ │ │ ├── lv_test_kb │ │ │ │ ├── lv_test_kb.c │ │ │ │ ├── lv_test_kb.h │ │ │ │ ├── lv_test_kb.mk │ │ │ │ ├── lv_test_kb_1.png │ │ │ │ └── lv_test_kb_2.png │ │ │ ├── lv_test_label │ │ │ │ ├── lv_test_label.c │ │ │ │ ├── lv_test_label.h │ │ │ │ ├── lv_test_label.mk │ │ │ │ ├── lv_test_label_1.png │ │ │ │ ├── lv_test_label_2.png │ │ │ │ ├── lv_test_label_3.png │ │ │ │ └── lv_test_label_4.png │ │ │ ├── lv_test_led │ │ │ │ ├── lv_test_led.c │ │ │ │ ├── lv_test_led.h │ │ │ │ ├── lv_test_led.mk │ │ │ │ └── lv_test_led_1.png │ │ │ ├── lv_test_line │ │ │ │ ├── lv_test_line.c │ │ │ │ ├── lv_test_line.h │ │ │ │ ├── lv_test_line.mk │ │ │ │ └── lv_test_line_1.png │ │ │ ├── lv_test_list │ │ │ │ ├── lv_test_list.c │ │ │ │ ├── lv_test_list.h │ │ │ │ ├── lv_test_list.mk │ │ │ │ └── lv_test_list_1.png │ │ │ ├── lv_test_lmeter │ │ │ │ ├── lv_test_lmeter.c │ │ │ │ ├── lv_test_lmeter.h │ │ │ │ ├── lv_test_lmeter.mk │ │ │ │ └── lv_test_lmeter_1.png │ │ │ ├── lv_test_mbox │ │ │ │ ├── lv_test_mbox.c │ │ │ │ ├── lv_test_mbox.h │ │ │ │ ├── lv_test_mbox.mk │ │ │ │ └── lv_test_mbox_1.png │ │ │ ├── lv_test_page │ │ │ │ ├── lv_test_page.c │ │ │ │ ├── lv_test_page.h │ │ │ │ ├── lv_test_page.mk │ │ │ │ ├── lv_test_page_1.png │ │ │ │ └── lv_test_page_2.png │ │ │ ├── lv_test_preload │ │ │ │ ├── lv_test_preload.c │ │ │ │ ├── lv_test_preload.h │ │ │ │ ├── lv_test_preload.mk │ │ │ │ └── lv_test_preload_1.png │ │ │ ├── lv_test_roller │ │ │ │ ├── lv_test_roller.c │ │ │ │ ├── lv_test_roller.h │ │ │ │ ├── lv_test_roller.mk │ │ │ │ └── lv_test_roller_1.png │ │ │ ├── lv_test_slider │ │ │ │ ├── lv_test_slider.c │ │ │ │ ├── lv_test_slider.h │ │ │ │ ├── lv_test_slider.mk │ │ │ │ └── lv_test_slider_1.png │ │ │ ├── lv_test_sw │ │ │ │ ├── lv_test_sw.c │ │ │ │ ├── lv_test_sw.h │ │ │ │ ├── lv_test_sw.mk │ │ │ │ └── lv_test_sw_1.png │ │ │ ├── lv_test_ta │ │ │ │ ├── lv_test_ta.c │ │ │ │ ├── lv_test_ta.h │ │ │ │ ├── lv_test_ta.mk │ │ │ │ ├── lv_test_ta_1.png │ │ │ │ └── lv_test_ta_2.png │ │ │ ├── lv_test_table │ │ │ │ ├── lv_test_table.c │ │ │ │ ├── lv_test_table.h │ │ │ │ ├── lv_test_table.mk │ │ │ │ ├── lv_test_table_1.png │ │ │ │ └── lv_test_table_2.png │ │ │ ├── lv_test_tabview │ │ │ │ ├── lv_test_tabview.c │ │ │ │ ├── lv_test_tabview.h │ │ │ │ ├── lv_test_tabview.mk │ │ │ │ ├── lv_test_tabview_1.png │ │ │ │ └── lv_test_tabview_2.png │ │ │ ├── lv_test_tileview │ │ │ │ ├── lv_test_tileview.c │ │ │ │ ├── lv_test_tileview.h │ │ │ │ ├── lv_test_tileview.mk │ │ │ │ └── lv_test_tileview_1.gif │ │ │ └── lv_test_win │ │ │ │ ├── lv_test_win.c │ │ │ │ ├── lv_test_win.h │ │ │ │ ├── lv_test_win.mk │ │ │ │ └── lv_test_win_1.png │ │ ├── lv_test_stress │ │ │ ├── lv_test_stress.c │ │ │ ├── lv_test_stress.h │ │ │ ├── lv_test_stress.mk │ │ │ └── lv_test_stress.png │ │ └── lv_test_theme │ │ │ ├── lv_test_theme.mk │ │ │ ├── lv_test_theme_1.c │ │ │ ├── lv_test_theme_1.h │ │ │ ├── lv_test_theme_1.png │ │ │ ├── lv_test_theme_2.c │ │ │ ├── lv_test_theme_2.h │ │ │ └── lv_test_theme_2.png │ └── lv_tutorial │ │ ├── 10_keyboard │ │ ├── lv_tutorial_keyboard.c │ │ ├── lv_tutorial_keyboard.h │ │ └── lv_tutorial_keyboard.mk │ │ ├── 1_hello_world │ │ ├── lv_tutorial_hello_world.c │ │ ├── lv_tutorial_hello_world.h │ │ └── lv_tutorial_hello_world.mk │ │ ├── 2_objects │ │ ├── lv_tutorial_objects.c │ │ ├── lv_tutorial_objects.h │ │ └── lv_tutorial_objects.mk │ │ ├── 3_styles │ │ ├── lv_tutorial_styles.c │ │ ├── lv_tutorial_styles.h │ │ └── lv_tutorial_styles.mk │ │ ├── 4_themes │ │ ├── lv_tutorial_themes.c │ │ ├── lv_tutorial_themes.h │ │ └── lv_tutorial_themes.mk │ │ ├── 5_antialiasing │ │ ├── apple.png │ │ ├── apple_chroma.png │ │ ├── apple_icon_alpha.c │ │ ├── apple_icon_chroma.c │ │ ├── lv_tutorial_antialiasing.c │ │ ├── lv_tutorial_antialiasing.h │ │ └── lv_tutorial_antialiasing.mk │ │ ├── 6_images │ │ ├── blue_flower.jpg │ │ ├── blue_flower_16.bin │ │ ├── blue_flower_16_swap.bin │ │ ├── blue_flower_32.bin │ │ ├── blue_flower_8.bin │ │ ├── blue_rose_16.bin │ │ ├── blue_rose_16.png │ │ ├── flower_icon_alpha.bin │ │ ├── flower_icon_alpha.c │ │ ├── flower_icon_alpha.png │ │ ├── lv_tutorial_images.c │ │ ├── lv_tutorial_images.h │ │ ├── lv_tutorial_images.mk │ │ ├── red_flower.c │ │ ├── red_flower.png │ │ ├── red_rose_16.c │ │ └── red_rose_16.png │ │ ├── 7_fonts │ │ ├── arial_20.c │ │ ├── lv_tutorial_fonts.c │ │ ├── lv_tutorial_fonts.h │ │ └── lv_tutorial_fonts.mk │ │ ├── 8_animations │ │ ├── lv_tutorial_animations.c │ │ ├── lv_tutorial_animations.h │ │ └── lv_tutorial_animations.mk │ │ └── 9_responsive │ │ ├── lv_tutorial_responsive.c │ │ ├── lv_tutorial_responsive.h │ │ └── lv_tutorial_responsive.mk └── lvgl │ ├── LICENCE.txt │ ├── README.md │ ├── docs │ ├── CODE_OF_CONDUCT.md │ ├── CODING_STYLE.md │ └── CONTRIBUTING.md │ ├── lv_conf_template.h │ ├── lvgl.h │ ├── lvgl.mk │ ├── porting │ ├── lv_port_disp_template.c │ ├── lv_port_disp_template.h │ ├── lv_port_fs_template.c │ ├── lv_port_fs_template.h │ ├── lv_port_indev_template.c │ └── lv_port_indev_template.h │ ├── scripts │ ├── Doxyfile │ ├── built_in_font │ │ ├── FontAwesome5-Solid+Brands+Regular.woff │ │ ├── Roboto-Regular.woff │ │ └── built_in_font_gen.py │ ├── clang-formatter.sh │ ├── cppcheck_run.sh │ ├── lv_conf_checker.py │ └── release_patch.py │ └── src │ ├── lv_conf_checker.h │ ├── lv_core │ ├── lv_core.mk │ ├── lv_debug.c │ ├── lv_debug.h │ ├── lv_disp.c │ ├── lv_disp.h │ ├── lv_group.c │ ├── lv_group.h │ ├── lv_indev.c │ ├── lv_indev.h │ ├── lv_obj.c │ ├── lv_obj.h │ ├── lv_refr.c │ ├── lv_refr.h │ ├── lv_style.c │ └── lv_style.h │ ├── lv_draw │ ├── lv_draw.c │ ├── lv_draw.h │ ├── lv_draw.mk │ ├── lv_draw_arc.c │ ├── lv_draw_arc.h │ ├── lv_draw_basic.c │ ├── lv_draw_basic.h │ ├── lv_draw_img.c │ ├── lv_draw_img.h │ ├── lv_draw_label.c │ ├── lv_draw_label.h │ ├── lv_draw_line.c │ ├── lv_draw_line.h │ ├── lv_draw_rect.c │ ├── lv_draw_rect.h │ ├── lv_draw_triangle.c │ ├── lv_draw_triangle.h │ ├── lv_img_cache.c │ ├── lv_img_cache.h │ ├── lv_img_decoder.c │ └── lv_img_decoder.h │ ├── lv_font │ ├── lv_font.c │ ├── lv_font.h │ ├── lv_font.mk │ ├── lv_font_fmt_txt.c │ ├── lv_font_fmt_txt.h │ ├── lv_font_roboto_12.c │ ├── lv_font_roboto_12_subpx.c │ ├── lv_font_roboto_16.c │ ├── lv_font_roboto_22.c │ ├── lv_font_roboto_28.c │ ├── lv_font_roboto_28_compressed.c │ ├── lv_font_unscii_8.c │ └── lv_symbol_def.h │ ├── lv_hal │ ├── lv_hal.h │ ├── lv_hal.mk │ ├── lv_hal_disp.c │ ├── lv_hal_disp.h │ ├── lv_hal_indev.c │ ├── lv_hal_indev.h │ ├── lv_hal_tick.c │ └── lv_hal_tick.h │ ├── lv_misc │ ├── lv_anim.c │ ├── lv_anim.h │ ├── lv_area.c │ ├── lv_area.h │ ├── lv_async.c │ ├── lv_async.h │ ├── lv_bidi.c │ ├── lv_bidi.h │ ├── lv_circ.c │ ├── lv_circ.h │ ├── lv_color.c │ ├── lv_color.h │ ├── lv_fs.c │ ├── lv_fs.h │ ├── lv_gc.c │ ├── lv_gc.h │ ├── lv_ll.c │ ├── lv_ll.h │ ├── lv_log.c │ ├── lv_log.h │ ├── lv_math.c │ ├── lv_math.h │ ├── lv_mem.c │ ├── lv_mem.h │ ├── lv_misc.mk │ ├── lv_printf.c │ ├── lv_printf.h │ ├── lv_task.c │ ├── lv_task.h │ ├── lv_templ.c │ ├── lv_templ.h │ ├── lv_txt.c │ ├── lv_txt.h │ ├── lv_types.h │ ├── lv_utils.c │ └── lv_utils.h │ ├── lv_objx │ ├── lv_arc.c │ ├── lv_arc.h │ ├── lv_bar.c │ ├── lv_bar.h │ ├── lv_btn.c │ ├── lv_btn.h │ ├── lv_btnm.c │ ├── lv_btnm.h │ ├── lv_calendar.c │ ├── lv_calendar.h │ ├── lv_canvas.c │ ├── lv_canvas.h │ ├── lv_cb.c │ ├── lv_cb.h │ ├── lv_chart.c │ ├── lv_chart.h │ ├── lv_cont.c │ ├── lv_cont.h │ ├── lv_cpicker.c │ ├── lv_cpicker.h │ ├── lv_ddlist.c │ ├── lv_ddlist.h │ ├── lv_gauge.c │ ├── lv_gauge.h │ ├── lv_img.c │ ├── lv_img.h │ ├── lv_imgbtn.c │ ├── lv_imgbtn.h │ ├── lv_kb.c │ ├── lv_kb.h │ ├── lv_label.c │ ├── lv_label.h │ ├── lv_led.c │ ├── lv_led.h │ ├── lv_line.c │ ├── lv_line.h │ ├── lv_list.c │ ├── lv_list.h │ ├── lv_lmeter.c │ ├── lv_lmeter.h │ ├── lv_mbox.c │ ├── lv_mbox.h │ ├── lv_objx.mk │ ├── lv_objx_templ.c │ ├── lv_objx_templ.h │ ├── lv_page.c │ ├── lv_page.h │ ├── lv_preload.c │ ├── lv_preload.h │ ├── lv_roller.c │ ├── lv_roller.h │ ├── lv_slider.c │ ├── lv_slider.h │ ├── lv_spinbox.c │ ├── lv_spinbox.h │ ├── lv_sw.c │ ├── lv_sw.h │ ├── lv_ta.c │ ├── lv_ta.h │ ├── lv_table.c │ ├── lv_table.h │ ├── lv_tabview.c │ ├── lv_tabview.h │ ├── lv_tileview.c │ ├── lv_tileview.h │ ├── lv_win.c │ └── lv_win.h │ ├── lv_themes │ ├── lv_theme.c │ ├── lv_theme.h │ ├── lv_theme_alien.c │ ├── lv_theme_alien.h │ ├── lv_theme_default.c │ ├── lv_theme_default.h │ ├── lv_theme_material.c │ ├── lv_theme_material.h │ ├── lv_theme_mono.c │ ├── lv_theme_mono.h │ ├── lv_theme_nemo.c │ ├── lv_theme_nemo.h │ ├── lv_theme_night.c │ ├── lv_theme_night.h │ ├── lv_theme_templ.c │ ├── lv_theme_templ.h │ ├── lv_theme_zen.c │ ├── lv_theme_zen.h │ └── lv_themes.mk │ └── lv_version.h ├── MDK-ARM ├── Listings │ └── startup_stm32f411xe.lst ├── Objects │ ├── WatchX.hex │ └── WatchX.lnp ├── RTE │ ├── _Project │ │ └── RTE_Components.h │ └── _WatchX │ │ └── RTE_Components.h ├── WatchX.uvoptx └── WatchX.uvprojx ├── README.md └── WatchX ├── BSP ├── BSP.h ├── BSP_BMP.cpp ├── BSP_Backlight.cpp ├── BSP_Button.cpp ├── BSP_IMU.cpp ├── BSP_LED.cpp └── BSP_Power.cpp ├── Basic ├── CommonMacro.h ├── SysConfig.h └── main.cpp ├── GUI ├── DisplayAppWin.cpp ├── DisplayBasic.cpp ├── DisplayError.cpp ├── DisplayPrivate.h ├── Font │ ├── EUROSTARBLACKEXTENDED.TTF │ ├── EuroStar_26.c │ ├── EuroStar_60.c │ ├── HANDGOTN.TTF │ ├── HandGotn_14.c │ ├── HandGotn_20.c │ ├── HandGotn_26.c │ ├── Morganite-Bold.ttf │ ├── Morganite_100.c │ └── Morganite_36.c ├── IMG │ ├── ImgBg.c │ ├── ImgButterfly.c │ ├── ImgInfo.c │ ├── ImgLight.c │ ├── ImgMountain.c │ ├── ImgPage1.c │ ├── ImgPressure.c │ ├── ImgRun.c │ ├── ImgSettings.c │ ├── ImgShadowDown.c │ ├── ImgShadowUp.c │ ├── ImgStopWatch.c │ ├── ImgTemperature.c │ ├── ImgTimeCfg.c │ ├── ImgTrigger.c │ ├── ImgVIFEXTech.c │ ├── ImgWatchX.c │ └── PNG │ │ ├── 2{TC96G9ARG$OZNXM8_0014.png │ │ ├── ALTpage-01.png │ │ ├── WatchX资源 2.png │ │ ├── ZBPHJGK(RJNHVRD%9}R%T83.png │ │ ├── ]4$%W{M8_(@`]}2N2@3%U~7.png │ │ ├── background1-01.png │ │ ├── file.png │ │ ├── info.png │ │ ├── light.png │ │ ├── mainmenu-01.png │ │ ├── mountain.png │ │ ├── page1-02-01.png │ │ ├── pressure.png │ │ ├── run.png │ │ ├── shadow2.png │ │ ├── shadow_down.png │ │ ├── shadow_up.png │ │ ├── stop_watch.png │ │ ├── temp.png │ │ ├── theme.png │ │ ├── time_cfg.png │ │ ├── trigger.png │ │ ├── vifextech.png │ │ ├── warnning.png │ │ ├── watch1.png │ │ └── watch2.png ├── Page │ ├── Page_About.cpp │ ├── Page_Altitude.cpp │ ├── Page_BacklightCfg.cpp │ ├── Page_DialPlate.cpp │ ├── Page_EXAMPLE.cpp │ ├── Page_MainMenu.cpp │ ├── Page_StopWatch.cpp │ └── Page_TimeCfg.cpp ├── lv_ext_func.cpp └── lv_port_disp.cpp └── Game ├── Arduboy ├── Arduboy.cpp ├── Arduboy.h ├── ab_logo.c ├── audio │ ├── audio.cpp │ └── audio.h ├── core │ ├── core.cpp │ └── core.h └── glcdfont.c ├── Arduboy2 ├── Arduboy2.cpp ├── Arduboy2.h ├── Arduboy2Audio.cpp ├── Arduboy2Audio.h ├── Arduboy2Beep.cpp ├── Arduboy2Beep.h ├── Arduboy2Core.cpp ├── Arduboy2Core.h ├── Sprites.cpp ├── Sprites.h ├── SpritesB.cpp ├── SpritesB.h ├── SpritesCommon.h ├── ab_logo.c └── glcdfont.c ├── GameDisp.cpp ├── GameDisp.h ├── GameManager.cpp ├── GamePrivate.h ├── Page_Game.cpp ├── Page_GameSelect.cpp └── chribocchi ├── MyArduboy.cpp ├── MyArduboy.h ├── chribocchi.cpp ├── common.h ├── game.cpp ├── logo.cpp └── title.cpp /Hardware/Watch Max(改进版)/Watch Max.PcbDoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/Hardware/Watch Max(改进版)/Watch Max.PcbDoc -------------------------------------------------------------------------------- /Hardware/Watch Max(改进版)/Watch Max.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/Hardware/Watch Max(改进版)/Watch Max.pdf -------------------------------------------------------------------------------- /Hardware/Watch Max(改进版)/WatchX.SchDoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/Hardware/Watch Max(改进版)/WatchX.SchDoc -------------------------------------------------------------------------------- /Hardware/WatchX(原版)/WatchX.PcbDoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/Hardware/WatchX(原版)/WatchX.PcbDoc -------------------------------------------------------------------------------- /Hardware/WatchX(原版)/WatchX.SchDoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/Hardware/WatchX(原版)/WatchX.SchDoc -------------------------------------------------------------------------------- /Hardware/WatchX(原版)/WatchX.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/Hardware/WatchX(原版)/WatchX.pdf -------------------------------------------------------------------------------- /Hardware/先读我.txt: -------------------------------------------------------------------------------- 1 | * 1.图中的“STM32F401CCU6”单片机需要替换为“STM32F411CEU6”,否则FLASH和RAM都不够,程序无法下载。 2 | 3 | * 2.由于使用的元件大部分是贴片封装,需要使用热风枪进行焊接,不建议新手尝试DIY。 4 | 5 | * 3.图中所使用的屏幕的购买链接:https://item.taobao.com/item.htm?spm=a1z09.2.0.0.67002e8d5roBr8&id=586409078629&_u=61kp185nf381 6 | 中景园1.14寸lcd 液晶屏 显示屏tft lcd彩色液晶高清ips st7789 7 | 选择“焊接式裸屏 不带板” 8 | 9 | * 4.程序下载可以自制一根SWD接口转USB的线,使用ST-Link或者其他支持SWD下载方式的调试器进行下载,接法是 10 | +------------------+ +------------+ 11 | | SWCLK | <--> | D- | 12 | | (调试器) SWDIO | <--> | D+ (手表) | 13 | | GND | <--> | GND | 14 | +------------------+ +------------+ 15 | 下载时要将手表电源打开。 16 | 17 | * 5.原版PCB低功耗部分暂时未优化,长时间不用需要将开关关闭。 18 | 19 | * 6.感谢“日天电子工作室”提供的改进版PCB,省去手动开关,优化了电源部分以提供极长的续航时间,推荐打样这一款PCB,程序通用。 -------------------------------------------------------------------------------- /Images/About.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/Images/About.jpg -------------------------------------------------------------------------------- /Images/Altitude.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/Images/Altitude.jpg -------------------------------------------------------------------------------- /Images/Brightness.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/Images/Brightness.jpg -------------------------------------------------------------------------------- /Images/Main.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/Images/Main.jpg -------------------------------------------------------------------------------- /Images/README.md: -------------------------------------------------------------------------------- 1 | # 成品展示 2 | > 1.主页面 3 | 4 | ![image](https://github.com/FASTSHIFT/WatchX/blob/master/Images/Main.jpg) 5 | 6 | > 2.功能页面 7 | 8 | ![image](https://github.com/FASTSHIFT/WatchX/blob/master/Images/Settings.jpg) 9 | 10 | > 3.秒表 11 | 12 | ![image](https://github.com/FASTSHIFT/WatchX/blob/master/Images/StopWatch.jpg) 13 | 14 | > 4.高度 15 | 16 | ![image](https://github.com/FASTSHIFT/WatchX/blob/master/Images/Altitude.jpg) 17 | 18 | > 5.亮度 19 | 20 | ![image](https://github.com/FASTSHIFT/WatchX/blob/master/Images/Brightness.jpg) 21 | 22 | > 6.时间设置 23 | 24 | ![image](https://github.com/FASTSHIFT/WatchX/blob/master/Images/TimeConfig.jpg) 25 | 26 | > 7.关于 27 | 28 | ![image](https://github.com/FASTSHIFT/WatchX/blob/master/Images/About.jpg) 29 | -------------------------------------------------------------------------------- /Images/Settings.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/Images/Settings.jpg -------------------------------------------------------------------------------- /Images/StopWatch.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/Images/StopWatch.jpg -------------------------------------------------------------------------------- /Images/TimeConfig.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/Images/TimeConfig.jpg -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # WatchX 2 | > 开源智能手表, 高质量流畅(60FPS+)的动画效果, 易于扩展的系统框架. 3 | 4 | 演示视频:https://www.bilibili.com/video/BV1AK4y1b7Xd 5 | 6 | ## UI框架 7 | > [LittlevGL V6.1.2](https://github.com/lvgl/lvgl/releases/tag/v6.1.2) 8 | 9 | ## 硬件配置 10 | * 1.主控: STM32F411CEU6 (主频:100MHz RAM:128KB ROM:512KB) 11 | * 2.屏幕: ST7789 IPS 1.14inch SPI接口 135x240分辨率 100Hz刷新率 12 | * 3.输入设备: 按键x3 13 | * 4.RTC:MCU内置RTC时钟 14 | * 5.加速度计:MPU6050 15 | * 6.气压计:BMP180 16 | * 7.电源管理:TP4056 + TPS63070 17 | ## 功能 18 | * 1.时间显示 19 | * 2.温度显示 20 | * 3.气压显示 21 | * 4.海拔显示 22 | * 5.秒表 23 | * 6.亮度控制 24 | * 7.时间设置 25 | * 8.[Arduboy](https://github.com/Arduboy/Arduboy)/[Arduboy2](https://github.com/MLXXXp/Arduboy2) Game System 26 | * 9.自动关机(5-300sec) 27 | * 10.待续... 28 | 29 | ## 成品展示 30 | ![image](https://github.com/FASTSHIFT/WatchX/blob/master/Images/Main.jpg) 31 | 32 | [更多>>](https://github.com/FASTSHIFT/WatchX/blob/master/Images) 33 | -------------------------------------------------------------------------------- /WatchX/ArduinoAPI/Printable.h: -------------------------------------------------------------------------------- 1 | /* 2 | Printable.h - Interface class that allows printing of complex types 3 | Copyright (c) 2011 Adrian McEwen. All right reserved. 4 | 5 | This library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | This library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with this library; if not, write to the Free Software 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 | */ 19 | 20 | #ifndef Printable_h 21 | #define Printable_h 22 | 23 | #include 24 | 25 | class Print; 26 | 27 | /** The Printable class provides a way for new classes to allow themselves to be printed. 28 | By deriving from Printable and implementing the printTo method, it will then be possible 29 | for users to print out instances of this class by passing them into the usual 30 | Print::print and Print::println methods. 31 | */ 32 | 33 | class Printable 34 | { 35 | public: 36 | virtual size_t printTo(Print& p) const = 0; 37 | }; 38 | 39 | #endif 40 | 41 | -------------------------------------------------------------------------------- /WatchX/ArduinoAPI/SPI.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/ArduinoAPI/SPI.cpp -------------------------------------------------------------------------------- /WatchX/ArduinoAPI/WMath.h: -------------------------------------------------------------------------------- 1 | #ifndef __WMATH_H 2 | #define __WMATH_H 3 | 4 | extern "C" { 5 | #include "stdlib.h" 6 | } 7 | 8 | void randomSeed(unsigned long seed); 9 | long random(long howbig); 10 | long random(long howsmall, long howbig); 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /WatchX/ArduinoAPI/WProgram.h: -------------------------------------------------------------------------------- 1 | #ifndef __WPROGRAM_H 2 | #define __WPROGRAM_H 3 | 4 | #include "Arduino.h" 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /WatchX/ArduinoAPI/avr/dtostrf.c: -------------------------------------------------------------------------------- 1 | /* 2 | dtostrf - Emulation for dtostrf function from avr-libc 3 | Copyright (c) 2013 Arduino. All rights reserved. 4 | Written by Cristian Maglie 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #include 22 | 23 | char *dtostrf (double val, signed char width, unsigned char prec, char *sout) { 24 | char fmt[20]; 25 | sprintf(fmt, "%%%d.%df", width, prec); 26 | sprintf(sout, fmt, val); 27 | return sout; 28 | } 29 | 30 | -------------------------------------------------------------------------------- /WatchX/ArduinoAPI/avr/dtostrf.h: -------------------------------------------------------------------------------- 1 | /* 2 | dtostrf - Emulation for dtostrf function from avr-libc 3 | Copyright (c) 2013 Arduino. All rights reserved. 4 | Written by Cristian Maglie 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #ifdef __cplusplus 22 | extern "C" { 23 | #endif 24 | 25 | char *dtostrf (double val, signed char width, unsigned char prec, char *sout); 26 | 27 | #ifdef __cplusplus 28 | } 29 | #endif 30 | -------------------------------------------------------------------------------- /WatchX/ArduinoAPI/avr/interrupt.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/ArduinoAPI/avr/interrupt.h -------------------------------------------------------------------------------- /WatchX/ArduinoAPI/avr/pgmspace.h: -------------------------------------------------------------------------------- 1 | #ifndef __PGMSPACE_H_ 2 | #define __PGMSPACE_H_ 1 3 | 4 | #include 5 | 6 | #define PROGMEM 7 | #define PGM_P const char * 8 | #define PSTR(str) (str) 9 | 10 | #define _SFR_BYTE(n) (n) 11 | 12 | typedef void prog_void; 13 | typedef char prog_char; 14 | typedef unsigned char prog_uchar; 15 | typedef int8_t prog_int8_t; 16 | typedef uint8_t prog_uint8_t; 17 | typedef int16_t prog_int16_t; 18 | typedef uint16_t prog_uint16_t; 19 | typedef int32_t prog_int32_t; 20 | typedef uint32_t prog_uint32_t; 21 | 22 | #define memcpy_P(dest, src, num) memcpy((dest), (src), (num)) 23 | #define strcpy_P(dest, src) strcpy((dest), (src)) 24 | #define strcat_P(dest, src) strcat((dest), (src)) 25 | #define strcmp_P(a, b) strcmp((a), (b)) 26 | #define strstr_P(a, b) strstr((a), (b)) 27 | #define strlen_P(a) strlen((a)) 28 | #define sprintf_P(s, f, ...) sprintf((s), (f), __VA_ARGS__) 29 | 30 | #define pgm_read_byte(addr) (*(const unsigned char *)(addr)) 31 | #define pgm_read_word(addr) (*(const unsigned short *)(addr)) 32 | #define pgm_read_dword(addr) (*(const unsigned long *)(addr)) 33 | #define pgm_read_float(addr) (*(const float *)(addr)) 34 | 35 | #define pgm_read_byte_near(addr) pgm_read_byte(addr) 36 | #define pgm_read_word_near(addr) pgm_read_word(addr) 37 | #define pgm_read_dword_near(addr) pgm_read_dword(addr) 38 | #define pgm_read_float_near(addr) pgm_read_float(addr) 39 | #define pgm_read_byte_far(addr) pgm_read_byte(addr) 40 | #define pgm_read_word_far(addr) pgm_read_word(addr) 41 | #define pgm_read_dword_far(addr) pgm_read_dword(addr) 42 | #define pgm_read_float_far(addr) pgm_read_float(addr) 43 | 44 | #endif 45 | -------------------------------------------------------------------------------- /WatchX/ArduinoAPI/dtostrf.c: -------------------------------------------------------------------------------- 1 | /* 2 | dtostrf - Emulation for dtostrf function from avr-libc 3 | Copyright (c) 2013 Arduino. All rights reserved. 4 | Written by Cristian Maglie 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #include "dtostrf.h" 22 | 23 | char *dtostrf (double val, signed char width, unsigned char prec, char *sout) { 24 | char fmt[20]; 25 | sprintf(fmt, "%%%d.%df", width, prec); 26 | sprintf(sout, fmt, val); 27 | return sout; 28 | } 29 | 30 | -------------------------------------------------------------------------------- /WatchX/ArduinoAPI/dtostrf.h: -------------------------------------------------------------------------------- 1 | /* 2 | dtostrf - Emulation for dtostrf function from avr-libc 3 | Copyright (c) 2013 Arduino. All rights reserved. 4 | Written by Cristian Maglie 5 | 6 | This library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | This library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with this library; if not, write to the Free Software 18 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #ifndef __DTOSTRF_H 22 | #define __DTOSTRF_H 23 | #include "stdio.h" 24 | #ifdef __cplusplus 25 | extern "C" { 26 | #endif 27 | 28 | char *dtostrf (double val, signed char width, unsigned char prec, char *sout); 29 | 30 | #ifdef __cplusplus 31 | } 32 | #endif 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /WatchX/ArduinoAPI/itoa.h: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2011 Arduino. All right reserved. 3 | 4 | This library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | This library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 | See the GNU Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with this library; if not, write to the Free Software 16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 | */ 18 | 19 | #ifndef _ITOA_ 20 | #define _ITOA_ 21 | 22 | #ifdef __cplusplus 23 | extern "C"{ 24 | #endif // __cplusplus 25 | 26 | #if 0 27 | 28 | extern void itoa( int n, char s[] ) ; 29 | 30 | #else 31 | 32 | extern char* itoa( int value, char *string, int radix ) ; 33 | extern char* ltoa( long value, char *string, int radix ) ; 34 | #if __GNUC__ > 4 || (__GNUC__ == 4 && (__GNUC_MINOR__ > 9 || \ 35 | (__GNUC_MINOR__ == 9 && __GNUC_PATCHLEVEL__ > 2))) 36 | extern char* utoa( unsigned value, char *string, int radix ) ; 37 | #else 38 | extern char* utoa( unsigned int value, char *string, int radix ) ; 39 | #endif 40 | extern char* ultoa( unsigned long value, char *string, int radix ) ; 41 | #endif /* 0 */ 42 | 43 | #ifdef __cplusplus 44 | } // extern "C" 45 | #endif // __cplusplus 46 | 47 | #endif // _ITOA_ 48 | -------------------------------------------------------------------------------- /WatchX/Core/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Core/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h -------------------------------------------------------------------------------- /WatchX/Core/CMSIS/Device/ST/STM32F4xx/Source/Templates/system_stm32f4xx.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Core/CMSIS/Device/ST/STM32F4xx/Source/Templates/system_stm32f4xx.c -------------------------------------------------------------------------------- /WatchX/Core/CMSIS/Flash/STM32F401xx_OPT.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Core/CMSIS/Flash/STM32F401xx_OPT.FLM -------------------------------------------------------------------------------- /WatchX/Core/CMSIS/Flash/STM32F40xxx_41xxx_OPT.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Core/CMSIS/Flash/STM32F40xxx_41xxx_OPT.FLM -------------------------------------------------------------------------------- /WatchX/Core/CMSIS/Flash/STM32F410xx_412xx_OPT.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Core/CMSIS/Flash/STM32F410xx_412xx_OPT.FLM -------------------------------------------------------------------------------- /WatchX/Core/CMSIS/Flash/STM32F411xx_OPT.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Core/CMSIS/Flash/STM32F411xx_OPT.FLM -------------------------------------------------------------------------------- /WatchX/Core/CMSIS/Flash/STM32F413xx_423xx_OPT.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Core/CMSIS/Flash/STM32F413xx_423xx_OPT.FLM -------------------------------------------------------------------------------- /WatchX/Core/CMSIS/Flash/STM32F42xxx_43xxx_OPT.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Core/CMSIS/Flash/STM32F42xxx_43xxx_OPT.FLM -------------------------------------------------------------------------------- /WatchX/Core/CMSIS/Flash/STM32F446RevA_Quad_SPI.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Core/CMSIS/Flash/STM32F446RevA_Quad_SPI.FLM -------------------------------------------------------------------------------- /WatchX/Core/CMSIS/Flash/STM32F446_Quad_SPI.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Core/CMSIS/Flash/STM32F446_Quad_SPI.FLM -------------------------------------------------------------------------------- /WatchX/Core/CMSIS/Flash/STM32F446xx_OPT.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Core/CMSIS/Flash/STM32F446xx_OPT.FLM -------------------------------------------------------------------------------- /WatchX/Core/CMSIS/Flash/STM32F469_Quad_SPI.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Core/CMSIS/Flash/STM32F469_Quad_SPI.FLM -------------------------------------------------------------------------------- /WatchX/Core/CMSIS/Flash/STM32F469xx_479xx_OPT.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Core/CMSIS/Flash/STM32F469xx_479xx_OPT.FLM -------------------------------------------------------------------------------- /WatchX/Core/CMSIS/Flash/STM32F4xx/Target.lin: -------------------------------------------------------------------------------- 1 | ; Linker Control File (scatter-loading) 2 | ; 3 | 4 | PRG 0 PI ; Programming Functions 5 | { 6 | PrgCode +0 ; Code 7 | { 8 | * (+RO) 9 | } 10 | PrgData +0 ; Data 11 | { 12 | * (+RW,+ZI) 13 | } 14 | } 15 | 16 | DSCR +0 ; Device Description 17 | { 18 | DevDscr +0 19 | { 20 | FlashDev.o 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /WatchX/Core/CMSIS/Flash/STM32F4xx_1024.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Core/CMSIS/Flash/STM32F4xx_1024.FLM -------------------------------------------------------------------------------- /WatchX/Core/CMSIS/Flash/STM32F4xx_1024dual.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Core/CMSIS/Flash/STM32F4xx_1024dual.FLM -------------------------------------------------------------------------------- /WatchX/Core/CMSIS/Flash/STM32F4xx_128.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Core/CMSIS/Flash/STM32F4xx_128.FLM -------------------------------------------------------------------------------- /WatchX/Core/CMSIS/Flash/STM32F4xx_1536.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Core/CMSIS/Flash/STM32F4xx_1536.FLM -------------------------------------------------------------------------------- /WatchX/Core/CMSIS/Flash/STM32F4xx_2048.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Core/CMSIS/Flash/STM32F4xx_2048.FLM -------------------------------------------------------------------------------- /WatchX/Core/CMSIS/Flash/STM32F4xx_256.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Core/CMSIS/Flash/STM32F4xx_256.FLM -------------------------------------------------------------------------------- /WatchX/Core/CMSIS/Flash/STM32F4xx_384.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Core/CMSIS/Flash/STM32F4xx_384.FLM -------------------------------------------------------------------------------- /WatchX/Core/CMSIS/Flash/STM32F4xx_512.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Core/CMSIS/Flash/STM32F4xx_512.FLM -------------------------------------------------------------------------------- /WatchX/Core/CMSIS/Flash/STM32F4xx_OTP.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Core/CMSIS/Flash/STM32F4xx_OTP.FLM -------------------------------------------------------------------------------- /WatchX/Core/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_qspi.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Core/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_qspi.c -------------------------------------------------------------------------------- /WatchX/Core/delay.h: -------------------------------------------------------------------------------- 1 | /* 2 | * MIT License 3 | * Copyright (c) 2019 _VIFEXTech 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in all 13 | * copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | * SOFTWARE. 22 | */ 23 | #ifndef __DELAY_H 24 | #define __DELAY_H 25 | 26 | #ifdef __cplusplus 27 | extern "C" { 28 | #endif 29 | 30 | #include "mcu_type.h" 31 | 32 | void Delay_Init(void); 33 | uint32_t millis(void); 34 | uint32_t micros(void); 35 | void delay_ms(uint32_t ms); 36 | void delay_us(uint32_t us); 37 | 38 | #ifdef __cplusplus 39 | } 40 | #endif 41 | 42 | #endif /* __DELAY_H */ 43 | -------------------------------------------------------------------------------- /WatchX/Core/flash.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Core/flash.c -------------------------------------------------------------------------------- /WatchX/Core/flash.h: -------------------------------------------------------------------------------- 1 | #ifndef __FLASH_H 2 | #define __FLASH_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #include "mcu_type.h" 9 | 10 | uint8_t Flash_WriteHalfWord(uint16_t Addr, uint16_t Data); 11 | uint16_t Flash_ReadHalfWord(uint16_t Addr); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /WatchX/Core/mcu_type.h: -------------------------------------------------------------------------------- 1 | #ifndef __MCU_TYPE 2 | #define __MCU_TYPE 3 | 4 | #include "stm32f4xx.h" 5 | #include "stm32f4xx_conf.h" 6 | 7 | #define __STM32F4__ 8 | #define F_CPU SystemCoreClock 9 | #define CYCLES_PER_MICROSECOND (F_CPU / 1000000U) 10 | 11 | #define __KEILDUINO__ 290 12 | 13 | #define GPIO_HIGH(GPIOX,GPIO_PIN_X) (GPIOX->BSRRL = GPIO_PIN_X) 14 | #define GPIO_LOW(GPIOX,GPIO_PIN_X) (GPIOX->BSRRH = GPIO_PIN_X) 15 | #define GPIO_READ(GPIOX,GPIO_PIN_X) ((GPIOX->IDR & GPIO_PIN_X)!=0) 16 | #define GPIO_TOGGLE(GPIOX,GPIO_PIN_X) (GPIOX->ODR ^= GPIO_PIN_X) 17 | 18 | #define digitalWrite_HIGH(Pin) (GPIO_HIGH (PIN_MAP[Pin].GPIOx,PIN_MAP[Pin].GPIO_Pin_x)) 19 | #define digitalWrite_LOW(Pin) (GPIO_LOW (PIN_MAP[Pin].GPIOx,PIN_MAP[Pin].GPIO_Pin_x)) 20 | #define digitalRead_FAST(Pin) (GPIO_READ (PIN_MAP[Pin].GPIOx,PIN_MAP[Pin].GPIO_Pin_x)) 21 | #define togglePin(Pin) (GPIO_TOGGLE(PIN_MAP[Pin].GPIOx,PIN_MAP[Pin].GPIO_Pin_x)) 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /WatchX/Core/rng.c: -------------------------------------------------------------------------------- 1 | #include "rng.h" 2 | 3 | static void RNG_Init(void) 4 | { 5 | RCC_AHB2PeriphClockCmd(RCC_AHB2Periph_RNG, ENABLE); 6 | RNG_Cmd(ENABLE); 7 | } 8 | 9 | uint32_t RNG_GetRandNum(void) 10 | { 11 | static uint8_t isInit = 0; 12 | uint32_t rand; 13 | 14 | if(!isInit) 15 | { 16 | RNG_Init(); 17 | isInit = 1; 18 | } 19 | 20 | while(!RNG_GetFlagStatus(RNG_FLAG_DRDY)); 21 | rand = RNG_GetRandomNumber(); 22 | return rand; 23 | } 24 | -------------------------------------------------------------------------------- /WatchX/Core/rng.h: -------------------------------------------------------------------------------- 1 | #ifndef __RNG_H 2 | #define __RNG_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #include "mcu_type.h" 9 | 10 | uint32_t RNG_GetRandNum(void); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /WatchX/Core/rtc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Core/rtc.c -------------------------------------------------------------------------------- /WatchX/Core/rtc.h: -------------------------------------------------------------------------------- 1 | #ifndef __RTC_H 2 | #define __RTC_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #include "mcu_type.h" 9 | 10 | void RTCx_Init(void); 11 | ErrorStatus RTCx_SetTime(uint8_t hour,uint8_t min,uint8_t sec,uint8_t ampm); 12 | ErrorStatus RTCx_SetDate(uint8_t year,uint8_t month,uint8_t date,uint8_t week); 13 | void RTCx_SetAlarmA(uint8_t week,uint8_t hour,uint8_t min,uint8_t sec); 14 | void RTCx_SetWakeUp(uint32_t wksel,uint16_t cnt); 15 | void RTCx_GetWeekDay(RTC_DateTypeDef *RTC_DateStruct); 16 | 17 | #ifdef __cplusplus 18 | } 19 | #endif 20 | 21 | #endif /* __RTC_H */ 22 | -------------------------------------------------------------------------------- /WatchX/Core/system_stm32f4xx.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Core/system_stm32f4xx.c -------------------------------------------------------------------------------- /WatchX/KeilClear.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/KeilClear.bat -------------------------------------------------------------------------------- /WatchX/Libraries/Adafruit_GFX_Library/fontconvert/Makefile: -------------------------------------------------------------------------------- 1 | all: fontconvert 2 | 3 | CC = gcc 4 | CFLAGS = -Wall -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I/usr/include 5 | LIBS = -lfreetype 6 | 7 | fontconvert: fontconvert.c 8 | $(CC) $(CFLAGS) $< $(LIBS) -o $@ 9 | strip $@ 10 | 11 | clean: 12 | rm -f fontconvert 13 | -------------------------------------------------------------------------------- /WatchX/Libraries/Adafruit_GFX_Library/fontconvert/makefonts.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Ugly little Bash script, generates a set of .h files for GFX using 4 | # GNU FreeFont sources. There are three fonts: 'Mono' (Courier-like), 5 | # 'Sans' (Helvetica-like) and 'Serif' (Times-like); four styles: regular, 6 | # bold, oblique or italic, and bold+oblique or bold+italic; and four 7 | # sizes: 9, 12, 18 and 24 point. No real error checking or anything, 8 | # this just powers through all the combinations, calling the fontconvert 9 | # utility and redirecting the output to a .h file for each combo. 10 | 11 | # Adafruit_GFX repository does not include the source outline fonts 12 | # (huge zipfile, different license) but they're easily acquired: 13 | # http://savannah.gnu.org/projects/freefont/ 14 | 15 | convert=./fontconvert 16 | inpath=~/Desktop/freefont/ 17 | outpath=../Fonts/ 18 | fonts=(FreeMono FreeSans FreeSerif) 19 | styles=("" Bold Italic BoldItalic Oblique BoldOblique) 20 | sizes=(9 12 18 24) 21 | 22 | for f in ${fonts[*]} 23 | do 24 | for index in ${!styles[*]} 25 | do 26 | st=${styles[$index]} 27 | for si in ${sizes[*]} 28 | do 29 | infile=$inpath$f$st".ttf" 30 | if [ -f $infile ] # Does source combination exist? 31 | then 32 | outfile=$outpath$f$st$si"pt7b.h" 33 | # printf "%s %s %s > %s\n" $convert $infile $si $outfile 34 | $convert $infile $si > $outfile 35 | fi 36 | done 37 | done 38 | done 39 | -------------------------------------------------------------------------------- /WatchX/Libraries/Adafruit_GFX_Library/gfxfont.h: -------------------------------------------------------------------------------- 1 | // Font structures for newer Adafruit_GFX (1.1 and later). 2 | // Example fonts are included in 'Fonts' directory. 3 | // To use a font in your Arduino sketch, #include the corresponding .h 4 | // file and pass address of GFXfont struct to setFont(). Pass NULL to 5 | // revert to 'classic' fixed-space bitmap font. 6 | 7 | #ifndef _GFXFONT_H_ 8 | #define _GFXFONT_H_ 9 | 10 | typedef struct { // Data stored PER GLYPH 11 | uint16_t bitmapOffset; // Pointer into GFXfont->bitmap 12 | uint8_t width, height; // Bitmap dimensions in pixels 13 | uint8_t xAdvance; // Distance to advance cursor (x axis) 14 | int8_t xOffset, yOffset; // Dist from cursor pos to UL corner 15 | } GFXglyph; 16 | 17 | typedef struct { // Data stored for FONT AS A WHOLE: 18 | uint8_t *bitmap; // Glyph bitmaps, concatenated 19 | GFXglyph *glyph; // Glyph array 20 | uint8_t first, last; // ASCII extents 21 | uint8_t yAdvance; // Newline distance (y axis) 22 | } GFXfont; 23 | 24 | #endif // _GFXFONT_H_ 25 | -------------------------------------------------------------------------------- /WatchX/Libraries/Adafruit_GFX_Library/library.properties: -------------------------------------------------------------------------------- 1 | name=Adafruit GFX Library 2 | version=1.2.3 3 | author=Adafruit 4 | maintainer=Adafruit 5 | sentence=Adafruit GFX graphics core library, this is the 'core' class that all our other graphics libraries derive from. 6 | paragraph=Install this library in addition to the display library for your hardware. 7 | category=Display 8 | url=https://github.com/adafruit/Adafruit-GFX-Library 9 | architectures=* 10 | -------------------------------------------------------------------------------- /WatchX/Libraries/Adafruit_GFX_Library/license.txt: -------------------------------------------------------------------------------- 1 | Software License Agreement (BSD License) 2 | 3 | Copyright (c) 2012 Adafruit Industries. All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions are met: 7 | 8 | - Redistributions of source code must retain the above copyright notice, 9 | this list of conditions and the following disclaimer. 10 | - Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 15 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 18 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 19 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 20 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 21 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 22 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 23 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 24 | POSSIBILITY OF SUCH DAMAGE. 25 | -------------------------------------------------------------------------------- /WatchX/Libraries/DigitalFilter/DigitalFilter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/DigitalFilter/DigitalFilter.h -------------------------------------------------------------------------------- /WatchX/Libraries/DigitalFilter/examples/adc_filter.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/DigitalFilter/examples/adc_filter.cpp -------------------------------------------------------------------------------- /WatchX/Libraries/EEPROM_File/EEPROM_File.cpp: -------------------------------------------------------------------------------- 1 | #include "EEPROM_File.h" 2 | 3 | bool EEPROM_File::begin(const char* dir, const char* fileName, uint32_t size) 4 | { 5 | // if(!SD.exists(dir)) 6 | // { 7 | // SD.mkdir(dir); 8 | // } 9 | // String path = String(dir) + "/" + String(fileName); 10 | // bool retval = file.open(path.c_str(), O_RDWR | O_CREAT); 11 | // if(retval) 12 | // { 13 | // while(file.fileSize() < size) 14 | // { 15 | // file.write((uint8_t)0); 16 | // } 17 | // } 18 | // 19 | // return retval; 20 | return false; 21 | } 22 | 23 | void EEPROM_File::end() 24 | { 25 | // file.close(); 26 | } 27 | 28 | uint8_t EEPROM_File::read(uint32_t idx) 29 | { 30 | // uint8_t retval = 0; 31 | 32 | // if(file.isOpen() && idx < file.fileSize()) 33 | // { 34 | // file.seekSet(idx); 35 | // retval = file.read(); 36 | // } 37 | 38 | return 0; 39 | } 40 | 41 | void EEPROM_File::write(uint32_t idx, uint8_t val) 42 | { 43 | // if(file.isOpen() && idx < file.fileSize()) 44 | // { 45 | // file.seekSet(idx); 46 | // file.write(val); 47 | // } 48 | } 49 | 50 | void EEPROM_File::update(uint32_t idx, uint8_t val) 51 | { 52 | // if(read(idx) != val) 53 | // { 54 | // write(idx, val); 55 | // } 56 | } 57 | -------------------------------------------------------------------------------- /WatchX/Libraries/EEPROM_File/EEPROM_File.h: -------------------------------------------------------------------------------- 1 | #ifndef __EEPROM_H 2 | #define __EEPROM_H 3 | 4 | //#include "SdFat.h" 5 | #include 6 | 7 | class EEPROM_File 8 | { 9 | public: 10 | bool begin(const char* path, const char* fileName, uint32_t size = 1024); 11 | void end(); 12 | 13 | uint8_t read(uint32_t idx); 14 | void write(uint32_t idx, uint8_t val); 15 | void update(uint32_t idx, uint8_t val); 16 | 17 | // SdFile file; 18 | }; 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /WatchX/Libraries/I2Cdev/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map For I2Cdev 3 | ####################################### 4 | 5 | ####################################### 6 | # Datatypes (KEYWORD1) 7 | ####################################### 8 | I2Cdev KEYWORD1 9 | 10 | ####################################### 11 | # Methods and Functions (KEYWORD2) 12 | ####################################### 13 | 14 | readBit KEYWORD2 15 | readBitW KEYWORD2 16 | readBits KEYWORD2 17 | readBitsW KEYWORD2 18 | readByte KEYWORD2 19 | readBytes KEYWORD2 20 | readWord KEYWORD2 21 | readWords KEYWORD2 22 | writeBit KEYWORD2 23 | writeBitW KEYWORD2 24 | writeBits KEYWORD2 25 | writeBitsW KEYWORD2 26 | writeByte KEYWORD2 27 | writeBytes KEYWORD2 28 | writeWord KEYWORD2 29 | writeWords KEYWORD2 30 | 31 | ####################################### 32 | # Instances (KEYWORD2) 33 | ####################################### 34 | 35 | ####################################### 36 | # Constants (LITERAL1) 37 | ####################################### 38 | 39 | -------------------------------------------------------------------------------- /WatchX/Libraries/I2Cdev/library.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "I2Cdevlib-Core", 3 | "keywords": "i2cdevlib, i2c", 4 | "description": "The I2C Device Library (I2Cdevlib) is a collection of uniform and well-documented classes to provide simple and intuitive interfaces to I2C devices.", 5 | "include": "Arduino/I2Cdev", 6 | "repository": 7 | { 8 | "type": "git", 9 | "url": "https://github.com/jrowberg/i2cdevlib.git" 10 | }, 11 | "frameworks": "arduino", 12 | "platforms": "atmelavr" 13 | } 14 | -------------------------------------------------------------------------------- /WatchX/Libraries/PageManager/PageManager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/PageManager/PageManager.cpp -------------------------------------------------------------------------------- /WatchX/Libraries/PageManager/PageManager.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/PageManager/PageManager.h -------------------------------------------------------------------------------- /WatchX/Libraries/SoftSerial/SoftSerial.cpp: -------------------------------------------------------------------------------- 1 | #include "softserial.h" 2 | 3 | #define SoftSerial_MaxFrameLength 16 4 | 5 | void SoftSerial_Write(Pin_TypeDef pin, uint32_t frameDuration, uint8_t data) 6 | { 7 | uint8_t buffPos = 0; 8 | static uint8_t buff[SoftSerial_MaxFrameLength]; 9 | static uint32_t timepoints[SoftSerial_MaxFrameLength]; 10 | buff[buffPos++] = 0; /* start bit */ 11 | for(int i = 0; i < 8; i++) 12 | { 13 | buff[buffPos++] = (data >> i) & 0x01; 14 | } 15 | buff[buffPos++] = 1; /* end bit */ 16 | for(int i = 0; i < buffPos; i++) 17 | { 18 | timepoints[i] = frameDuration * i / buffPos; 19 | } 20 | timepoints[buffPos] = 0x1fffffff; 21 | uint8_t crtBit = 0; 22 | for(int i = 0; i < frameDuration; i++) 23 | { 24 | if(i >= timepoints[crtBit]) 25 | { 26 | digitalWrite(pin, buff[crtBit]); 27 | crtBit ++; 28 | } 29 | } 30 | } 31 | 32 | -------------------------------------------------------------------------------- /WatchX/Libraries/SoftSerial/SoftSerial.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __SOFTSERIAL_H__ 3 | #define __SOFTSERIAL_H__ 4 | 5 | #include "stdint.h" 6 | #include "arduino.h" 7 | 8 | void SoftSerial_Write(Pin_TypeDef pin, uint32_t frameDuration, uint8_t data); 9 | 10 | 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /WatchX/Libraries/Time/Time.h: -------------------------------------------------------------------------------- 1 | #include "TimeLib.h" 2 | -------------------------------------------------------------------------------- /WatchX/Libraries/Time/examples/Processing/SyncArduinoClock/readme.txt: -------------------------------------------------------------------------------- 1 | SyncArduinoClock is a Processing sketch that responds to Arduino requests for 2 | time synchronization messages. 3 | 4 | The portIndex must be set the Serial port connected to Arduino. 5 | 6 | Download TimeSerial.pde onto Arduino and you should see the time 7 | message displayed when you run SyncArduinoClock in Processing. 8 | The Arduino time is set from the time on your computer through the 9 | Processing sketch. 10 | -------------------------------------------------------------------------------- /WatchX/Libraries/Time/examples/TimeRTC/TimeRTC.ino: -------------------------------------------------------------------------------- 1 | /* 2 | * TimeRTC.pde 3 | * example code illustrating Time library with Real Time Clock. 4 | * 5 | */ 6 | 7 | #include 8 | #include 9 | #include // a basic DS1307 library that returns time as a time_t 10 | 11 | void setup() { 12 | Serial.begin(9600); 13 | while (!Serial) ; // wait until Arduino Serial Monitor opens 14 | setSyncProvider(RTC.get); // the function to get the time from the RTC 15 | if(timeStatus()!= timeSet) 16 | Serial.println("Unable to sync with the RTC"); 17 | else 18 | Serial.println("RTC has set the system time"); 19 | } 20 | 21 | void loop() 22 | { 23 | if (timeStatus() == timeSet) { 24 | digitalClockDisplay(); 25 | } else { 26 | Serial.println("The time has not been set. Please run the Time"); 27 | Serial.println("TimeRTCSet example, or DS1307RTC SetTime example."); 28 | Serial.println(); 29 | delay(4000); 30 | } 31 | delay(1000); 32 | } 33 | 34 | void digitalClockDisplay(){ 35 | // digital clock display of the time 36 | Serial.print(hour()); 37 | printDigits(minute()); 38 | printDigits(second()); 39 | Serial.print(" "); 40 | Serial.print(day()); 41 | Serial.print(" "); 42 | Serial.print(month()); 43 | Serial.print(" "); 44 | Serial.print(year()); 45 | Serial.println(); 46 | } 47 | 48 | void printDigits(int digits){ 49 | // utility function for digital clock display: prints preceding colon and leading 0 50 | Serial.print(":"); 51 | if(digits < 10) 52 | Serial.print('0'); 53 | Serial.print(digits); 54 | } 55 | 56 | -------------------------------------------------------------------------------- /WatchX/Libraries/Time/keywords.txt: -------------------------------------------------------------------------------- 1 | ####################################### 2 | # Syntax Coloring Map For Time 3 | ####################################### 4 | 5 | ####################################### 6 | # Datatypes (KEYWORD1) 7 | ####################################### 8 | time_t KEYWORD1 9 | ####################################### 10 | # Methods and Functions (KEYWORD2) 11 | ####################################### 12 | now KEYWORD2 13 | second KEYWORD2 14 | minute KEYWORD2 15 | hour KEYWORD2 16 | day KEYWORD2 17 | month KEYWORD2 18 | year KEYWORD2 19 | isAM KEYWORD2 20 | isPM KEYWORD2 21 | weekday KEYWORD2 22 | setTime KEYWORD2 23 | adjustTime KEYWORD2 24 | setSyncProvider KEYWORD2 25 | setSyncInterval KEYWORD2 26 | timeStatus KEYWORD2 27 | TimeLib KEYWORD2 28 | ####################################### 29 | # Instances (KEYWORD2) 30 | ####################################### 31 | 32 | ####################################### 33 | # Constants (LITERAL1) 34 | ####################################### 35 | -------------------------------------------------------------------------------- /WatchX/Libraries/Time/library.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Time", 3 | "frameworks": "Arduino", 4 | "keywords": "Time, date, hour, minute, second, day, week, month, year, RTC", 5 | "description": "Time keeping library", 6 | "url": "http://playground.arduino.cc/Code/Time", 7 | "authors": 8 | [ 9 | { 10 | "name": "Michael Margolis" 11 | }, 12 | { 13 | "name": "Paul Stoffregen" 14 | } 15 | ], 16 | "repository": 17 | { 18 | "type": "git", 19 | "url": "https://github.com/PaulStoffregen/Time" 20 | } 21 | } 22 | 23 | -------------------------------------------------------------------------------- /WatchX/Libraries/Time/library.properties: -------------------------------------------------------------------------------- 1 | name=Time 2 | version=1.5 3 | author=Michael Margolis 4 | maintainer=Paul Stoffregen 5 | sentence=Timekeeping functionality for Arduino 6 | paragraph=Date and Time functions, with provisions to synchronize to external time sources like GPS and NTP (Internet). This library is often used together with TimeAlarms and DS1307RTC. 7 | category=Timing 8 | url=http://playground.arduino.cc/code/time 9 | architectures=* 10 | 11 | -------------------------------------------------------------------------------- /WatchX/Libraries/cm_backtrace/cm_backtrace.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/cm_backtrace/cm_backtrace.c -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/docs/astyle_c: -------------------------------------------------------------------------------- 1 | --style=kr --convert-tabs --indent=spaces=4 --indent-switches --pad-oper --unpad-paren --align-pointer=middle --suffix=.bak --lineend=linux --min-conditional-indent= 2 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/docs/astyle_h: -------------------------------------------------------------------------------- 1 | --convert-tabs --indent=spaces=4 2 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_apps/benchmark/benchmark.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file benchmark.h 3 | * 4 | */ 5 | 6 | #ifndef BENCHMARK_H 7 | #define BENCHMARK_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | 17 | #ifdef LV_CONF_INCLUDE_SIMPLE 18 | #include "lvgl.h" 19 | #include "lv_ex_conf.h" 20 | #else 21 | #include "../../../lvgl/lvgl.h" 22 | #include "../../../lv_ex_conf.h" 23 | #endif 24 | 25 | #if LV_USE_BENCHMARK 26 | 27 | 28 | /********************* 29 | * DEFINES 30 | *********************/ 31 | 32 | /********************** 33 | * TYPEDEFS 34 | **********************/ 35 | 36 | /********************** 37 | * GLOBAL PROTOTYPES 38 | **********************/ 39 | 40 | /** 41 | * Open a graphics benchmark 42 | */ 43 | void benchmark_create(void); 44 | 45 | void benchmark_start(void); 46 | 47 | bool benchmark_is_ready(void); 48 | 49 | uint32_t benchmark_get_refr_time(void); 50 | 51 | /********************** 52 | * MACROS 53 | **********************/ 54 | 55 | #endif /*LV_USE_BENCHMARK*/ 56 | 57 | #ifdef __cplusplus 58 | } /* extern "C" */ 59 | #endif 60 | 61 | #endif /* BENCHMARK_H */ 62 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_apps/benchmark/benchmark.mk: -------------------------------------------------------------------------------- 1 | CSRCS += benchmark.c 2 | CSRCS += benchmark_bg.c 3 | 4 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_apps/benchmark 5 | VPATH += :$(LVGL_DIR)/lv_examples/lv_apps/benchmark 6 | 7 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_apps/benchmark" 8 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_apps/benchmark/benchmark_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_apps/benchmark/benchmark_bg.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_apps/demo/bubble_pattern.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_apps/demo/bubble_pattern.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_apps/demo/demo.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file demo.h 3 | * 4 | */ 5 | 6 | #ifndef DEMO_H 7 | #define DEMO_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | 17 | #ifdef LV_CONF_INCLUDE_SIMPLE 18 | #include "lvgl.h" 19 | #include "lv_ex_conf.h" 20 | #else 21 | #include "../../../lvgl/lvgl.h" 22 | #include "../../../lv_ex_conf.h" 23 | #endif 24 | 25 | #if LV_USE_DEMO 26 | 27 | /********************* 28 | * DEFINES 29 | *********************/ 30 | 31 | /********************** 32 | * TYPEDEFS 33 | **********************/ 34 | 35 | /********************** 36 | * GLOBAL PROTOTYPES 37 | **********************/ 38 | 39 | /** 40 | * Create a demo application 41 | */ 42 | void demo_create(void); 43 | 44 | /********************** 45 | * MACROS 46 | **********************/ 47 | 48 | #endif /*LV_USE_DEMO*/ 49 | 50 | #ifdef __cplusplus 51 | } /* extern "C" */ 52 | #endif 53 | 54 | #endif /*DEMO_H*/ 55 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_apps/demo/demo.mk: -------------------------------------------------------------------------------- 1 | CSRCS += demo.c 2 | CSRCS += img_bubble_pattern.c 3 | 4 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_apps/demo 5 | VPATH += :$(LVGL_DIR)/lv_examples/lv_apps/demo 6 | 7 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_apps/demo" 8 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_apps/sysmon/sysmon.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file symon.h 3 | * 4 | */ 5 | 6 | #ifndef SYSMON_H 7 | #define SYSMON_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../lvgl/lvgl.h" 21 | #include "../../../lv_ex_conf.h" 22 | #endif 23 | #if LV_USE_SYSMON 24 | 25 | /********************* 26 | * DEFINES 27 | *********************/ 28 | 29 | /********************** 30 | * TYPEDEFS 31 | **********************/ 32 | 33 | /********************** 34 | * GLOBAL PROTOTYPES 35 | **********************/ 36 | 37 | /** 38 | * Initialize the system monitor 39 | */ 40 | void sysmon_create(void); 41 | 42 | /********************** 43 | * MACROS 44 | **********************/ 45 | 46 | #endif /*LV_USE_SYSMON*/ 47 | 48 | #ifdef __cplusplus 49 | } /* extern "C" */ 50 | #endif 51 | 52 | #endif /* SYSMON_H */ 53 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_apps/sysmon/sysmon.mk: -------------------------------------------------------------------------------- 1 | CSRCS += sysmon.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_apps/sysmon 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_apps/sysmon 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_apps/sysmon" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_apps/terminal/terminal.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file terminal.h 3 | * 4 | */ 5 | 6 | #ifndef TERMINAL_H 7 | #define TERMINAL_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../lvgl/lvgl.h" 21 | #include "../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_DEMO 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Open a terminal 40 | * @return pointer to the terminal window 41 | */ 42 | lv_obj_t * terminal_create(void); 43 | 44 | /** 45 | * Add data to the terminal 46 | * @param txt_in character sting to add to the terminal 47 | */ 48 | void terminal_add(const char * txt_in); 49 | 50 | /********************** 51 | * MACROS 52 | **********************/ 53 | 54 | #endif /*LV_USE_TERMINAL*/ 55 | 56 | #ifdef __cplusplus 57 | } /* extern "C" */ 58 | #endif 59 | 60 | #endif /* LV_TERMINAL_H */ 61 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_apps/terminal/terminal.mk: -------------------------------------------------------------------------------- 1 | CSRCS += terminal.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_apps/terminal 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_apps/terminal 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_apps/terminal" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_apps/tpcal/tpcal.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file tpcal.h 3 | * 4 | */ 5 | 6 | #ifndef TPCAL_H 7 | #define TPCAL_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../lvgl/lvgl.h" 21 | #include "../../../lv_ex_conf.h" 22 | #endif 23 | 24 | 25 | #if LV_USE_TPCAL 26 | 27 | /********************* 28 | * DEFINES 29 | *********************/ 30 | 31 | /********************** 32 | * TYPEDEFS 33 | **********************/ 34 | 35 | /********************** 36 | * GLOBAL PROTOTYPES 37 | **********************/ 38 | 39 | /** 40 | * Create a touch pad calibration screen 41 | */ 42 | void tpcal_create(void); 43 | 44 | /********************** 45 | * MACROS 46 | **********************/ 47 | 48 | #endif /*LV_USE_TPCAL*/ 49 | 50 | #ifdef __cplusplus 51 | } /* extern "C" */ 52 | #endif 53 | 54 | #endif /*TP_CAL_H*/ 55 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_apps/tpcal/tpcal.mk: -------------------------------------------------------------------------------- 1 | CSRCS += tpcal.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_apps/tpcal 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_apps/tpcal 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_apps/tpcal" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_examples.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_examples.h 3 | * 4 | */ 5 | 6 | #ifndef LV_EXAMPLES_H 7 | #define LV_EXAMPLES_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #include "../lvgl/lvgl.h" 17 | 18 | /********************* 19 | * DEFINES 20 | *********************/ 21 | /*Test lvgl version*/ 22 | #define LV_EXAMPLES_LVGL_REQ_MAJOR 6 23 | #define LV_EXAMPLES_LVGL_REQ_MINOR 0 24 | #define LV_EXAMPLES_LVGL_REQ_PATCH 0 25 | 26 | #if LV_EXAMPLES_LVGL_REQ_MAJOR != LVGL_VERSION_MAJOR 27 | #error "lv_examples: Wrong lvgl major version" 28 | #endif 29 | 30 | #if LV_EXAMPLES_LVGL_REQ_MINOR > LVGL_VERSION_MINOR 31 | #error "lv_examples: Wrong lvgl minor version" 32 | #endif 33 | 34 | #if LV_EXAMPLES_LVGL_REQ_PATCH > LVGL_VERSION_PATCH 35 | #error "lv_examples: Wrong lvgl bug fix version" 36 | #endif 37 | 38 | /********************** 39 | * TYPEDEFS 40 | **********************/ 41 | 42 | /********************** 43 | * GLOBAL PROTOTYPES 44 | **********************/ 45 | 46 | /********************** 47 | * MACROS 48 | **********************/ 49 | 50 | 51 | #ifdef __cplusplus 52 | } /* extern "C" */ 53 | #endif 54 | 55 | #endif /*LV_EXAMPLES_H*/ 56 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_group/lv_test_group.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_group.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_GROUP_H 7 | #define LV_TEST_GROUP_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../lvgl/lvgl.h" 21 | #include "../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_GROUP && LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create base groups to test their functionalities 40 | */ 41 | lv_group_t *lv_test_group_1(void); 42 | 43 | /********************** 44 | * MACROS 45 | **********************/ 46 | 47 | #endif /* LV_USE_GROUP && LV_USE_TESTS */ 48 | 49 | #ifdef __cplusplus 50 | } /* extern "C" */ 51 | #endif 52 | 53 | #endif /*LV_TEST_BAR_H*/ 54 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_group/lv_test_group.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_group.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_group 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_group 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_group" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_group/lv_test_group_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_group/lv_test_group_1.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_misc/lv_test_task.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_task.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_TASK_H 7 | #define LV_TEST_TASK_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../lvgl/lvgl.h" 21 | #include "../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Test the scheduling with various periods and priorities. 40 | */ 41 | void lv_test_task_1(void); 42 | 43 | /** 44 | * Create a lot of short task and see their order. They should be executed according to their priority 45 | */ 46 | void lv_test_task_2(void); 47 | 48 | /** 49 | * Change the priority later 50 | */ 51 | void lv_test_task_3(void); 52 | 53 | /********************** 54 | * MACROS 55 | **********************/ 56 | 57 | #endif 58 | 59 | #ifdef __cplusplus 60 | } /* extern "C" */ 61 | #endif 62 | 63 | #endif /*LV_TEST_TASK_H*/ 64 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_obj/lv_test_obj.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_object.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_OBJECT_H 7 | #define LV_TEST_OBJECT_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../lvgl/lvgl.h" 21 | #include "../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create base objects to test their functionalities 40 | */ 41 | void lv_test_object_1(void); 42 | 43 | /********************** 44 | * MACROS 45 | **********************/ 46 | 47 | #endif /* LV_USE_TESTS */ 48 | 49 | #ifdef __cplusplus 50 | } /* extern "C" */ 51 | #endif 52 | 53 | #endif /*LV_TEST_BAR_H*/ 54 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_obj/lv_test_obj.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_obj.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_obj 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_obj 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_obj" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_obj/lv_test_object_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_obj/lv_test_object_1.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_arc/lv_test_arc.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_arc.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_ARC_H 7 | #define LV_TEST_ARC_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../../lvgl/lvgl.h" 21 | #include "../../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_ARC && LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create arcs to test their functionalities 40 | */ 41 | void lv_test_arc_1(void); 42 | 43 | /********************** 44 | * MACROS 45 | **********************/ 46 | 47 | #endif /*LV_USE_ARC && LV_USE_TESTS*/ 48 | 49 | #ifdef __cplusplus 50 | } /* extern "C" */ 51 | #endif 52 | 53 | #endif /*LV_TEST_BAR_H*/ 54 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_arc/lv_test_arc.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_arc.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_arc 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_arc 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_arc" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_arc/lv_test_arc_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_arc/lv_test_arc_1.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_bar/lv_test_bar.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_bar.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_BAR_H 7 | #define LV_TEST_BAR_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../../lvgl/lvgl.h" 21 | #include "../../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_BAR && LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create bars to test their functionalities 40 | */ 41 | void lv_test_bar_1(void); 42 | 43 | /********************** 44 | * MACROS 45 | **********************/ 46 | 47 | #endif /*LV_USE_BAR && LV_USE_TESTS*/ 48 | 49 | #ifdef __cplusplus 50 | } /* extern "C" */ 51 | #endif 52 | 53 | #endif /*LV_TEST_BAR_H*/ 54 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_bar/lv_test_bar.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_bar.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_bar 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_bar 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_bar" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_bar/lv_test_bar_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_bar/lv_test_bar_1.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_btn/lv_test_btn.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_btn.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_BTN_H 7 | #define LV_TEST_BTN_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../../lvgl/lvgl.h" 21 | #include "../../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_BTN && LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create buttons to test their functionalities 40 | */ 41 | void lv_test_btn_1(void); 42 | 43 | /********************** 44 | * MACROS 45 | **********************/ 46 | 47 | #endif /*LV_USE_BTN*/ 48 | 49 | #ifdef __cplusplus 50 | } /* extern "C" */ 51 | #endif 52 | 53 | #endif /*LV_USE_BTN && LV_USE_TESTS*/ 54 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_btn/lv_test_btn.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_btn.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_btn 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_btn 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_btn" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_btn/lv_test_btn_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_btn/lv_test_btn_1.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_btnm/lv_test_btnm.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_btnm.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_BTNM_H 7 | #define LV_TEST_BTNM_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../../lvgl/lvgl.h" 21 | #include "../../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_BTNM && LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create button matrixes to test their functionalities 40 | */ 41 | void lv_test_btnm_1(void); 42 | 43 | /********************** 44 | * MACROS 45 | **********************/ 46 | 47 | #endif /*LV_USE_BTNM*/ 48 | 49 | #ifdef __cplusplus 50 | } /* extern "C" */ 51 | #endif 52 | 53 | #endif /* LV_USE_BTNM && LV_USE_TESTS*/ 54 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_btnm/lv_test_btnm.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_btnm.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_btnm 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_btnm 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_btnm" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_btnm/lv_test_btnm_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_btnm/lv_test_btnm_1.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_canvas/lv_test_canvas.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_canvas.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_CANVAS_H 7 | #define LV_TEST_CANVAS_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../../lvgl/lvgl.h" 21 | #include "../../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_CANVAS && LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create canvas to test its functionalities 40 | */ 41 | void lv_test_canvas_1(void); 42 | 43 | /********************** 44 | * MACROS 45 | **********************/ 46 | 47 | #endif /*LV_USE_CANVAS && LV_USE_TESTS*/ 48 | 49 | #ifdef __cplusplus 50 | } /* extern "C" */ 51 | #endif 52 | 53 | #endif /*LV_TEST_CANVAS_H*/ 54 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_canvas/lv_test_canvas.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_canvas.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_canvas 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_canvas 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_canvas" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_canvas/lv_test_canvas_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_canvas/lv_test_canvas_1.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_cb/lv_test_cb.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_cb.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_CB_H 7 | #define LV_TEST_CB_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../../lvgl/lvgl.h" 21 | #include "../../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_CB && LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create check boxes to test their functionalities 40 | */ 41 | void lv_test_cb_1(void); 42 | 43 | /********************** 44 | * MACROS 45 | **********************/ 46 | 47 | #endif /*LV_USE_CB && LV_USE_TESTS*/ 48 | 49 | #ifdef __cplusplus 50 | } /* extern "C" */ 51 | #endif 52 | 53 | #endif /*LV_TEST_CB_H*/ 54 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_cb/lv_test_cb.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_cb.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_cb 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_cb 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_cb" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_cb/lv_test_cb_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_cb/lv_test_cb_1.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_chart/lv_test_chart.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_chart.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_CHART_H 7 | #define LV_TEST_CHART_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../../lvgl/lvgl.h" 21 | #include "../../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_BTN && LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create charts to test their functionalities 40 | */ 41 | void lv_test_chart_1(void); 42 | void lv_test_chart_2(uint8_t chart); 43 | void lv_test_chart_3(lv_chart_type_t chart_type); 44 | 45 | /********************** 46 | * MACROS 47 | **********************/ 48 | 49 | #endif /*LV_USE_BTN && LV_USE_TESTS*/ 50 | 51 | #ifdef __cplusplus 52 | } /* extern "C" */ 53 | #endif 54 | 55 | #endif /*LV_TEST_CHART_H*/ 56 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_chart/lv_test_chart.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_chart.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_chart 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_chart 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_chart" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_chart/lv_test_chart_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_chart/lv_test_chart_1.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_cont/lv_test_cont.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_cont.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_CONT_H 7 | #define LV_TEST_CONT_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../../lvgl/lvgl.h" 21 | #include "../../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_CONT && LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create containers to test their basic functionalities 40 | */ 41 | void lv_test_cont_1(void); 42 | 43 | /** 44 | * Test nested style inheritance on padding update 45 | */ 46 | void lv_test_cont_2(void); 47 | 48 | /********************** 49 | * MACROS 50 | **********************/ 51 | 52 | #endif /*LV_USE_CONT && LV_USE_TESTS*/ 53 | 54 | #ifdef __cplusplus 55 | } /* extern "C" */ 56 | #endif 57 | 58 | #endif /*LV_TEST_CONT_H*/ 59 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_cont/lv_test_cont.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_cont.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_cont 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_cont 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_cont" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_cont/lv_test_cont_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_cont/lv_test_cont_1.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_cont/lv_test_cont_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_cont/lv_test_cont_2.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_cpicker/lv_test_cpicker.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_cpicker.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_CPICKER_H 7 | #define LV_TEST_CPICKER_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../../lvgl/lvgl.h" 21 | #include "../../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_CPICKER && LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create a color picker to test its basic functionalities 40 | */ 41 | void lv_test_cpicker_1(void); 42 | 43 | 44 | /********************** 45 | * MACROS 46 | **********************/ 47 | 48 | #endif /*LV_USE_CONT && LV_USE_TESTS*/ 49 | 50 | #ifdef __cplusplus 51 | } /* extern "C" */ 52 | #endif 53 | 54 | #endif /*LV_TEST_CONT_H*/ 55 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_cpicker/lv_test_cpicker.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_cpicker.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_cpicker 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_cpicker 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_cpicker" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_ddlist/lv_test_ddlist.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_ddlist.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_DDLIST_H 7 | #define LV_TEST_DDLIST_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../../lvgl/lvgl.h" 21 | #include "../../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_DDLIST && LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create drop down lists to test their functionalities 40 | */ 41 | void lv_test_ddlist_1(void); 42 | 43 | /********************** 44 | * MACROS 45 | **********************/ 46 | 47 | #endif /*LV_USE_DDLIST*/ 48 | 49 | #ifdef __cplusplus 50 | } /* extern "C" */ 51 | #endif 52 | 53 | #endif /*LV_USE_DDLIST && LV_USE_TESTS*/ 54 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_ddlist/lv_test_ddlist.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_ddlist.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_ddlist 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_ddlist 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_ddlist" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_ddlist/lv_test_ddlist_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_ddlist/lv_test_ddlist_1.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_gauge/lv_test_gauge.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_gauge.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_GAUGE_H 7 | #define LV_TEST_GAUGE_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../../lvgl/lvgl.h" 21 | #include "../../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_GAUGE && LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create gauges to test their functionalities 40 | */ 41 | void lv_test_gauge_1(void); 42 | /********************** 43 | * MACROS 44 | **********************/ 45 | 46 | #endif /*LV_USE_GAUGE*/ 47 | 48 | #ifdef __cplusplus 49 | } /* extern "C" */ 50 | #endif 51 | 52 | #endif /*LV_USE_GAUGE && LV_USE_TESTS*/ 53 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_gauge/lv_test_gauge.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_gauge.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_gauge 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_gauge 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_gauge" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_gauge/lv_test_gauge_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_gauge/lv_test_gauge_1.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_img/flower_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_img/flower_icon.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_img/lv_test_img.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_img.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_IMG_H 7 | #define LV_TEST_IMG_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../../lvgl/lvgl.h" 21 | #include "../../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_IMG && LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create images to test their functionalities 40 | */ 41 | void lv_test_img_1(void); 42 | 43 | /********************** 44 | * MACROS 45 | **********************/ 46 | 47 | #endif /*LV_USE_IMG*/ 48 | 49 | #ifdef __cplusplus 50 | } /* extern "C" */ 51 | #endif 52 | 53 | #endif /*LV_USE_IMG && LV_USE_TESTS*/ 54 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_img/lv_test_img.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_img.c 2 | CSRCS += img_flower_icon.c 3 | 4 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_img 5 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_img 6 | 7 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_img" 8 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_img/lv_test_img_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_img/lv_test_img_1.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_imgbtn/lv_test_imgbtn.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_imgbtn.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_IMGBTN_H 7 | #define LV_TEST_IMGBTN_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../../lvgl/lvgl.h" 21 | #include "../../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_IMGBTN && LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create imgbtns to test their functionalities 40 | */ 41 | void lv_test_imgbtn_1(void); 42 | 43 | /********************** 44 | * MACROS 45 | **********************/ 46 | 47 | #endif /*LV_USE_IMGBTN && LV_USE_TESTS*/ 48 | 49 | #ifdef __cplusplus 50 | } /* extern "C" */ 51 | #endif 52 | 53 | #endif /*LV_TEST_BAR_H*/ 54 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_imgbtn/lv_test_imgbtn.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_imgbtn.c \ 2 | imgbtn_img_1.c \ 3 | imgbtn_img_2.c \ 4 | imgbtn_img_3.c \ 5 | imgbtn_img_4.c 6 | 7 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_imgbtn 8 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_imgbtn 9 | 10 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_imgbtn" 11 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_imgbtn/lv_test_imgbtn_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_imgbtn/lv_test_imgbtn_1.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_kb/lv_test_kb.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_kb.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_KB_H 7 | #define LV_TEST_KB_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../../lvgl/lvgl.h" 21 | #include "../../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_KB && LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create a default object and test the basic functions 40 | */ 41 | void lv_test_kb_1(void); 42 | 43 | /** 44 | * Create a styles keyboard 45 | */ 46 | void lv_test_kb_2(void); 47 | 48 | /********************** 49 | * MACROS 50 | **********************/ 51 | 52 | #endif /*LV_USE_KB*/ 53 | 54 | #ifdef __cplusplus 55 | } /* extern "C" */ 56 | #endif 57 | 58 | #endif /*LV_USE_KB && LV_USE_TESTS*/ 59 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_kb/lv_test_kb.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_kb.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_kb 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_kb 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_kb" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_kb/lv_test_kb_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_kb/lv_test_kb_1.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_kb/lv_test_kb_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_kb/lv_test_kb_2.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_label/lv_test_label.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_label.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_LABEL_H 7 | #define LV_TEST_LABEL_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../../lvgl/lvgl.h" 21 | #include "../../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_LABEL && LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | /** 38 | * Create labels with dynamic, static and array texts 39 | */ 40 | void lv_test_label_1(void); 41 | 42 | /** 43 | * Test label long modes 44 | */ 45 | void lv_test_label_2(void); 46 | 47 | /** 48 | * Test text insert and cut 49 | */ 50 | void lv_test_label_3(void); 51 | 52 | /** 53 | * Test mixed features 54 | */ 55 | void lv_test_label_4(void); 56 | /********************** 57 | * MACROS 58 | **********************/ 59 | 60 | #endif /*LV_USE_LABEL*/ 61 | 62 | #ifdef __cplusplus 63 | } /* extern "C" */ 64 | #endif 65 | 66 | #endif /*LV_USE_LABEL && LV_USE_TESTS*/ 67 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_label/lv_test_label.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_label.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_label 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_label 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_label" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_label/lv_test_label_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_label/lv_test_label_1.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_label/lv_test_label_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_label/lv_test_label_2.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_label/lv_test_label_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_label/lv_test_label_3.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_label/lv_test_label_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_label/lv_test_label_4.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_led/lv_test_led.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_led.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_LED_H 7 | #define LV_TEST_LED_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../../lvgl/lvgl.h" 21 | #include "../../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_LED && LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create LEDs to test their functionalities 40 | */ 41 | void lv_test_led_1(void); 42 | /********************** 43 | * MACROS 44 | **********************/ 45 | 46 | #endif /*LV_USE_LED && LV_USE_TESTS*/ 47 | 48 | #ifdef __cplusplus 49 | } /* extern "C" */ 50 | #endif 51 | 52 | #endif /*LV_TEST_LED_H*/ 53 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_led/lv_test_led.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_led.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_led 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_led 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_led" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_led/lv_test_led_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_led/lv_test_led_1.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_line/lv_test_line.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_line.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_LINE_H 7 | #define LV_TEST_LINE_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../../lvgl/lvgl.h" 21 | #include "../../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_LINE && LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create lines to test their functionalities 40 | */ 41 | void lv_test_line_1(void); 42 | 43 | /********************** 44 | * MACROS 45 | **********************/ 46 | 47 | #endif /*LV_USE_LINE && LV_USE_TESTS*/ 48 | 49 | #ifdef __cplusplus 50 | } /* extern "C" */ 51 | #endif 52 | 53 | #endif /*LV_TEST_LINE_H*/ 54 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_line/lv_test_line.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_line.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_line 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_line 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_line" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_line/lv_test_line_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_line/lv_test_line_1.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_list/lv_test_list.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_list.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_LIST_H 7 | #define LV_TEST_LIST_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../../lvgl/lvgl.h" 21 | #include "../../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_LIST && LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create lists to test their functionalities 40 | */ 41 | void lv_test_list_1(void); 42 | 43 | /********************** 44 | * MACROS 45 | **********************/ 46 | 47 | #endif /*LV_USE_LIST && LV_USE_TESTS*/ 48 | 49 | #ifdef __cplusplus 50 | } /* extern "C" */ 51 | #endif 52 | 53 | #endif /*LV_TEST_LIST_H*/ 54 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_list/lv_test_list.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_list.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_list 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_list 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_list" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_list/lv_test_list_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_list/lv_test_list_1.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_lmeter/lv_test_lmeter.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_lmeter.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_LMETER_H 7 | #define LV_TEST_LMETER_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../../lvgl/lvgl.h" 21 | #include "../../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_LMETER && LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | /** 38 | * Create line meters to test their functionalities 39 | */ 40 | void lv_test_lmeter_1(void); 41 | 42 | /********************** 43 | * MACROS 44 | **********************/ 45 | 46 | #endif /*LV_USE_LMETER && LV_USE_TESTS*/ 47 | 48 | #ifdef __cplusplus 49 | } /* extern "C" */ 50 | #endif 51 | 52 | #endif /*LV_TEST_LMETER_H*/ 53 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_lmeter/lv_test_lmeter.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_lmeter.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_lmeter 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_lmeter 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_lmeter" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_lmeter/lv_test_lmeter_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_lmeter/lv_test_lmeter_1.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_mbox/lv_test_mbox.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_mbox.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_MBOX_H 7 | #define LV_TEST_MBOX_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../../lvgl/lvgl.h" 21 | #include "../../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_MBOX && LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create message boxes to test their functionalities 40 | */ 41 | void lv_test_mbox_1(void); 42 | 43 | /********************** 44 | * MACROS 45 | **********************/ 46 | 47 | #endif /*LV_USE_MBOX && LV_USE_TESTS*/ 48 | 49 | #ifdef __cplusplus 50 | } /* extern "C" */ 51 | #endif 52 | 53 | #endif /*LV_TEST_MBOX_H*/ 54 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_mbox/lv_test_mbox.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_mbox.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_mbox 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_mbox 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_mbox" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_mbox/lv_test_mbox_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_mbox/lv_test_mbox_1.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_page/lv_test_page.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_page.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_PAGE_H 7 | #define LV_TEST_PAGE_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../../lvgl/lvgl.h" 21 | #include "../../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_PAGE && LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create pages to test their basic functionalities 40 | */ 41 | void lv_test_page_1(void); 42 | 43 | /** 44 | * Test styling, scrollbar modes, layout and action 45 | */ 46 | void lv_test_page_2(void); 47 | 48 | /********************** 49 | * MACROS 50 | **********************/ 51 | 52 | #endif /*LV_USE_PAGE && LV_USE_TESTS*/ 53 | 54 | #ifdef __cplusplus 55 | } /* extern "C" */ 56 | #endif 57 | 58 | #endif /*LV_TEST_PAGE_H*/ 59 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_page/lv_test_page.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_page.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_page 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_page 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_page" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_page/lv_test_page_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_page/lv_test_page_1.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_page/lv_test_page_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_page/lv_test_page_2.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_preload/lv_test_preload.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_preload.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_PRELOAD_H 7 | #define LV_TEST_PRELOAD_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../../lvgl/lvgl.h" 21 | #include "../../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_PRELOAD && LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create preloads to test their functionalities 40 | */ 41 | void lv_test_preload_1(void); 42 | 43 | /********************** 44 | * MACROS 45 | **********************/ 46 | 47 | #endif /*LV_USE_PRELOAD && LV_USE_TESTS*/ 48 | 49 | #ifdef __cplusplus 50 | } /* extern "C" */ 51 | #endif 52 | 53 | #endif /*LV_TEST_BAR_H*/ 54 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_preload/lv_test_preload.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_preload.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_preload 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_preload 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_preload" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_preload/lv_test_preload_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_preload/lv_test_preload_1.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_roller/lv_test_roller.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_roller.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_ROLLER_H 7 | #define LV_TEST_ROLLER_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../../lvgl/lvgl.h" 21 | #include "../../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_ROLLER && LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create rollers to test their functionalities 40 | */ 41 | void lv_test_roller_1(void); 42 | 43 | /********************** 44 | * MACROS 45 | **********************/ 46 | 47 | #endif /*LV_USE_ROLLER && LV_USE_TESTS*/ 48 | 49 | #ifdef __cplusplus 50 | } /* extern "C" */ 51 | #endif 52 | 53 | #endif /*LV_TEST_ROLLER_H*/ 54 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_roller/lv_test_roller.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_roller.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_roller 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_roller 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_roller" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_roller/lv_test_roller_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_roller/lv_test_roller_1.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_slider/lv_test_slider.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_slider.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_SLIDER_H 7 | #define LV_TEST_SLIDER_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../../lvgl/lvgl.h" 21 | #include "../../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_SLIDER && LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create sliders to test their functionalities 40 | */ 41 | void lv_test_slider_1(void); 42 | 43 | /********************** 44 | * MACROS 45 | **********************/ 46 | 47 | #endif /*LV_USE_SLIDER*/ 48 | 49 | #ifdef __cplusplus 50 | } /* extern "C" */ 51 | #endif 52 | 53 | #endif /*LV_USE_SLIDER && LV_USE_TESTS*/ 54 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_slider/lv_test_slider.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_slider.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_slider_bar 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_slider 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_slider" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_slider/lv_test_slider_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_slider/lv_test_slider_1.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_sw/lv_test_sw.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_sw.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_SW_H 7 | #define LV_TEST_SW_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../../lvgl/lvgl.h" 21 | #include "../../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_SW && LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create switches to test their functionalities 40 | */ 41 | void lv_test_sw_1(void); 42 | 43 | /********************** 44 | * MACROS 45 | **********************/ 46 | 47 | #endif /*LV_USE_SW && LV_USE_TESTS*/ 48 | 49 | #ifdef __cplusplus 50 | } /* extern "C" */ 51 | #endif 52 | 53 | #endif /*LV_TEST_SW_H*/ 54 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_sw/lv_test_sw.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_sw.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_sw 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_sw 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_sw" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_sw/lv_test_sw_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_sw/lv_test_sw_1.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_ta/lv_test_ta.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_ta.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_TA_H 7 | #define LV_TEST_TA_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../../lvgl/lvgl.h" 21 | #include "../../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_TA && LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create text areas to test their basic functionalities 40 | */ 41 | void lv_test_ta_1(void); 42 | 43 | /** 44 | * Test cursor modes 45 | */ 46 | void lv_test_ta_2(void); 47 | 48 | /********************** 49 | * MACROS 50 | **********************/ 51 | 52 | #endif /*LV_USE_TA && LV_USE_TESTS*/ 53 | 54 | #ifdef __cplusplus 55 | } /* extern "C" */ 56 | #endif 57 | 58 | #endif /*LV_TEST_TA_H*/ 59 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_ta/lv_test_ta.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_ta.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_ta 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_ta 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_ta" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_ta/lv_test_ta_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_ta/lv_test_ta_1.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_ta/lv_test_ta_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_ta/lv_test_ta_2.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_table/lv_test_table.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_table.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_TABLE_H 7 | #define LV_TEST_TABLE_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../../lvgl/lvgl.h" 21 | #include "../../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_TABLE && LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create tables to test their functionalities 40 | */ 41 | void lv_test_table_1(void); 42 | 43 | /** 44 | * Create tables to test their functionalities 45 | */ 46 | void lv_test_table_2(void); 47 | 48 | /********************** 49 | * MACROS 50 | **********************/ 51 | 52 | #endif /*LV_USE_TABLE && LV_USE_TESTS*/ 53 | 54 | #ifdef __cplusplus 55 | } /* extern "C" */ 56 | #endif 57 | 58 | #endif /*LV_TEST_TABLE_H*/ 59 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_table/lv_test_table.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_table.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_table 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_table 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_table" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_table/lv_test_table_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_table/lv_test_table_1.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_table/lv_test_table_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_table/lv_test_table_2.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_tabview/lv_test_tabview.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_tabview.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_TABVIEW_H 7 | #define LV_TEST_TABVIEW_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../../lvgl/lvgl.h" 21 | #include "../../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_TABVIEW && LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create tab views to test their functionalities 40 | */ 41 | void lv_test_tabview_1(void); 42 | void lv_test_tabview_2(void); 43 | 44 | /********************** 45 | * MACROS 46 | **********************/ 47 | 48 | #endif /*LV_USE_TABVIEW && LV_USE_TESTS*/ 49 | 50 | #ifdef __cplusplus 51 | } /* extern "C" */ 52 | #endif 53 | 54 | #endif /*LV_TEST_TABVIEW_H*/ 55 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_tabview/lv_test_tabview.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_tabview.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_tabview 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_tabview 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_tabview" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_tabview/lv_test_tabview_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_tabview/lv_test_tabview_1.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_tabview/lv_test_tabview_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_tabview/lv_test_tabview_2.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_tileview/lv_test_tileview.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_tileview.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_TILEVIEW_H 7 | #define LV_TEST_TILEVIEW_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../../lvgl/lvgl.h" 21 | #include "../../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_TILEVIEW && LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create a tileview to test their functionalities 40 | */ 41 | void lv_test_tileview_1(void); 42 | 43 | /********************** 44 | * MACROS 45 | **********************/ 46 | 47 | #endif /*LV_USE_TILEVIEW && LV_USE_TESTS*/ 48 | 49 | #ifdef __cplusplus 50 | } /* extern "C" */ 51 | #endif 52 | 53 | #endif /*LV_TEST_TILEVIEW_H*/ 54 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_tileview/lv_test_tileview.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_tileview.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_tileview 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_tileview 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_tileview" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_tileview/lv_test_tileview_1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_tileview/lv_test_tileview_1.gif -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_win/lv_test_win.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_win.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_WIN_H 7 | #define LV_TEST_WIN_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../../lvgl/lvgl.h" 21 | #include "../../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_WIN && LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create windows to test their functionalities 40 | */ 41 | void lv_test_win_1(void); 42 | 43 | /********************** 44 | * MACROS 45 | **********************/ 46 | 47 | #endif /*LV_USE_WIN && LV_USE_TESTS*/ 48 | 49 | #ifdef __cplusplus 50 | } /* extern "C" */ 51 | #endif 52 | 53 | #endif /*LV_TEST_WIN_H*/ 54 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_win/lv_test_win.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_win.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_win 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_win 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_objx/lv_test_win" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_win/lv_test_win_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_objx/lv_test_win/lv_test_win_1.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_stress/lv_test_stress.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_stress.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_STRESS_H 7 | #define LV_TEST_STRESS_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../lvgl/lvgl.h" 21 | #include "../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create and delete a lot of objects and animations. 40 | */ 41 | void lv_test_stress_1(void); 42 | 43 | /********************** 44 | * MACROS 45 | **********************/ 46 | 47 | #endif /*LV_USE_TESTS*/ 48 | 49 | #ifdef __cplusplus 50 | } /* extern "C" */ 51 | #endif 52 | 53 | #endif /*LV_TEST_STRESS_H*/ 54 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_stress/lv_test_stress.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_stress.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_stress 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_stress 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_stress" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_stress/lv_test_stress.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_stress/lv_test_stress.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_theme/lv_test_theme.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_test_theme_1.c 2 | CSRCS += lv_test_theme_2.c 3 | 4 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tests/lv_test_theme 5 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tests/lv_test_theme 6 | 7 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tests/lv_test_theme" 8 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_theme/lv_test_theme_1.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_theme.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_THEME_H 7 | #define LV_TEST_THEME_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../lvgl/lvgl.h" 21 | #include "../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_TESTS 25 | 26 | 27 | /********************* 28 | * DEFINES 29 | *********************/ 30 | 31 | /********************** 32 | * TYPEDEFS 33 | **********************/ 34 | 35 | /********************** 36 | * GLOBAL PROTOTYPES 37 | **********************/ 38 | 39 | /** 40 | * Create a test screen with a lot objects and apply the given theme on them 41 | * @param th pointer to a theme 42 | */ 43 | void lv_test_theme_1(lv_theme_t *th); 44 | 45 | /********************** 46 | * MACROS 47 | **********************/ 48 | 49 | #endif /*LV_USE_TESTS*/ 50 | 51 | #ifdef __cplusplus 52 | } /* extern "C" */ 53 | #endif 54 | 55 | #endif /*LV_TEST_THEME_H*/ 56 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_theme/lv_test_theme_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_theme/lv_test_theme_1.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_theme/lv_test_theme_2.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_test_theme_2.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEST_THEME_2_H 7 | #define LV_TEST_THEME_2_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../lvgl/lvgl.h" 21 | #include "../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_TESTS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Test run time theme change 40 | */ 41 | void lv_test_theme_2(void); 42 | 43 | /********************** 44 | * MACROS 45 | **********************/ 46 | 47 | #endif /*LV_USE_TESTS*/ 48 | 49 | #ifdef __cplusplus 50 | } /* extern "C" */ 51 | #endif 52 | 53 | #endif /*LV_TEST_THEME_2_H*/ 54 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tests/lv_test_theme/lv_test_theme_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tests/lv_test_theme/lv_test_theme_2.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/10_keyboard/lv_tutorial_keyboard.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_tutorial_keyboard.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TUTORIAL_KEYBOARD_H 7 | #define LV_TUTORIAL_KEYBOARD_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../lvgl/lvgl.h" 21 | #include "../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_TUTORIALS && LV_USE_GROUP 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | /** 38 | * Create a simple GUI to demonstrate encoder control capability 39 | * kp_indev optinonally pass a keypad input device to control the object (NULL if unused) 40 | */ 41 | void lv_tutorial_keyboard(lv_indev_t * kp_indev); 42 | 43 | /********************** 44 | * MACROS 45 | **********************/ 46 | 47 | #endif /*LV_USE_TUTORIALS*/ 48 | 49 | #ifdef __cplusplus 50 | } /* extern "C" */ 51 | #endif 52 | 53 | #endif /*LV_TUTORIAL_KEYBOARD_H*/ 54 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/10_keyboard/lv_tutorial_keyboard.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_tutorial_keyboard.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tutorial/10_keyboard 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tutorial/10_keyboard 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tutorial/10_keyboard" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/1_hello_world/lv_tutorial_hello_world.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_tutorial_hello_world 3 | * 4 | */ 5 | 6 | #ifndef LV_TUTORIAL_HELLO_WORLD_H 7 | #define LV_TUTORIAL_HELLO_WORLD_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../lvgl/lvgl.h" 21 | #include "../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_TUTORIALS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | void lv_tutorial_hello_world(void); 38 | 39 | /********************** 40 | * MACROS 41 | **********************/ 42 | 43 | #endif /*LV_USE_TUTORIALS*/ 44 | 45 | #ifdef __cplusplus 46 | } /* extern "C" */ 47 | #endif 48 | 49 | #endif /*LV_TUTORIAL_HELLO_WORLD_H*/ 50 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/1_hello_world/lv_tutorial_hello_world.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_tutorial_hello_world.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tutorial/1_hello_world 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tutorial/1_hello_world 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tutorial/1_hello_world" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/2_objects/lv_tutorial_objects.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_tutorial_objects.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TUTORIAL_OBJECTS_H 7 | #define EX_OBJECTS_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../lvgl/lvgl.h" 21 | #include "../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_TUTORIALS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | void lv_tutorial_objects(void); 38 | 39 | /********************** 40 | * MACROS 41 | **********************/ 42 | 43 | #endif /*LV_USE_TUTORIALS*/ 44 | 45 | #ifdef __cplusplus 46 | } /* extern "C" */ 47 | #endif 48 | 49 | #endif /*LV_TUTORIAL_OBJECTS_H*/ 50 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/2_objects/lv_tutorial_objects.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_tutorial_objects.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tutorial/2_objects 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tutorial/2_objects 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tutorial/2_objects" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/3_styles/lv_tutorial_styles.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_tutorial_styles.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TUTORIAL_STYLES_H 7 | #define LV_TUTORIAL_STYLES_H 8 | 9 | #ifdef __cplusplus 10 | lv_tutorialtern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../lvgl/lvgl.h" 21 | #include "../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_TUTORIALS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | void lv_tutorial_styles(void); 38 | 39 | /********************** 40 | * MACROS 41 | **********************/ 42 | 43 | #endif /*LV_USE_TUTORIALS*/ 44 | 45 | #ifdef __cplusplus 46 | } /* lv_tutorialtern "C" */ 47 | #endif 48 | 49 | #endif /*LV_TUTORIAL_STYLES_H*/ 50 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/3_styles/lv_tutorial_styles.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_tutorial_styles.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tutorial/3_styles 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tutorial/3_styles 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tutorial/3_styles" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/4_themes/lv_tutorial_themes.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_tutorial_themes.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TUTORIAL_THEMES_H 7 | #define LV_TUTORIAL_THEMES_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../lvgl/lvgl.h" 21 | #include "../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_TUTORIALS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | void lv_tutorial_themes(void); 38 | 39 | /********************** 40 | * MACROS 41 | **********************/ 42 | 43 | #endif /*LV_USE_TUTORIALS*/ 44 | 45 | #ifdef __cplusplus 46 | } /* extern "C" */ 47 | #endif 48 | 49 | #endif /*LV_TUTORIAL_THEMES_H*/ 50 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/4_themes/lv_tutorial_themes.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_tutorial_themes.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tutorial/4_themes 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tutorial/4_themes 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tutorial/4_themes" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/5_antialiasing/apple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tutorial/5_antialiasing/apple.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/5_antialiasing/apple_chroma.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tutorial/5_antialiasing/apple_chroma.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/5_antialiasing/lv_tutorial_antialiasing.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_tutorial_antialiasing.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TUTORIAL_ANTIALIASING_H 7 | #define LV_TUTORIAL_ANTIALIASING_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../lvgl/lvgl.h" 21 | #include "../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_TUTORIALS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | /** 39 | * Create object to see how they change from the anti aliasing 40 | * Modify LV_ANTIALIAS and LV_FONT_ANTIALIAS to see what is changing 41 | */ 42 | void lv_tutorial_antialiasing(void); 43 | 44 | /********************** 45 | * MACROS 46 | **********************/ 47 | 48 | #endif /*LV_USE_TUTORIALS*/ 49 | 50 | #ifdef __cplusplus 51 | } /* extern "C" */ 52 | #endif 53 | 54 | #endif /*LV_TUTORIAL_ANTIALIASING_H*/ 55 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/5_antialiasing/lv_tutorial_antialiasing.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_tutorial_antialiasing.c 2 | CSRCS += apple_icon_alpha.c 3 | CSRCS += apple_icon_chroma.c 4 | 5 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tutorial/5_antialiasing 6 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tutorial/5_antialiasing 7 | 8 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tutorial/5_antialiasing" 9 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/6_images/blue_flower.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tutorial/6_images/blue_flower.jpg -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/6_images/blue_flower_16.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tutorial/6_images/blue_flower_16.bin -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/6_images/blue_flower_16_swap.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tutorial/6_images/blue_flower_16_swap.bin -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/6_images/blue_flower_32.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tutorial/6_images/blue_flower_32.bin -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/6_images/blue_flower_8.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tutorial/6_images/blue_flower_8.bin -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/6_images/blue_rose_16.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tutorial/6_images/blue_rose_16.bin -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/6_images/blue_rose_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tutorial/6_images/blue_rose_16.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/6_images/flower_icon_alpha.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tutorial/6_images/flower_icon_alpha.bin -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/6_images/flower_icon_alpha.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tutorial/6_images/flower_icon_alpha.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/6_images/lv_tutorial_images.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_tutorial_images.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TUTORIAL_IMAGES_H 7 | #define LV_TUTORIAL_IMAGES_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../lvgl/lvgl.h" 21 | #include "../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_TUTORIALS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | 39 | /** 40 | * Create images from variable and file 41 | */ 42 | void lv_tutorial_image(void); 43 | 44 | /********************** 45 | * MACROS 46 | **********************/ 47 | 48 | #endif /*LV_USE_TUTORIALS*/ 49 | 50 | #ifdef __cplusplus 51 | } /* extern "C" */ 52 | #endif 53 | 54 | #endif /*LV_TUTORIAL_ANTIALIASING_H*/ 55 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/6_images/lv_tutorial_images.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_tutorial_images.c 2 | CSRCS += red_flower.c 3 | CSRCS += red_rose_16.c 4 | CSRCS += flower_icon_alpha.c 5 | 6 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tutorial/6_images 7 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tutorial/6_images 8 | 9 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tutorial/6_images" 10 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/6_images/red_flower.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tutorial/6_images/red_flower.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/6_images/red_rose_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lv_examples/lv_tutorial/6_images/red_rose_16.png -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/7_fonts/lv_tutorial_fonts.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_tutorial_fonts.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TUTORIAL_FONTS_H 7 | #define LV_TUTORIAL_FONTS_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../lvgl/lvgl.h" 21 | #include "../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_TUTORIALS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | void lv_tutorial_fonts(void); 39 | 40 | /********************** 41 | * MACROS 42 | **********************/ 43 | 44 | #endif /*LV_USE_TUTORIALS*/ 45 | 46 | #ifdef __cplusplus 47 | } /* extern "C" */ 48 | #endif 49 | 50 | #endif /*LV_TUTORIAL_FONTS_H*/ 51 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/7_fonts/lv_tutorial_fonts.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_tutorial_fonts.c 2 | CSRCS += arial_20.c 3 | 4 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tutorial/7_fonts 5 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tutorial/7_fonts 6 | 7 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tutorial/7_fonts" 8 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/8_animations/lv_tutorial_animations.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_tutorial_animation.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TUTORIAL_ANIMATION_H 7 | #define LV_TUTORIAL_ANIMATION_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../lvgl/lvgl.h" 21 | #include "../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_TUTORIALS && LV_USE_ANIMATION 25 | 26 | 27 | /********************* 28 | * DEFINES 29 | *********************/ 30 | 31 | /********************** 32 | * TYPEDEFS 33 | **********************/ 34 | 35 | /********************** 36 | * GLOBAL PROTOTYPES 37 | **********************/ 38 | 39 | /** 40 | * Crate some objects an animate them 41 | */ 42 | void lv_tutorial_animations(void); 43 | 44 | /********************** 45 | * MACROS 46 | **********************/ 47 | 48 | #endif /*LV_USE_TUTORIALS*/ 49 | 50 | #ifdef __cplusplus 51 | } /* extern "C" */ 52 | #endif 53 | 54 | #endif /*LV_TUTORIAL_ANTMATION_H*/ 55 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/8_animations/lv_tutorial_animations.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_tutorial_animations.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tutorial/8_animations 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tutorial/8_animations 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tutorial/8_animations" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/9_responsive/lv_tutorial_responsive.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_tutorial_responsive.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TUTORIAL_RESPONSIVE_H 7 | #define LV_TUTORIAL_RESPONSIVE_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lvgl.h" 18 | #include "lv_ex_conf.h" 19 | #else 20 | #include "../../../lvgl/lvgl.h" 21 | #include "../../../lv_ex_conf.h" 22 | #endif 23 | 24 | #if LV_USE_TUTORIALS 25 | 26 | /********************* 27 | * DEFINES 28 | *********************/ 29 | 30 | /********************** 31 | * TYPEDEFS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL PROTOTYPES 36 | **********************/ 37 | 38 | void lv_tutorial_responsive(void); 39 | 40 | /********************** 41 | * MACROS 42 | **********************/ 43 | 44 | #endif /*LV_USE_TUTORIALS*/ 45 | 46 | #ifdef __cplusplus 47 | } /* extern "C" */ 48 | #endif 49 | 50 | #endif /*LV_TUTORIAL_ANTMATION_H*/ 51 | -------------------------------------------------------------------------------- /WatchX/Libraries/lv_examples/lv_tutorial/9_responsive/lv_tutorial_responsive.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_tutorial_responsive.c 2 | 3 | DEPPATH += --dep-path $(LVGL_DIR)/lv_examples/lv_tutorial/9_responsive 4 | VPATH += :$(LVGL_DIR)/lv_examples/lv_tutorial/9_responsive 5 | 6 | CFLAGS += "-I$(LVGL_DIR)/lv_examples/lv_tutorial/9_responsive" 7 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/LICENCE.txt: -------------------------------------------------------------------------------- 1 | MIT licence 2 | Copyright (c) 2016 Gábor Kiss-Vámosi 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 5 | 6 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 7 | 8 | THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 9 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/lvgl.mk: -------------------------------------------------------------------------------- 1 | include $(LVGL_DIR)/lvgl/src/lv_core/lv_core.mk 2 | include $(LVGL_DIR)/lvgl/src/lv_hal/lv_hal.mk 3 | include $(LVGL_DIR)/lvgl/src/lv_objx/lv_objx.mk 4 | include $(LVGL_DIR)/lvgl/src/lv_font/lv_font.mk 5 | include $(LVGL_DIR)/lvgl/src/lv_misc/lv_misc.mk 6 | include $(LVGL_DIR)/lvgl/src/lv_themes/lv_themes.mk 7 | include $(LVGL_DIR)/lvgl/src/lv_draw/lv_draw.mk 8 | 9 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/porting/lv_port_disp_template.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_port_disp_templ.h 3 | * 4 | */ 5 | 6 | /*Copy this file as "lv_port_disp.h" and set this value to "1" to enable content*/ 7 | #if 0 8 | 9 | #ifndef LV_PORT_DISP_TEMPL_H 10 | #define LV_PORT_DISP_TEMPL_H 11 | 12 | #ifdef __cplusplus 13 | extern "C" { 14 | #endif 15 | 16 | /********************* 17 | * INCLUDES 18 | *********************/ 19 | #include "lvgl/lvgl.h" 20 | 21 | /********************* 22 | * DEFINES 23 | *********************/ 24 | 25 | /********************** 26 | * TYPEDEFS 27 | **********************/ 28 | 29 | /********************** 30 | * GLOBAL PROTOTYPES 31 | **********************/ 32 | 33 | /********************** 34 | * MACROS 35 | **********************/ 36 | 37 | 38 | #ifdef __cplusplus 39 | } /* extern "C" */ 40 | #endif 41 | 42 | #endif /*LV_PORT_DISP_TEMPL_H*/ 43 | 44 | #endif /*Disable/Enable content*/ 45 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/porting/lv_port_fs_template.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_port_fs_templ.h 3 | * 4 | */ 5 | 6 | /*Copy this file as "lv_port_fs.h" and set this value to "1" to enable content*/ 7 | #if 0 8 | 9 | #ifndef LV_PORT_FS_TEMPL_H 10 | #define LV_PORT_FS_TEMPL_H 11 | 12 | #ifdef __cplusplus 13 | extern "C" { 14 | #endif 15 | 16 | /********************* 17 | * INCLUDES 18 | *********************/ 19 | #include "lvgl/lvgl.h" 20 | 21 | /********************* 22 | * DEFINES 23 | *********************/ 24 | 25 | /********************** 26 | * TYPEDEFS 27 | **********************/ 28 | 29 | /********************** 30 | * GLOBAL PROTOTYPES 31 | **********************/ 32 | 33 | /********************** 34 | * MACROS 35 | **********************/ 36 | 37 | 38 | #ifdef __cplusplus 39 | } /* extern "C" */ 40 | #endif 41 | 42 | #endif /*LV_PORT_FS_TEMPL_H*/ 43 | 44 | #endif /*Disable/Enable content*/ 45 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/porting/lv_port_indev_template.h: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * @file lv_port_indev_templ.h 4 | * 5 | */ 6 | 7 | /*Copy this file as "lv_port_indev.h" and set this value to "1" to enable content*/ 8 | #if 0 9 | 10 | #ifndef LV_PORT_INDEV_TEMPL_H 11 | #define LV_PORT_INDEV_TEMPL_H 12 | 13 | #ifdef __cplusplus 14 | extern "C" { 15 | #endif 16 | 17 | /********************* 18 | * INCLUDES 19 | *********************/ 20 | #include "lvgl/lvgl.h" 21 | 22 | /********************* 23 | * DEFINES 24 | *********************/ 25 | 26 | /********************** 27 | * TYPEDEFS 28 | **********************/ 29 | 30 | /********************** 31 | * GLOBAL PROTOTYPES 32 | **********************/ 33 | 34 | /********************** 35 | * MACROS 36 | **********************/ 37 | 38 | 39 | #ifdef __cplusplus 40 | } /* extern "C" */ 41 | #endif 42 | 43 | #endif /*LV_PORT_INDEV_TEMPL_H*/ 44 | 45 | #endif /*Disable/Enable content*/ 46 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/scripts/built_in_font/FontAwesome5-Solid+Brands+Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lvgl/scripts/built_in_font/FontAwesome5-Solid+Brands+Regular.woff -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/scripts/built_in_font/Roboto-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/Libraries/lvgl/scripts/built_in_font/Roboto-Regular.woff -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/scripts/clang-formatter.sh: -------------------------------------------------------------------------------- 1 | clang-format-7 -style=file ../src/lv_core/*.c -i 2 | clang-format-7 -style=file ../src/lv_draw/*.c -i 3 | clang-format-7 -style=file ../src/lv_hal/*.c -i 4 | clang-format-7 -style=file ../src/lv_misc/*.c -i 5 | clang-format-7 -style=file ../src/lv_objx/*.c -i 6 | clang-format-7 -style=file ../src/lv_themes/*.c -i 7 | 8 | clang-format-7 -style=file ../src/lv_core/*.h -i 9 | clang-format-7 -style=file ../src/lv_draw/*.h -i 10 | clang-format-7 -style=file ../src/lv_hal/*.h -i 11 | clang-format-7 -style=file ../src/lv_misc/*.h -i 12 | clang-format-7 -style=file ../src/lv_objx/*.h -i 13 | clang-format-7 -style=file ../src/lv_themes/*.h -i 14 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/scripts/cppcheck_run.sh: -------------------------------------------------------------------------------- 1 | cppcheck --template="{severity}\t{file}:{line}\t{id}: {message}" --enable=all ../src/ --output-file=cppcheck_res.txt --suppress=unusedFunction --suppress=preprocessorErrorDirective --force 2 | 3 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/scripts/lv_conf_checker.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3.6 2 | 3 | ''' 4 | Generates a checker file for lv_conf.h from lv_conf_templ.h define all the not defined values 5 | ''' 6 | 7 | 8 | import re 9 | 10 | fin = open("../lv_conf_template.h", "r") 11 | fout = open("../src/lv_conf_checker.h", "w") 12 | 13 | 14 | fout.write( 15 | '''/** 16 | * GENERATED FILE, DO NOT EDIT IT! 17 | * @file lv_conf_checker.h 18 | * Make sure all the defines of lv_conf.h have a default value 19 | **/ 20 | 21 | #ifndef LV_CONF_CHECKER_H 22 | #define LV_CONF_CHECKER_H 23 | ''' 24 | ) 25 | 26 | started = 0 27 | 28 | for i in fin.read().splitlines(): 29 | if not started: 30 | if '#define LV_CONF_H' in i: 31 | started = 1 32 | continue 33 | else: 34 | continue 35 | 36 | if '/*--END OF LV_CONF_H--*/' in i: break 37 | 38 | r = re.search(r'^ *# *define ([^\s]+).*$', i) 39 | 40 | if r: 41 | line = re.sub('\(.*?\)', '', r[1], 1) #remove parentheses from macros 42 | fout.write( 43 | f'#ifndef {line}\n' 44 | f'{i}\n' 45 | '#endif\n' 46 | ) 47 | elif re.search('^ *typedef .*;.*$', i): 48 | continue #ignore typedefs to avoide redeclaration 49 | else: 50 | fout.write(f'{i}\n') 51 | 52 | 53 | fout.write( 54 | ''' 55 | #endif /*LV_CONF_CHECKER_H*/ 56 | ''' 57 | ) 58 | 59 | fin.close() 60 | fout.close() 61 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/src/lv_core/lv_core.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_group.c 2 | CSRCS += lv_indev.c 3 | CSRCS += lv_disp.c 4 | CSRCS += lv_obj.c 5 | CSRCS += lv_refr.c 6 | CSRCS += lv_style.c 7 | CSRCS += lv_debug.c 8 | 9 | DEPPATH += --dep-path $(LVGL_DIR)/lvgl/src/lv_core 10 | VPATH += :$(LVGL_DIR)/lvgl/src/lv_core 11 | 12 | CFLAGS += "-I$(LVGL_DIR)/lvgl/src/lv_core" 13 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/src/lv_draw/lv_draw.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_draw_basic.c 2 | CSRCS += lv_draw.c 3 | CSRCS += lv_draw_rect.c 4 | CSRCS += lv_draw_label.c 5 | CSRCS += lv_draw_line.c 6 | CSRCS += lv_draw_img.c 7 | CSRCS += lv_draw_arc.c 8 | CSRCS += lv_draw_triangle.c 9 | CSRCS += lv_img_decoder.c 10 | CSRCS += lv_img_cache.c 11 | 12 | DEPPATH += --dep-path $(LVGL_DIR)/lvgl/src/lv_draw 13 | VPATH += :$(LVGL_DIR)/lvgl/src/lv_draw 14 | 15 | CFLAGS += "-I$(LVGL_DIR)lvgl/src/lv_draw" 16 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/src/lv_draw/lv_draw_arc.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_draw_arc.h 3 | * 4 | */ 5 | 6 | #ifndef LV_DRAW_ARC_H 7 | #define LV_DRAW_ARC_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #include "lv_draw.h" 17 | 18 | /********************* 19 | * DEFINES 20 | *********************/ 21 | 22 | /********************** 23 | * TYPEDEFS 24 | **********************/ 25 | 26 | /********************** 27 | * GLOBAL PROTOTYPES 28 | **********************/ 29 | 30 | /** 31 | * Draw an arc. (Can draw pie too with great thickness.) 32 | * @param center_x the x coordinate of the center of the arc 33 | * @param center_y the y coordinate of the center of the arc 34 | * @param radius the radius of the arc 35 | * @param mask the arc will be drawn only in this mask 36 | * @param start_angle the start angle of the arc (0 deg on the bottom, 90 deg on the right) 37 | * @param end_angle the end angle of the arc 38 | * @param style style of the arc (`body.thickness`, `body.main_color`, `body.opa` is used) 39 | * @param opa_scale scale down all opacities by the factor 40 | */ 41 | void lv_draw_arc(lv_coord_t center_x, lv_coord_t center_y, uint16_t radius, const lv_area_t * mask, 42 | uint16_t start_angle, uint16_t end_angle, const lv_style_t * style, lv_opa_t opa_scale); 43 | 44 | /********************** 45 | * MACROS 46 | **********************/ 47 | 48 | #ifdef __cplusplus 49 | } /* extern "C" */ 50 | #endif 51 | 52 | #endif /*LV_DRAW_ARC*/ 53 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/src/lv_draw/lv_draw_line.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_draw_line.h 3 | * 4 | */ 5 | 6 | #ifndef LV_DRAW_LINE_H 7 | #define LV_DRAW_LINE_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | 17 | /********************* 18 | * DEFINES 19 | *********************/ 20 | 21 | /********************** 22 | * TYPEDEFS 23 | **********************/ 24 | 25 | /********************** 26 | * GLOBAL PROTOTYPES 27 | **********************/ 28 | 29 | /** 30 | * Draw a line 31 | * @param point1 first point of the line 32 | * @param point2 second point of the line 33 | * @param mask the line will be drawn only on this area 34 | * @param style pointer to a line's style 35 | * @param opa_scale scale down all opacities by the factor 36 | */ 37 | void lv_draw_line(const lv_point_t * point1, const lv_point_t * point2, const lv_area_t * mask, 38 | const lv_style_t * style, lv_opa_t opa_scale); 39 | 40 | /********************** 41 | * MACROS 42 | **********************/ 43 | 44 | #ifdef __cplusplus 45 | } /* extern "C" */ 46 | #endif 47 | 48 | #endif /*LV_DRAW_LINE_H*/ 49 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/src/lv_draw/lv_draw_rect.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_draw_rect.h 3 | * 4 | */ 5 | 6 | #ifndef LV_DRAW_RECT_H 7 | #define LV_DRAW_RECT_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #include "lv_draw.h" 17 | 18 | /********************* 19 | * DEFINES 20 | *********************/ 21 | 22 | /********************** 23 | * TYPEDEFS 24 | **********************/ 25 | 26 | /********************** 27 | * GLOBAL PROTOTYPES 28 | **********************/ 29 | 30 | /** 31 | * Draw a rectangle 32 | * @param coords the coordinates of the rectangle 33 | * @param mask the rectangle will be drawn only in this mask 34 | * @param style pointer to a style 35 | * @param opa_scale scale down all opacities by the factor 36 | */ 37 | void lv_draw_rect(const lv_area_t * coords, const lv_area_t * mask, const lv_style_t * style, lv_opa_t opa_scale); 38 | 39 | /********************** 40 | * MACROS 41 | **********************/ 42 | 43 | #ifdef __cplusplus 44 | } /* extern "C" */ 45 | #endif 46 | 47 | #endif /*LV_DRAW_RECT_H*/ 48 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/src/lv_font/lv_font.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_font.c 2 | CSRCS += lv_font_fmt_txt.c 3 | CSRCS += lv_font_roboto_12.c 4 | CSRCS += lv_font_roboto_16.c 5 | CSRCS += lv_font_roboto_22.c 6 | CSRCS += lv_font_roboto_28.c 7 | CSRCS += lv_font_unscii_8.c 8 | 9 | DEPPATH += --dep-path $(LVGL_DIR)/lvgl/src/lv_font 10 | VPATH += :$(LVGL_DIR)/lvgl/src/lv_font 11 | 12 | CFLAGS += "-I$(LVGL_DIR)/lvgl/src/lv_font" 13 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/src/lv_hal/lv_hal.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_hal.h 3 | * 4 | */ 5 | 6 | #ifndef LV_HAL_H 7 | #define LV_HAL_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #include "lv_hal_disp.h" 17 | #include "lv_hal_indev.h" 18 | #include "lv_hal_tick.h" 19 | 20 | /********************* 21 | * DEFINES 22 | *********************/ 23 | 24 | /********************** 25 | * TYPEDEFS 26 | **********************/ 27 | 28 | /********************** 29 | * GLOBAL PROTOTYPES 30 | **********************/ 31 | 32 | /********************** 33 | * MACROS 34 | **********************/ 35 | 36 | #ifdef __cplusplus 37 | } /* extern "C" */ 38 | #endif 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/src/lv_hal/lv_hal.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_hal_disp.c 2 | CSRCS += lv_hal_indev.c 3 | CSRCS += lv_hal_tick.c 4 | 5 | DEPPATH += --dep-path $(LVGL_DIR)/lvgl/src/lv_hal 6 | VPATH += :$(LVGL_DIR)/lvgl/src/lv_hal 7 | 8 | CFLAGS += "-I$(LVGL_DIR)/lvgl/src/lv_hal" 9 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/src/lv_misc/lv_async.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_async.h 3 | * 4 | */ 5 | 6 | #ifndef LV_ASYNC_H 7 | #define LV_ASYNC_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | 17 | #include "lv_task.h" 18 | #include "lv_types.h" 19 | 20 | /********************* 21 | * DEFINES 22 | *********************/ 23 | 24 | /********************** 25 | * TYPEDEFS 26 | **********************/ 27 | 28 | /** 29 | * Type for async callback. 30 | */ 31 | typedef void (*lv_async_cb_t)(void *); 32 | 33 | typedef struct _lv_async_info_t { 34 | lv_async_cb_t cb; 35 | void *user_data; 36 | } lv_async_info_t; 37 | 38 | struct _lv_obj_t; 39 | 40 | /********************** 41 | * GLOBAL PROTOTYPES 42 | **********************/ 43 | 44 | /** 45 | * Call an asynchronous function the next time lv_task_handler() is run. This function is likely to return 46 | * **before** the call actually happens! 47 | * @param task_xcb a callback which is the task itself. 48 | * (the 'x' in the argument name indicates that its not a fully generic function because it not follows 49 | * the `func_name(object, callback, ...)` convention) 50 | * @param user_data custom parameter 51 | */ 52 | lv_res_t lv_async_call(lv_async_cb_t async_xcb, void * user_data); 53 | 54 | /********************** 55 | * MACROS 56 | **********************/ 57 | 58 | #ifdef __cplusplus 59 | } /* extern "C" */ 60 | #endif 61 | 62 | #endif /*LV_TEMPL_H*/ 63 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/src/lv_misc/lv_gc.c: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_gc.c 3 | * 4 | */ 5 | 6 | /********************* 7 | * INCLUDES 8 | *********************/ 9 | 10 | #include "lv_gc.h" 11 | #include "string.h" 12 | 13 | #if defined(LV_GC_INCLUDE) 14 | #include LV_GC_INCLUDE 15 | #endif /* LV_ENABLE_GC */ 16 | 17 | /********************* 18 | * DEFINES 19 | *********************/ 20 | 21 | /********************** 22 | * TYPEDEFS 23 | **********************/ 24 | 25 | /********************** 26 | * STATIC PROTOTYPES 27 | **********************/ 28 | 29 | /********************** 30 | * STATIC VARIABLES 31 | **********************/ 32 | #if(!defined(LV_ENABLE_GC)) || LV_ENABLE_GC == 0 33 | LV_ROOTS 34 | #endif /* LV_ENABLE_GC */ 35 | /********************** 36 | * MACROS 37 | **********************/ 38 | 39 | /********************** 40 | * GLOBAL FUNCTIONS 41 | **********************/ 42 | 43 | void lv_gc_clear_roots(void) 44 | { 45 | #define LV_CLEAR_ROOT(root_type, root_name) memset(&LV_GC_ROOT(root_name), 0, sizeof(LV_GC_ROOT(root_name))); 46 | LV_ITERATE_ROOTS(LV_CLEAR_ROOT) 47 | } 48 | 49 | /********************** 50 | * STATIC FUNCTIONS 51 | **********************/ 52 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/src/lv_misc/lv_misc.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_circ.c 2 | CSRCS += lv_area.c 3 | CSRCS += lv_task.c 4 | CSRCS += lv_fs.c 5 | CSRCS += lv_anim.c 6 | CSRCS += lv_mem.c 7 | CSRCS += lv_ll.c 8 | CSRCS += lv_color.c 9 | CSRCS += lv_txt.c 10 | CSRCS += lv_math.c 11 | CSRCS += lv_log.c 12 | CSRCS += lv_gc.c 13 | CSRCS += lv_utils.c 14 | CSRCS += lv_async.c 15 | CSRCS += lv_printf.c 16 | CSRCS += lv_bidi.c 17 | 18 | 19 | DEPPATH += --dep-path $(LVGL_DIR)/lvgl/src/lv_misc 20 | VPATH += :$(LVGL_DIR)/lvgl/src/lv_misc 21 | 22 | CFLAGS += "-I$(LVGL_DIR)/lvgl/src/lv_misc" 23 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/src/lv_misc/lv_templ.c: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_templ.c 3 | * 4 | */ 5 | 6 | /********************* 7 | * INCLUDES 8 | *********************/ 9 | 10 | /********************* 11 | * DEFINES 12 | *********************/ 13 | 14 | /********************** 15 | * TYPEDEFS 16 | **********************/ 17 | 18 | /* This typedef exists purely to keep -Wpedantic happy when the file is empty. */ 19 | /* It can be removed. */ 20 | typedef int keep_pedantic_happy; 21 | 22 | /********************** 23 | * STATIC PROTOTYPES 24 | **********************/ 25 | 26 | /********************** 27 | * STATIC VARIABLES 28 | **********************/ 29 | 30 | /********************** 31 | * MACROS 32 | **********************/ 33 | 34 | /********************** 35 | * GLOBAL FUNCTIONS 36 | **********************/ 37 | 38 | /********************** 39 | * STATIC FUNCTIONS 40 | **********************/ 41 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/src/lv_misc/lv_templ.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_templ.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TEMPL_H 7 | #define LV_TEMPL_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | 17 | /********************* 18 | * DEFINES 19 | *********************/ 20 | 21 | /********************** 22 | * TYPEDEFS 23 | **********************/ 24 | 25 | /********************** 26 | * GLOBAL PROTOTYPES 27 | **********************/ 28 | 29 | /********************** 30 | * MACROS 31 | **********************/ 32 | 33 | #ifdef __cplusplus 34 | } /* extern "C" */ 35 | #endif 36 | 37 | #endif /*LV_TEMPL_H*/ 38 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/src/lv_misc/lv_types.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_types.h 3 | * 4 | */ 5 | 6 | #ifndef LV_TYPES_H 7 | #define LV_TYPES_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | 17 | /********************* 18 | * DEFINES 19 | *********************/ 20 | // Check windows 21 | #ifdef _WIN64 22 | #define LV_ARCH_64 23 | #endif 24 | 25 | // Check GCC 26 | #ifdef __GNUC__ 27 | #if defined(__x86_64__) || defined(__ppc64__) 28 | #define LV_ARCH_64 29 | #endif 30 | #endif 31 | 32 | /********************** 33 | * TYPEDEFS 34 | **********************/ 35 | 36 | /** 37 | * LittlevGL error codes. 38 | */ 39 | enum { 40 | LV_RES_INV = 0, /*Typically indicates that the object is deleted (become invalid) in the action 41 | function or an operation was failed*/ 42 | LV_RES_OK, /*The object is valid (no deleted) after the action*/ 43 | }; 44 | typedef uint8_t lv_res_t; 45 | 46 | #ifdef LV_ARCH_64 47 | typedef uint64_t lv_uintptr_t; 48 | #else 49 | typedef uint32_t lv_uintptr_t; 50 | #endif 51 | 52 | /********************** 53 | * GLOBAL PROTOTYPES 54 | **********************/ 55 | 56 | /********************** 57 | * MACROS 58 | **********************/ 59 | 60 | #ifdef __cplusplus 61 | } /* extern "C" */ 62 | #endif 63 | 64 | #endif /*LV_TYPES_H*/ 65 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/src/lv_objx/lv_objx.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_arc.c 2 | CSRCS += lv_bar.c 3 | CSRCS += lv_cb.c 4 | CSRCS += lv_cpicker.c 5 | CSRCS += lv_ddlist.c 6 | CSRCS += lv_kb.c 7 | CSRCS += lv_line.c 8 | CSRCS += lv_mbox.c 9 | CSRCS += lv_preload.c 10 | CSRCS += lv_roller.c 11 | CSRCS += lv_table.c 12 | CSRCS += lv_tabview.c 13 | CSRCS += lv_tileview.c 14 | CSRCS += lv_btn.c 15 | CSRCS += lv_calendar.c 16 | CSRCS += lv_chart.c 17 | CSRCS += lv_canvas.c 18 | CSRCS += lv_gauge.c 19 | CSRCS += lv_label.c 20 | CSRCS += lv_list.c 21 | CSRCS += lv_slider.c 22 | CSRCS += lv_ta.c 23 | CSRCS += lv_spinbox.c 24 | CSRCS += lv_btnm.c 25 | CSRCS += lv_cont.c 26 | CSRCS += lv_img.c 27 | CSRCS += lv_imgbtn.c 28 | CSRCS += lv_led.c 29 | CSRCS += lv_lmeter.c 30 | CSRCS += lv_page.c 31 | CSRCS += lv_sw.c 32 | CSRCS += lv_win.c 33 | 34 | DEPPATH += --dep-path $(LVGL_DIR)/lvgl/src/lv_objx 35 | VPATH += :$(LVGL_DIR)/lvgl/src/lv_objx 36 | 37 | CFLAGS += "-I$(LVGL_DIR)/lvgl/src/lv_objx" 38 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/src/lv_themes/lv_theme_alien.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_theme_alien.h 3 | * 4 | */ 5 | 6 | #ifndef LV_THEME_ALIEN_H 7 | #define LV_THEME_ALIEN_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lv_conf.h" 18 | #else 19 | #include "../../../lv_conf.h" 20 | #endif 21 | 22 | #if LV_USE_THEME_ALIEN 23 | 24 | /********************* 25 | * DEFINES 26 | *********************/ 27 | 28 | /********************** 29 | * TYPEDEFS 30 | **********************/ 31 | 32 | /********************** 33 | * GLOBAL PROTOTYPES 34 | **********************/ 35 | 36 | /** 37 | * Initialize the alien theme 38 | * @param hue [0..360] hue value from HSV color space to define the theme's base color 39 | * @param font pointer to a font (NULL to use the default) 40 | * @return pointer to the initialized theme 41 | */ 42 | lv_theme_t * lv_theme_alien_init(uint16_t hue, lv_font_t * font); 43 | /** 44 | * Get a pointer to the theme 45 | * @return pointer to the theme 46 | */ 47 | lv_theme_t * lv_theme_get_alien(void); 48 | 49 | /********************** 50 | * MACROS 51 | **********************/ 52 | 53 | #endif 54 | 55 | #ifdef __cplusplus 56 | } /* extern "C" */ 57 | #endif 58 | 59 | #endif /*LV_THEME_ALIEN_H*/ 60 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/src/lv_themes/lv_theme_default.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_theme_default.h 3 | * 4 | */ 5 | 6 | #ifndef LV_THEME_DEFAULT_H 7 | #define LV_THEME_DEFAULT_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lv_conf.h" 18 | #else 19 | #include "../../../lv_conf.h" 20 | #endif 21 | 22 | #if LV_USE_THEME_DEFAULT 23 | 24 | /********************* 25 | * DEFINES 26 | *********************/ 27 | 28 | /********************** 29 | * TYPEDEFS 30 | **********************/ 31 | 32 | /********************** 33 | * GLOBAL PROTOTYPES 34 | **********************/ 35 | 36 | /** 37 | * Initialize the default theme 38 | * @param hue [0..360] hue value from HSV color space to define the theme's base color 39 | * @param font pointer to a font (NULL to use the default) 40 | * @return pointer to the initialized theme 41 | */ 42 | lv_theme_t * lv_theme_default_init(uint16_t hue, lv_font_t * font); 43 | 44 | /** 45 | * Get a pointer to the theme 46 | * @return pointer to the theme 47 | */ 48 | lv_theme_t * lv_theme_get_default(void); 49 | 50 | /********************** 51 | * MACROS 52 | **********************/ 53 | 54 | #endif 55 | 56 | #ifdef __cplusplus 57 | } /* extern "C" */ 58 | #endif 59 | 60 | #endif /*LV_THEME_TEMPL_H*/ 61 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/src/lv_themes/lv_theme_material.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_theme_material.h 3 | * 4 | */ 5 | 6 | #ifndef LV_THEME_MATERIAL_H 7 | #define LV_THEME_MATERIAL_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lv_conf.h" 18 | #else 19 | #include "../../../lv_conf.h" 20 | #endif 21 | 22 | #if LV_USE_THEME_MATERIAL 23 | 24 | /********************* 25 | * DEFINES 26 | *********************/ 27 | 28 | /********************** 29 | * TYPEDEFS 30 | **********************/ 31 | 32 | /********************** 33 | * GLOBAL PROTOTYPES 34 | **********************/ 35 | 36 | /** 37 | * Initialize the material theme 38 | * @param hue [0..360] hue value from HSV color space to define the theme's base color 39 | * @param font pointer to a font (NULL to use the default) 40 | * @return pointer to the initialized theme 41 | */ 42 | lv_theme_t * lv_theme_material_init(uint16_t hue, lv_font_t * font); 43 | 44 | /** 45 | * Get a pointer to the theme 46 | * @return pointer to the theme 47 | */ 48 | lv_theme_t * lv_theme_get_material(void); 49 | 50 | /********************** 51 | * MACROS 52 | **********************/ 53 | 54 | #endif 55 | 56 | #ifdef __cplusplus 57 | } /* extern "C" */ 58 | #endif 59 | 60 | #endif /*LV_THEME_MATERIAL_H*/ 61 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/src/lv_themes/lv_theme_mono.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_theme_mono.h 3 | * 4 | */ 5 | 6 | #ifndef LV_THEME_MONO_H 7 | #define LV_THEME_MONO_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lv_conf.h" 18 | #else 19 | #include "../../../lv_conf.h" 20 | #endif 21 | 22 | #if LV_USE_THEME_MONO 23 | 24 | /********************* 25 | * DEFINES 26 | *********************/ 27 | 28 | /********************** 29 | * TYPEDEFS 30 | **********************/ 31 | 32 | /********************** 33 | * GLOBAL PROTOTYPES 34 | **********************/ 35 | 36 | /** 37 | * Initialize the mono theme 38 | * @param hue [0..360] hue value from HSV color space to define the theme's base color 39 | * @param font pointer to a font (NULL to use the default) 40 | * @return pointer to the initialized theme 41 | */ 42 | lv_theme_t * lv_theme_mono_init(uint16_t hue, lv_font_t * font); 43 | 44 | /** 45 | * Get a pointer to the theme 46 | * @return pointer to the theme 47 | */ 48 | lv_theme_t * lv_theme_get_mono(void); 49 | 50 | /********************** 51 | * MACROS 52 | **********************/ 53 | 54 | #endif 55 | 56 | #ifdef __cplusplus 57 | } /* extern "C" */ 58 | #endif 59 | 60 | #endif /*LV_THEME_MONO_H*/ 61 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/src/lv_themes/lv_theme_nemo.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_theme_nemo.h 3 | * 4 | */ 5 | 6 | #ifndef LV_THEME_NEMO_H 7 | #define LV_THEME_NEMO_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lv_conf.h" 18 | #else 19 | #include "../../../lv_conf.h" 20 | #endif 21 | 22 | #if LV_USE_THEME_NEMO 23 | 24 | /********************* 25 | * DEFINES 26 | *********************/ 27 | 28 | /********************** 29 | * TYPEDEFS 30 | **********************/ 31 | 32 | /********************** 33 | * GLOBAL PROTOTYPES 34 | **********************/ 35 | 36 | /** 37 | * Initialize the material theme 38 | * @param hue [0..360] hue value from HSV color space to define the theme's base color 39 | * @param font pointer to a font (NULL to use the default) 40 | * @return pointer to the initialized theme 41 | */ 42 | lv_theme_t * lv_theme_nemo_init(uint16_t hue, lv_font_t * font); 43 | 44 | /** 45 | * Get a pointer to the theme 46 | * @return pointer to the theme 47 | */ 48 | lv_theme_t * lv_theme_get_nemo(void); 49 | 50 | /********************** 51 | * MACROS 52 | **********************/ 53 | 54 | #endif 55 | 56 | #ifdef __cplusplus 57 | } /* extern "C" */ 58 | #endif 59 | 60 | #endif /*LV_THEME_NEMO_H*/ 61 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/src/lv_themes/lv_theme_night.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_theme_night.h 3 | * 4 | */ 5 | 6 | #ifndef LV_THEME_NIGHT_H 7 | #define LV_THEME_NIGHT_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lv_conf.h" 18 | #else 19 | #include "../../../lv_conf.h" 20 | #endif 21 | 22 | #if LV_USE_THEME_NIGHT 23 | 24 | /********************* 25 | * DEFINES 26 | *********************/ 27 | 28 | /********************** 29 | * TYPEDEFS 30 | **********************/ 31 | 32 | /********************** 33 | * GLOBAL PROTOTYPES 34 | **********************/ 35 | 36 | /** 37 | * Initialize the night theme 38 | * @param hue [0..360] hue value from HSV color space to define the theme's base color 39 | * @param font pointer to a font (NULL to use the default) 40 | * @return pointer to the initialized theme 41 | */ 42 | lv_theme_t * lv_theme_night_init(uint16_t hue, lv_font_t * font); 43 | 44 | /** 45 | * Get a pointer to the theme 46 | * @return pointer to the theme 47 | */ 48 | lv_theme_t * lv_theme_get_night(void); 49 | 50 | /********************** 51 | * MACROS 52 | **********************/ 53 | 54 | #endif 55 | 56 | #ifdef __cplusplus 57 | } /* extern "C" */ 58 | #endif 59 | 60 | #endif /*LV_THEME_NIGHT_H*/ 61 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/src/lv_themes/lv_theme_templ.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_theme_templ.h 3 | * 4 | */ 5 | 6 | #ifndef LV_THEME_TEMPL_H 7 | #define LV_THEME_TEMPL_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lv_conf.h" 18 | #else 19 | #include "../../../lv_conf.h" 20 | #endif 21 | 22 | #if LV_USE_THEME_TEMPL 23 | 24 | /********************* 25 | * DEFINES 26 | *********************/ 27 | 28 | /********************** 29 | * TYPEDEFS 30 | **********************/ 31 | 32 | /********************** 33 | * GLOBAL PROTOTYPES 34 | **********************/ 35 | 36 | /** 37 | * Initialize the templ theme 38 | * @param hue [0..360] hue value from HSV color space to define the theme's base color 39 | * @param font pointer to a font (NULL to use the default) 40 | * @return pointer to the initialized theme 41 | */ 42 | lv_theme_t * lv_theme_templ_init(uint16_t hue, lv_font_t * font); 43 | 44 | /** 45 | * Get a pointer to the theme 46 | * @return pointer to the theme 47 | */ 48 | lv_theme_t * lv_theme_get_templ(void); 49 | 50 | /********************** 51 | * MACROS 52 | **********************/ 53 | 54 | #endif 55 | 56 | #ifdef __cplusplus 57 | } /* extern "C" */ 58 | #endif 59 | 60 | #endif /*LV_THEME_TEMPL_H*/ 61 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/src/lv_themes/lv_theme_zen.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_theme_zen.h 3 | * 4 | */ 5 | 6 | #ifndef LV_THEME_ZEN_H 7 | #define LV_THEME_ZEN_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | #ifdef LV_CONF_INCLUDE_SIMPLE 17 | #include "lv_conf.h" 18 | #else 19 | #include "../../../lv_conf.h" 20 | #endif 21 | 22 | #if LV_USE_THEME_ZEN 23 | 24 | /********************* 25 | * DEFINES 26 | *********************/ 27 | 28 | /********************** 29 | * TYPEDEFS 30 | **********************/ 31 | 32 | /********************** 33 | * GLOBAL PROTOTYPES 34 | **********************/ 35 | 36 | /** 37 | * Initialize the zen theme 38 | * @param hue [0..360] hue value from HSV color space to define the theme's base color 39 | * @param font pointer to a font (NULL to use the default) 40 | * @return pointer to the initialized theme 41 | */ 42 | lv_theme_t * lv_theme_zen_init(uint16_t hue, lv_font_t * font); 43 | 44 | /** 45 | * Get a pointer to the theme 46 | * @return pointer to the theme 47 | */ 48 | lv_theme_t * lv_theme_get_zen(void); 49 | 50 | /********************** 51 | * MACROS 52 | **********************/ 53 | 54 | #endif 55 | 56 | #ifdef __cplusplus 57 | } /* extern "C" */ 58 | #endif 59 | 60 | #endif /*LV_THEME_ZEN_H*/ 61 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/src/lv_themes/lv_themes.mk: -------------------------------------------------------------------------------- 1 | CSRCS += lv_theme_alien.c 2 | CSRCS += lv_theme.c 3 | CSRCS += lv_theme_default.c 4 | CSRCS += lv_theme_night.c 5 | CSRCS += lv_theme_templ.c 6 | CSRCS += lv_theme_zen.c 7 | CSRCS += lv_theme_material.c 8 | CSRCS += lv_theme_nemo.c 9 | CSRCS += lv_theme_mono.c 10 | 11 | DEPPATH += --dep-path $(LVGL_DIR)/lvgl/src/lv_themes 12 | VPATH += :$(LVGL_DIR)/lvgl/src/lv_themes 13 | 14 | CFLAGS += "-I$(LVGL_DIR)/lvgl/src/lv_themes" 15 | -------------------------------------------------------------------------------- /WatchX/Libraries/lvgl/src/lv_version.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file lv_version.h 3 | * 4 | */ 5 | 6 | #ifndef LV_VERSION_H 7 | #define LV_VERSION_H 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | /********************* 14 | * INCLUDES 15 | *********************/ 16 | /*Current version of LittlevGL*/ 17 | #define LVGL_VERSION_MAJOR 6 18 | #define LVGL_VERSION_MINOR 1 19 | #define LVGL_VERSION_PATCH 2 20 | #define LVGL_VERSION_INFO "" 21 | 22 | 23 | /********************* 24 | * DEFINES 25 | *********************/ 26 | 27 | /********************** 28 | * TYPEDEFS 29 | **********************/ 30 | 31 | /********************** 32 | * GLOBAL PROTOTYPES 33 | **********************/ 34 | 35 | /********************** 36 | * MACROS 37 | **********************/ 38 | /** Gives 1 if the x.y.z version is supported in the current version 39 | * Usage: 40 | * 41 | * - Require v6 42 | * #if LV_VERSION_CHECK(6,0,0) 43 | * new_func_in_v6(); 44 | * #endif 45 | * 46 | * 47 | * - Require at least v5.3 48 | * #if LV_VERSION_CHECK(5,3,0) 49 | * new_feature_from_v5_3(); 50 | * #endif 51 | * 52 | * 53 | * - Require v5.3.2 bugfixes 54 | * #if LV_VERSION_CHECK(5,3,2) 55 | * bugfix_in_v5_3_2(); 56 | * #endif 57 | * 58 | * */ 59 | #define LV_VERSION_CHECK(x,y,z) (x == LVGL_VERSION_MAJOR && (y < LVGL_VERSION_MINOR || (y == LVGL_VERSION_MINOR && z <= LVGL_VERSION_PATCH))) 60 | 61 | 62 | #ifdef __cplusplus 63 | } /* extern "C" */ 64 | #endif 65 | 66 | #endif /*LV_VERSION_H*/ 67 | -------------------------------------------------------------------------------- /WatchX/MDK-ARM/RTE/_Project/RTE_Components.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Auto generated Run-Time-Environment Component Configuration File 4 | * *** Do not modify ! *** 5 | * 6 | * Project: 'proj' 7 | * Target: 'Project' 8 | */ 9 | 10 | #ifndef RTE_COMPONENTS_H 11 | #define RTE_COMPONENTS_H 12 | 13 | 14 | #endif /* RTE_COMPONENTS_H */ 15 | -------------------------------------------------------------------------------- /WatchX/MDK-ARM/RTE/_WatchX/RTE_Components.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Auto generated Run-Time-Environment Component Configuration File 4 | * *** Do not modify ! *** 5 | * 6 | * Project: 'WatchX' 7 | * Target: 'WatchX' 8 | */ 9 | 10 | #ifndef RTE_COMPONENTS_H 11 | #define RTE_COMPONENTS_H 12 | 13 | 14 | /* 15 | * Define the Device Header File: 16 | */ 17 | #define CMSIS_device_header "stm32f4xx.h" 18 | 19 | 20 | #endif /* RTE_COMPONENTS_H */ 21 | -------------------------------------------------------------------------------- /WatchX/README.md: -------------------------------------------------------------------------------- 1 | # WatchX 更新日志 2 | > https://github.com/FASTSHIFT/WatchX 3 | 4 | ## [v0.1] - 2020-03-07 5 | * 1.框架搭建完成,UI基于littlevGL v6.1.2 6 | * 2.优化屏幕驱动,刷新率提升至104FPS 7 | 8 | ## [v0.2] - 2020-03-11 9 | * 1.主表盘界面完成 10 | * 2.设置界面完成 11 | * 3.时间设置界面完成 12 | 13 | ## [v0.3] - 2020-03-12 14 | * 1.秒表完成 15 | * 2.海拔表完成 16 | * 3.About完成 17 | * 4.所有功能基本完工 18 | 19 | ## [v0.4] - 2020-03-14 20 | * 1.添加LV_OBJ_ADD_ANIM,更简洁的动画绑定 21 | 22 | ## [v0.5] - 2020-03-18 23 | * 1.添加低功耗模式 24 | * 2.添加Arduboy Game System 25 | * 3.添加游戏 "CHRI-BOCCHI CAT" 26 | 27 | ## [v0.6] - 2020-03-23 28 | * 1.海拔显示添加自动量程 29 | * 2.添加MillisTaskManager,可统计CPU占用率 30 | * 3.添加时间上下滑动特效 31 | 32 | ## [v0.7] - 2020-05-03 33 | * 1.屏幕使用DMA发送,配合lvgl乒乓缓冲,画面无撕裂 34 | * 2.Brightness更改为Backlight 35 | 36 | ## [v0.8] - 2020-06-27 37 | * 1.修复电量显示的问题 38 | * 2.添加 电源使能保持脚POWER_ON 和 电源使能按键状态读取脚POWER_EN 39 | * 3.添加屏幕亮度掉电保存支持 40 | * 4.添加自动待机时间设置以及掉电保存支持 41 | * 5.感谢"日天电子工作室"提出的改进建议 42 | * 6.修改了一些函数的命名 43 | 44 | ## [v0.9] - 2020-07-30 45 | * 1.更新MillisTaskManager库,无需手动指定ID 46 | * 2.TFT_LED_Pin 更名为 TFT_BLK_Pin 47 | * 3.添加部分注释 48 | * 4.Home更名为DialPlate(表盘)页面,Settings更名为MainMenu页面 49 | * 5.更新PageManager v1.4 50 | * 6.添加Arduboy2 51 | 52 | ## [v1.0] - 2020-12-07 53 | * 1.POWER初始化整合 54 | * 2.修改默认的动画曲线,更强的非线性效果,lv_anim_path_ease_in_out -> lv_anim_path_ease_out 55 | * 3.修正错误的单词拼写,xxx_Creat -> xxx_Create, Fouce -> Focus 56 | * 4.加大lv_disp_buf,使用两个半屏buffer,提升刷新率 57 | * 5.去除FileGroup.h 58 | * 6.更新海拔显示的tick自适应方法 59 | -------------------------------------------------------------------------------- /WatchX/WatchX/BSP/BSP.h: -------------------------------------------------------------------------------- 1 | #ifndef __BSP_H 2 | #define __BSP_H 3 | 4 | #include "Basic/SysConfig.h" 5 | #include "Arduino.h" 6 | 7 | /*BMP*/ 8 | #include "Adafruit_BMP180/Adafruit_BMP085.h" 9 | extern Adafruit_BMP085 BMP180; 10 | void BMP_Init(); 11 | void BMP_Update(); 12 | 13 | /*Backlight*/ 14 | void Backlight_Init(); 15 | uint16_t Backlight_GetValue(); 16 | void Backlight_SetValue(int16_t val); 17 | void Backlight_SetGradual(uint16_t target, uint16_t time = 500); 18 | void Backlight_UpdateBKP(void); 19 | uint16_t Backlight_GetBKP(void); 20 | 21 | /*Buttons*/ 22 | #include "ButtonEvent/ButtonEvent.h" 23 | extern ButtonEvent btUP; 24 | extern ButtonEvent btOK; 25 | extern ButtonEvent btDOWN; 26 | void Button_Init(); 27 | void Button_Update(); 28 | 29 | /*Power*/ 30 | void Power_Init(); 31 | void Power_Shutdown(); 32 | void Power_HandleTimeUpdate(); 33 | void Power_SetAutoLowPowerTimeout(uint16_t sec); 34 | uint16_t Power_GetAutoLowPowerTimeout(); 35 | void Power_SetAutoLowPowerEnable(bool en); 36 | void Power_AutoShutdownUpdate(); 37 | 38 | /*LED*/ 39 | void LED_Init(); 40 | void LED_SetEnable(bool en); 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /WatchX/WatchX/BSP/BSP_BMP.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/BSP/BSP_BMP.cpp -------------------------------------------------------------------------------- /WatchX/WatchX/BSP/BSP_Backlight.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/BSP/BSP_Backlight.cpp -------------------------------------------------------------------------------- /WatchX/WatchX/BSP/BSP_Button.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/BSP/BSP_Button.cpp -------------------------------------------------------------------------------- /WatchX/WatchX/BSP/BSP_IMU.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/BSP/BSP_IMU.cpp -------------------------------------------------------------------------------- /WatchX/WatchX/BSP/BSP_LED.cpp: -------------------------------------------------------------------------------- 1 | #include "BSP.h" 2 | 3 | void LED_Init() 4 | { 5 | pinMode(LED_Pin, OUTPUT); 6 | } 7 | 8 | void LED_SetEnable(bool en) 9 | { 10 | digitalWrite(LED_Pin, en); 11 | } 12 | -------------------------------------------------------------------------------- /WatchX/WatchX/BSP/BSP_Power.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/BSP/BSP_Power.cpp -------------------------------------------------------------------------------- /WatchX/WatchX/Basic/CommonMacro.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/Basic/CommonMacro.h -------------------------------------------------------------------------------- /WatchX/WatchX/Basic/SysConfig.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/Basic/SysConfig.h -------------------------------------------------------------------------------- /WatchX/WatchX/Basic/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/Basic/main.cpp -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/DisplayAppWin.cpp: -------------------------------------------------------------------------------- 1 | #include "DisplayPrivate.h" 2 | 3 | typedef struct{ 4 | lv_obj_t * cont; 5 | lv_style_t style; 6 | }AppWindow_TypeDef; 7 | 8 | static AppWindow_TypeDef appWindow_Grp[PAGE_MAX]; 9 | 10 | lv_obj_t * AppWindow_GetCont(uint8_t pageID) 11 | { 12 | return (pageID < PAGE_MAX) ? appWindow_Grp[pageID].cont : NULL; 13 | } 14 | 15 | lv_coord_t AppWindow_GetHeight() 16 | { 17 | return (lv_obj_get_height(lv_scr_act()));// - BarStatus_GetHeight() - BarNavigation_GetHeight()); 18 | } 19 | 20 | lv_coord_t AppWindow_GetWidth() 21 | { 22 | return (lv_obj_get_width(lv_scr_act())); 23 | } 24 | 25 | void AppWindow_Create() 26 | { 27 | for(int i = 0; i < PAGE_MAX; i++) 28 | { 29 | appWindow_Grp[i].cont = lv_cont_create(lv_scr_act(), NULL); 30 | 31 | lv_obj_set_size(appWindow_Grp[i].cont, AppWindow_GetWidth(), AppWindow_GetHeight()); 32 | lv_obj_align(appWindow_Grp[i].cont, NULL, LV_ALIGN_CENTER, 0, 0); 33 | lv_cont_set_fit(appWindow_Grp[i].cont, LV_FIT_NONE); 34 | 35 | appWindow_Grp[i].style = lv_style_plain; 36 | appWindow_Grp[i].style.body.main_color = LV_COLOR_BLACK; 37 | appWindow_Grp[i].style.body.grad_color = LV_COLOR_BLACK; 38 | lv_cont_set_style(appWindow_Grp[i].cont, LV_CONT_STYLE_MAIN, &appWindow_Grp[i].style); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/DisplayBasic.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/DisplayBasic.cpp -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/DisplayPrivate.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/DisplayPrivate.h -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/Font/EUROSTARBLACKEXTENDED.TTF: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/Font/EUROSTARBLACKEXTENDED.TTF -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/Font/HANDGOTN.TTF: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/Font/HANDGOTN.TTF -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/Font/Morganite-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/Font/Morganite-Bold.ttf -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/IMG/PNG/2{TC96G9ARG$OZNXM8_0014.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/IMG/PNG/2{TC96G9ARG$OZNXM8_0014.png -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/IMG/PNG/ALTpage-01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/IMG/PNG/ALTpage-01.png -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/IMG/PNG/WatchX资源 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/IMG/PNG/WatchX资源 2.png -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/IMG/PNG/ZBPHJGK(RJNHVRD%9}R%T83.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/IMG/PNG/ZBPHJGK(RJNHVRD%9}R%T83.png -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/IMG/PNG/]4$%W{M8_(@`]}2N2@3%U~7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/IMG/PNG/]4$%W{M8_(@`]}2N2@3%U~7.png -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/IMG/PNG/background1-01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/IMG/PNG/background1-01.png -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/IMG/PNG/file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/IMG/PNG/file.png -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/IMG/PNG/info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/IMG/PNG/info.png -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/IMG/PNG/light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/IMG/PNG/light.png -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/IMG/PNG/mainmenu-01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/IMG/PNG/mainmenu-01.png -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/IMG/PNG/mountain.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/IMG/PNG/mountain.png -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/IMG/PNG/page1-02-01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/IMG/PNG/page1-02-01.png -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/IMG/PNG/pressure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/IMG/PNG/pressure.png -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/IMG/PNG/run.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/IMG/PNG/run.png -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/IMG/PNG/shadow2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/IMG/PNG/shadow2.png -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/IMG/PNG/shadow_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/IMG/PNG/shadow_down.png -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/IMG/PNG/shadow_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/IMG/PNG/shadow_up.png -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/IMG/PNG/stop_watch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/IMG/PNG/stop_watch.png -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/IMG/PNG/temp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/IMG/PNG/temp.png -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/IMG/PNG/theme.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/IMG/PNG/theme.png -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/IMG/PNG/time_cfg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/IMG/PNG/time_cfg.png -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/IMG/PNG/trigger.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/IMG/PNG/trigger.png -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/IMG/PNG/vifextech.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/IMG/PNG/vifextech.png -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/IMG/PNG/warnning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/IMG/PNG/warnning.png -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/IMG/PNG/watch1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/IMG/PNG/watch1.png -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/IMG/PNG/watch2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/IMG/PNG/watch2.png -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/Page/Page_About.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/Page/Page_About.cpp -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/Page/Page_Altitude.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/Page/Page_Altitude.cpp -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/Page/Page_BacklightCfg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/Page/Page_BacklightCfg.cpp -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/Page/Page_DialPlate.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/Page/Page_DialPlate.cpp -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/Page/Page_EXAMPLE.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/Page/Page_EXAMPLE.cpp -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/Page/Page_MainMenu.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/Page/Page_MainMenu.cpp -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/Page/Page_StopWatch.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/Page/Page_StopWatch.cpp -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/Page/Page_TimeCfg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/Page/Page_TimeCfg.cpp -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/lv_ext_func.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/lv_ext_func.cpp -------------------------------------------------------------------------------- /WatchX/WatchX/GUI/lv_port_disp.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/GUI/lv_port_disp.cpp -------------------------------------------------------------------------------- /WatchX/WatchX/Game/Arduboy/ab_logo.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #ifndef ARDUBOY_LOGO_CREATED 4 | #define ARDUBOY_LOGO_CREATED 5 | 6 | // arduboy_logo.png 7 | // 88x16 8 | PROGMEM const unsigned char arduboy_logo[] = { 9 | 0xF0, 0xF8, 0x9C, 0x8E, 0x87, 0x83, 0x87, 0x8E, 0x9C, 0xF8, 10 | 0xF0, 0x00, 0x00, 0xFE, 0xFF, 0x03, 0x03, 0x03, 0x03, 0x03, 11 | 0x07, 0x0E, 0xFC, 0xF8, 0x00, 0x00, 0xFE, 0xFF, 0x03, 0x03, 12 | 0x03, 0x03, 0x03, 0x07, 0x0E, 0xFC, 0xF8, 0x00, 0x00, 0xFF, 13 | 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 14 | 0x00, 0x00, 0xFE, 0xFF, 0x83, 0x83, 0x83, 0x83, 0x83, 0xC7, 15 | 0xEE, 0x7C, 0x38, 0x00, 0x00, 0xF8, 0xFC, 0x0E, 0x07, 0x03, 16 | 0x03, 0x03, 0x07, 0x0E, 0xFC, 0xF8, 0x00, 0x00, 0x3F, 0x7F, 17 | 0xE0, 0xC0, 0x80, 0x80, 0xC0, 0xE0, 0x7F, 0x3F, 0xFF, 0xFF, 18 | 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0xFF, 0xFF, 0x00, 19 | 0x00, 0xFF, 0xFF, 0x0C, 0x0C, 0x0C, 0x0C, 0x1C, 0x3E, 0x77, 20 | 0xE3, 0xC1, 0x00, 0x00, 0x7F, 0xFF, 0xC0, 0xC0, 0xC0, 0xC0, 21 | 0xC0, 0xE0, 0x70, 0x3F, 0x1F, 0x00, 0x00, 0x1F, 0x3F, 0x70, 22 | 0xE0, 0xC0, 0xC0, 0xC0, 0xE0, 0x70, 0x3F, 0x1F, 0x00, 0x00, 23 | 0x7F, 0xFF, 0xC1, 0xC1, 0xC1, 0xC1, 0xC1, 0xE3, 0x77, 0x3E, 24 | 0x1C, 0x00, 0x00, 0x1F, 0x3F, 0x70, 0xE0, 0xC0, 0xC0, 0xC0, 25 | 0xE0, 0x70, 0x3F, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 26 | 0xFF, 0xFF, 0x01, 0x00, 0x00, 0x00 27 | 28 | }; 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /WatchX/WatchX/Game/Arduboy/audio/audio.h: -------------------------------------------------------------------------------- 1 | #ifndef ArduboyAudio_h 2 | #define ArduboyAudio_h 3 | 4 | #include 5 | //#include 6 | #include 7 | //#include 8 | 9 | #define AVAILABLE_TIMERS 2 10 | #define TUNE_OP_PLAYNOTE 0x90 /* play a note: low nibble is generator #, note is next byte */ 11 | #define TUNE_OP_STOPNOTE 0x80 /* stop a note: low nibble is generator # */ 12 | #define TUNE_OP_RESTART 0xe0 /* restart the score from the beginning */ 13 | #define TUNE_OP_STOP 0xf0 /* stop playing */ 14 | 15 | 16 | class ArduboyAudio 17 | { 18 | public: 19 | void static begin(); 20 | void static on(); 21 | void static off(); 22 | void static saveOnOff(); 23 | bool static enabled(); 24 | 25 | protected: 26 | bool static audio_enabled; 27 | }; 28 | 29 | 30 | class ArduboyTunes 31 | { 32 | public: 33 | // Playtune Functions 34 | 35 | /// Assign a timer to an output pin. 36 | void initChannel(byte pin); 37 | 38 | /// Start playing a polyphonic score. 39 | void playScore(const byte *score); 40 | 41 | /// Stop playing the score. 42 | void stopScore(); 43 | 44 | /// Delay in milliseconds. 45 | void delay(unsigned msec); 46 | 47 | /// Stop all timers. 48 | void closeChannels(); 49 | 50 | bool playing(); 51 | void tone(unsigned int frequency, unsigned long duration); 52 | 53 | // called via interrupt 54 | void static step(); 55 | void static soundOutput(); 56 | 57 | private: 58 | void static playNote (byte chan, byte note); 59 | void static stopNote (byte chan); 60 | }; 61 | #endif 62 | -------------------------------------------------------------------------------- /WatchX/WatchX/Game/Arduboy2/Arduboy2Audio.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * @file Arduboy2Audio.cpp 3 | * \brief 4 | * The Arduboy2Audio class for speaker and sound control. 5 | */ 6 | 7 | #include "Arduboy2.h" 8 | #include "Arduboy2Audio.h" 9 | 10 | bool Arduboy2Audio::audio_enabled = false; 11 | 12 | void Arduboy2Audio::on() 13 | { 14 | // fire up audio pins by seting them as outputs 15 | 16 | audio_enabled = true; 17 | } 18 | 19 | void Arduboy2Audio::off() 20 | { 21 | audio_enabled = false; 22 | // shut off audio pins by setting them as inputs 23 | } 24 | 25 | void Arduboy2Audio::toggle() 26 | { 27 | if (audio_enabled) 28 | off(); 29 | else 30 | on(); 31 | } 32 | 33 | void Arduboy2Audio::saveOnOff() 34 | { 35 | //EEPROM.update(EEPROM_AUDIO_ON_OFF, audio_enabled); 36 | } 37 | 38 | void Arduboy2Audio::begin() 39 | { 40 | if (1/*EEPROM.read(EEPROM_AUDIO_ON_OFF)*/) 41 | on(); 42 | else 43 | off(); 44 | } 45 | 46 | bool Arduboy2Audio::enabled() 47 | { 48 | return audio_enabled; 49 | } 50 | -------------------------------------------------------------------------------- /WatchX/WatchX/Game/Arduboy2/SpritesCommon.h: -------------------------------------------------------------------------------- 1 | /** 2 | * @file SpritesCommon.h 3 | * \brief 4 | * Common header file for sprite functions 5 | */ 6 | 7 | #ifndef SpritesCommon_h 8 | #define SpritesCommon_h 9 | 10 | #define SPRITE_MASKED 1 11 | #define SPRITE_UNMASKED 2 12 | #define SPRITE_OVERWRITE 2 13 | #define SPRITE_PLUS_MASK 3 14 | #define SPRITE_IS_MASK 250 15 | #define SPRITE_IS_MASK_ERASE 251 16 | #define SPRITE_AUTO_MODE 255 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /WatchX/WatchX/Game/GamePrivate.h: -------------------------------------------------------------------------------- 1 | #ifndef __GAMEPRIVATE_H 2 | #define __GAMEPRIVATE_H 3 | 4 | #include 5 | #include "WString.h" 6 | #include "Basic/CommonMacro.h" 7 | #include "PageManager/PageManager.h" 8 | 9 | extern PageManager GamePage; 10 | 11 | #define GAME_FILE_PATH "/Game/" 12 | #define GAME_SETUP_ONCE()\ 13 | do{\ 14 | static bool isSetup = false;\ 15 | if(isSetup)return;\ 16 | isSetup=true;\ 17 | }while(0) 18 | 19 | typedef enum { 20 | GAME_BUTTON_A, 21 | GAME_BUTTON_B, 22 | GAME_BUTTON_UP, 23 | GAME_BUTTON_DOWN, 24 | GAME_BUTTON_LEFT, 25 | GAME_BUTTON_RIGHT, 26 | GAME_BUTTON_MAX 27 | }GameButton_Type; 28 | 29 | typedef enum { 30 | GAME_LED_RED, 31 | GAME_LED_BLUE, 32 | GAME_LED_GREEN, 33 | GAME_LED_MAX 34 | }GameLED_Type; 35 | 36 | enum { 37 | GAME_NONE, 38 | GAME_chrbocchi, 39 | GAME_MAX 40 | }; 41 | 42 | void Game_Begin(); 43 | String Game_GetNameList(); 44 | const char* Game_GetName(uint8_t id); 45 | int16_t Game_GetNameID(const char* name); 46 | bool Game_GetButtonPressed(uint8_t btn_id); 47 | void Game_SetButtonState(uint8_t btn_id, bool state); 48 | void Game_ClearButtonState(); 49 | 50 | void Game_SetLEDState(uint8_t led_id, bool val); 51 | void Game_SetLEDBright(uint8_t led_id, uint8_t val); 52 | 53 | void Game_DispGetContPos(int16_t* x, int16_t* y); 54 | void Game_DispSetBasePoint(int16_t x, int16_t y); 55 | bool Game_DispIsBusy(); 56 | bool Game_DispReqUpdate(bool clear = false); 57 | void Game_DispTaskUpdate(); 58 | uint8_t* Game_DispGetBuffer(); 59 | 60 | #endif 61 | -------------------------------------------------------------------------------- /WatchX/WatchX/Game/Page_Game.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/Game/Page_Game.cpp -------------------------------------------------------------------------------- /WatchX/WatchX/Game/Page_GameSelect.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FASTSHIFT/WatchX/bc4bf99ba632797105b2939efb66ed9ee2420de9/WatchX/WatchX/Game/Page_GameSelect.cpp -------------------------------------------------------------------------------- /WatchX/WatchX/Game/chribocchi/common.h: -------------------------------------------------------------------------------- 1 | #ifndef COMMON_H 2 | #define COMMON_H 3 | 4 | #include "MyArduboy.h" 5 | 6 | /* Defines */ 7 | 8 | //#define DEBUG 9 | #define APP_TITLE "CHRI-BOCCHI CAT" 10 | #define APP_INFO "OBN-Y03 VER 0.03" 11 | #define APP_RELEASED "DECEMBER 2017" 12 | 13 | /* Typedefs */ 14 | 15 | typedef unsigned char uchar; 16 | typedef unsigned int uint; 17 | 18 | /* Global Functions */ 19 | 20 | void initLogo(void); 21 | bool updateLogo(void); 22 | void drawLogo(void); 23 | 24 | void initTitle(void); 25 | bool updateTitle(void); 26 | void drawTitle(void); 27 | uint8_t setLastScore(int score, uint32_t time); 28 | 29 | void initGame(void); 30 | bool updateGame(void); 31 | void drawGame(void); 32 | 33 | /* Global Variables */ 34 | 35 | extern MyArduboy arduboy; 36 | 37 | /* For Debugging */ 38 | 39 | #ifdef DEBUG 40 | extern bool dbgPrintEnabled; 41 | extern char dbgRecvChar; 42 | #define dprint(...) (!dbgPrintEnabled || Serial.print(__VA_ARGS__)) 43 | #define dprintln(...) (!dbgPrintEnabled || Serial.println(__VA_ARGS__)) 44 | #else 45 | #define dprint(...) 46 | #define dprintln(...) 47 | #endif 48 | 49 | #endif // COMMON_H 50 | --------------------------------------------------------------------------------