]> Devi Nivas Git - smartwatch.git/commitdiff
Merge branch 'task_imu'
authorAdvaith Menon <noreply-git@bp4k.net>
Mon, 24 Nov 2025 23:01:38 +0000 (18:01 -0500)
committerAdvaith Menon <noreply-git@bp4k.net>
Mon, 24 Nov 2025 23:01:38 +0000 (18:01 -0500)
1  2 
main/CMakeLists.txt
main/hello_world_main.c
main/idf_component.yml

index 80ac6566f59600376dacfd4571665b6bc9a812b6,47c921fb0fb6c434c22fde1c0be64477435153b4..e9802e85e1a7fc07f8752233d6aee9fcf5347377
@@@ -1,7 -1,9 +1,9 @@@
  idf_component_register(SRCS "hello_world_main.c"
                              "goldeloxSerial.c"
                              "task_lcd.c"
 +                            "task_button.c"
+                             "task_imu.c"
                         INCLUDE_DIRS "."
                         PRIV_REQUIRES esp_driver_gpio
-                                      esp_driver_uart)
+                                      esp_driver_uart
 -                                     esp_driver_i2c
 -                       INCLUDE_DIRS "")
++                                     esp_driver_i2c)
index eb152a49abdf5b440a3dc1388344b903a5b4bdb1,c041dfea599280f59de0925fbf16dfecf82c6bd8..6cbcfaa7e665c1641f6d7caae1e0308df35d6fd6
  #include "freertos/task.h"
  #include "driver/gpio.h"
  
+ /* custom headers we made!!*/
+ #include "task_imu.h"
  #include "pins.h"
  #include "task_lcd.h"
 +#include "task_button.h"
  
  
  
@@@ -48,12 -49,8 +50,12 @@@ void app_main(void
  
      gpio_dump_io_configuration(stdout, (1ULL << PIN_VIBRATOR) | (1ULL << PIN_BUTTON_RED));
  
-     lcd_task();
 +    /* initialize the buttons */
 +    gt_btn_setup();
 +
 +    /* start the main gui thread  which starts all else */
+    // lcd_task();
+     task_imu_all(NULL);
      /*
      for (int i = 10; i >= 0; i--) {
          printf("Restarting in %d seconds...\n", i);
index 45aceb1b35ca33e4c5d5aad288ee028f1dcccb22,e049522dda083cf0d29b67be09f7f69615ed1c45..1f1b015eb105e905db188b986f65ab6b67fa066c
@@@ -14,4 -14,5 +14,5 @@@ dependencies
    #   # `public` flag doesn't have an effect dependencies of the `main` component.
    #   # All dependencies of `main` are public by default.
    #   public: true
 -
 +  espressif/button: '*'
+   cybergear-robotics/icm20948: ^0.1.0