Touch GFX #4. Send data to UI || Sampling from another task || Gauge || Animation

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ธ.ค. 2024

ความคิดเห็น • 32

  • @alexanderkvashin
    @alexanderkvashin ปีที่แล้ว

    I am getting error ../TouchGFX/gui/include/gui/model/ModelListener.hpp:9: undefined reference to `vtable for ModelListener' and ../TouchGFX/gui/include/gui/model/ModelListener.hpp:11: undefined reference to `vtable for ModelListener' on the linker stage... what can be wrong?
    I use version 4.22.

    • @ControllersTech
      @ControllersTech  ปีที่แล้ว

      In the modelListerner.hpp file, remove the keyword “virtual” from line 11.

    • @alexanderkvashin
      @alexanderkvashin ปีที่แล้ว

      @@ControllersTech thank you for so fast reply! I have deleted virtual from destructor, but it did not help. This is the code now (to be able to count line number):
      #ifndef MODELLISTENER_HPP
      #define MODELLISTENER_HPP
      #include
      class ModelListener
      {
      public:
      ModelListener() : model(0) {}

      ~ModelListener() {}
      void bind(Model* m)
      {
      model = m;
      }
      virtual void Set_data_variable(unsigned char data_variable);
      protected:
      Model* model;
      };
      #endif // MODELLISTENER_HPP

    • @ControllersTech
      @ControllersTech  ปีที่แล้ว

      @alexanderkvashin ok don’t delete it from line 11. Put it back there.
      The function set_data_variable…. Delete the virtual from there.

    • @alexanderkvashin
      @alexanderkvashin ปีที่แล้ว

      @@ControllersTech I put it back and deleted virtual from function set_data_variable, now I got linker error pointing on Model.c where I issue it:
      ../TouchGFX/gui/src/model/Model.cpp:20: undefined reference to `ModelListener::Set_data_variable(unsigned char)'

    • @ControllersTech
      @ControllersTech  ปีที่แล้ว

      Define like this void Set_data_variable (unsigned char data_variable) {}

  • @hosseinnhk2684
    @hosseinnhk2684 9 หลายเดือนก่อน

    In reading ADC with DMA, the code works only if I call the osMessaging functions inside the startAdctsk function, and if I call them inside HAL_ADC_ConvCpltCallback the display doesn't work, do you have any idea about this issue?

  • @kubsztal1392
    @kubsztal1392 ปีที่แล้ว

    How did u connect the potentiometer? And what is the max voltage we can send to ADC?

    • @ControllersTech
      @ControllersTech  ปีที่แล้ว

      Connect output pin from potentiometer to the adc pin.
      Regarding max voltage, it depends on the VRef. Check your MCUs datasheet.

  • @arekkk1224
    @arekkk1224 10 หลายเดือนก่อน

    is there any alternative for modelListener for multi screen app?

  • @027_lakshaynegi6
    @027_lakshaynegi6 ปีที่แล้ว

    Can I use a camera module like ov5640 and play its data on the screen?

  • @Slemi
    @Slemi ปีที่แล้ว

    I wish you could share the images for animation, so that we can follow tutorial to the dot. :)

    • @ControllersTech
      @ControllersTech  ปีที่แล้ว

      Download the code from the link in the description. Then look into the assets folder.

    • @Slemi
      @Slemi ปีที่แล้ว

      @@ControllersTech Thank you! I found it now. For anyone else that might need this, the assests is inside TouchGFX folder.

  • @lamle4390
    @lamle4390 หลายเดือนก่อน

    Hi sir, How can I run rtos with ili9341 lcd

    • @ControllersTech
      @ControllersTech  หลายเดือนก่อน

      What you mean ?

    • @lamle4390
      @lamle4390 หลายเดือนก่อน

      @@ControllersTech Hi sir, I meant when using ili9341 lcd I have 2 functions MX_TouchGFX_Process() and touchgfxSignalVSync(), I don't know where to put them in

    • @ControllersTech
      @ControllersTech  หลายเดือนก่อน

      th-cam.com/video/suMytEyQTP4/w-d-xo.html

    • @lamle4390
      @lamle4390 หลายเดือนก่อน

      @@ControllersTech sir, but this video is not about using rtos

  • @victorrodriguez3991
    @victorrodriguez3991 ปีที่แล้ว

    Hola, he seguido tus videos, pero estos no funcionan, tengo una placa NUCLEO-F767zi y tu misma pantalla, pero tengo duda, como activo en la funcion main.c la vista en la pantalla, lo tengo:
    while (1)
    {
    if ( Touch_GotATouch(0))
    touchgfxSignalVSync();
    /* USER CODE END WHILE */
    MX_TouchGFX_Process();
    }
    en el while(1) del main.c pero estos no se activan... que deberia hacer? ... si alguien puede ayudar en esto.. gracias y te felicito por tus videos.

  • @nielspaulin2647
    @nielspaulin2647 ปีที่แล้ว

    AS USUAL, VERY EVCELLENT VIDEO.

  • @raer7844
    @raer7844 ปีที่แล้ว

    İt's super . Could you share with us 10.1 LCD screen how is it work by touch gfx . Thank you

  • @tszulpinedo757
    @tszulpinedo757 ปีที่แล้ว

    Está súper increíble. Ojalá pueda hacer uno con estados lógicos con y sin interrupciones, desde pulsadores u otros circuitos como transistores en modo switch.

  • @DaHo-ri8mp
    @DaHo-ri8mp ปีที่แล้ว

    Hello Sir, thank you very much for this greats video serie. Do you know why this is not working ?
    touchgfx::Image Images[7];
    Images[0] = Image_1;
    Images[1] = Image_2;
    Images[2] = Image_3;
    Images[3] = Image_4;
    Images[4] = Image_5;
    Images[5] = Image_6;
    Images[6] = Image_7;
    Int i=1;
    Images[i].setVisible(true);
    Images[i].invalidate();

  • @sergbo3114
    @sergbo3114 3 หลายเดือนก่อน

    Dont see any reason for making buttonValue and adcValue global variables(in main.cpp). Global variables are evil.

  • @vishvanathdoijad
    @vishvanathdoijad ปีที่แล้ว

    Its work cool

  • @rvy
    @rvy 8 หลายเดือนก่อน

    AMOGUS

  • @spanksy_
    @spanksy_ 11 หลายเดือนก่อน

    amongus