Printf on a Microcontroller | Embedded System Project Series #19

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

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

  • @lewiskim9986
    @lewiskim9986 ปีที่แล้ว +2

    Your Sumobot making series is literally amazing! I learn a lot from your contents. Thx😊

  • @nfjeldberg
    @nfjeldberg ปีที่แล้ว +3

    Thank you for all your hard work, amazing work and worth its weight in gold!

  • @tufanyou
    @tufanyou ปีที่แล้ว +1

    Thank you for your share ... it is good👏👏

  • @prashkd7684
    @prashkd7684 ปีที่แล้ว +2

    Stm32cube ide had those feature baked in . Sprintf can print on jtag aerial port .

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

      Yes, that's good to be aware of if you are on STM32, can save you some effort depending on your needs. Other microcontrollers + IDEs may also have out-of-box support for terminal printing. Though, it often requires the debug probe (and sometimes slower). UART is a more general approach in some sense.

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

    Good job 👍

  • @olivialinden8699
    @olivialinden8699 ปีที่แล้ว +1

    Smart !

  • @sfnembedded
    @sfnembedded ปีที่แล้ว +1

    Wow thanks for the tutorial! Can you share which IDE do you used?

    • @artfulbytes
      @artfulbytes  ปีที่แล้ว +1

      No IDE in this video. I'm running Ubuntu with i3, vim as my editor in the terminal alacritty. I describe it here www.artfulbytes.com/devenv.

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

      @@artfulbytes Oh sorry I mean your editor. By the way many thanks!

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

    Nice video! Can you share which font are you using in the terminal?

    • @artfulbytes
      @artfulbytes  ปีที่แล้ว +1

      Yes, iosevka nerd font mono github.com/niklasab/dotfiles/blob/main/.fonts/iosevka-term-nerd-font-complete-mono.ttf

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

    The escape sequence

    is really strange :) Is it correct or you wanted to implement oposite?
    Asking because never heard of that, but looks strange if printf will be somehing like printf("hi
    "); it will become "hi

    "
    P.S. seems added comment under wrong video, ment to be on previous.. (did not watched this yet).

    • @artfulbytes
      @artfulbytes  ปีที่แล้ว +1

      Damn it, you are right! I got it mixed up. Thanks, will fix it in future video 😅

  • @devrim-oguz
    @devrim-oguz ปีที่แล้ว

    esp-idf has printf built-in. As well as Arduino's Serial.printf()

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

      Is there anything they don't have "inbuilt"? 😉 They give you an entire software stack for better worse. And if we are talking esp32 that plays in an entirely different league 🙂

  • @olivialinden8699
    @olivialinden8699 ปีที่แล้ว +2

    The left eye is black

  • @Prabagaran-s3b
    @Prabagaran-s3b 6 หลายเดือนก่อน

    What use of static void,()?

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

      "Local" function with no return value. In other words, it's a function that is only accessible in the .c file where it's defined and it doesn't return anything.

    • @Prabagaran-s3b
      @Prabagaran-s3b 5 หลายเดือนก่อน

      If static function is .h library it can access in any library .c .if I include

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

      @@Prabagaran-s3b Yes it's possible to define a static function in a header file and then include that header file in other c files. Not sure why you would do that though, apart from some very rare use-case.

    • @Prabagaran-s3b
      @Prabagaran-s3b 5 หลายเดือนก่อน

      Now I understand use of static keyword but I didn't know where I use static variable and static function?

    • @Prabagaran-s3b
      @Prabagaran-s3b 5 หลายเดือนก่อน

      Most of the functions in .h file written in static function example:static void toggle_Gpio that 's I confusing .

  • @walidoulondon8107
    @walidoulondon8107 ปีที่แล้ว +1

    Hello are you Italian?

    • @artfulbytes
      @artfulbytes  ปีที่แล้ว +1

      No, I'm from Sweden :)