Use C++ to Blink an LED on a Raspberry Pi in Under 5 Minutes!

Поделиться
HTML-код
  • Опубликовано: 7 янв 2025

Комментарии • 362

  • @wolflarson100
    @wolflarson100 2 месяца назад +84

    Man I wish I was ten years old and found you. I gave up my “IT” / “programming “ career at age 19 having a hard time with the calculus. While I have been fine, just realize how much I enjoyed that time. Bless you - this seems sort of a “giving back” so keep it up!

    • @bobDotJS
      @bobDotJS 2 месяца назад +9

      I don't know how old you are now but I changed careers and became a software engineer at 29 after dropping out of CS twice at 18 and 19

    • @DMS20231
      @DMS20231 2 месяца назад +14

      @@wolflarson100 I’ve been coding since the early 90s and never once have I needed calculus. I’ve used a little trig and geometry before but nothing anyone couldn’t figure out.

    • @toby9999
      @toby9999 2 месяца назад +6

      ​​@@bobDotJSI switched from an engineering background into software development at age 39. Before that, coding was just a hobby. To achieve that, I went to university and completed a Bachelor's degree in computer science in my mid 30's.

    • @larrysmall3521
      @larrysmall3521 2 месяца назад +7

      I also had trouble with calculus but I managed to spend over 40 years in electronics and programming. After I retired, I found out that the best calculus lessons were right here on RUclips. I wish that it had existed when I needed it. I worked in the controls industry and I actually used calculus once or twice with PID control loops. Fortunately, I had some great people on my team to help me through the rough spots.

    • @RamonInNZ
      @RamonInNZ 2 месяца назад +1

      There's no reason why not to restart as a hobby on the Raspberry Pi (that was what it was designed for in 2011 - to tech UK children coding) and have fun at it while being older - i work and play (home) with RPis at almost 60 years old!

  • @wasdaletimelapse7658
    @wasdaletimelapse7658 2 месяца назад +30

    It is definitely comforting to see that even a seasoned professional like you still makes mistakes at such a basic level. It gives me confidence in my own very basic abilities. Thanks for sharing, and yes these short videos are great. Lets try and get back to some more addressable LED stuff.

    • @kajyakuzonik9130
      @kajyakuzonik9130 2 месяца назад +3

      It's not so much about not making errors, but the ability to spot them more or less immediately because you've done them a million times by this point xD

    • @meneerjansen00
      @meneerjansen00 2 месяца назад +1

      Hey, that's what I thought too! :)

    • @johnpearcey
      @johnpearcey 2 месяца назад +2

      Typos are a way of life, no matter what your history.

  • @xero110
    @xero110 2 месяца назад +32

    Definitely do more of these. I have list of small projects on YT that I go to when I get board just to play around with. Simple cheap little things to just spend a lazy Sunday playing and tweaking around with.

  • @andymilstead5745
    @andymilstead5745 2 месяца назад +9

    Man, I love this! Even love how you left the mistakes in there and included tracking them down and fixing them as part of the video. Even a 5 minute video! I certainly cast my vote for more of these. So, so many tutorial type videos are horribly inefficient with either lots of dead air or constant jokes/silliness that distract from the main learning objective.

    • @ut4321
      @ut4321 2 месяца назад +1

      Exactly! I saw the void/int problem coming. Dave addressed it out loud and onscreen, rather than it magically being fixed in the next cut. This helps youngsters (and oldsters like me!) learn and remember that mistakes are PART of the creative process.

  • @martyb3783
    @martyb3783 2 месяца назад +46

    I like this format. I also like your longer format. Very interesting video!

  • @KeithCooper-Albuquerque
    @KeithCooper-Albuquerque 2 месяца назад +19

    I loved this video! As an old C++/UNIX/LINUX programmer, this brought back fond memories. I think I'll fire up my Linux box and run VI!

  • @oliverw.douglas285
    @oliverw.douglas285 2 месяца назад +9

    32-years ago, while attending our local community college, I had the joy of revisiting traditional Basic, before migrating to Assembly (via Masm), C++, & even a little Fortran.
    My original experience with Basic started back in the early 1980's with Commodore PETS. Our Grade School eventually upgrade to VIC-20's, then 64's, & finally 128's. Fun experiences to be sure.

  • @josefmazzeo6628
    @josefmazzeo6628 2 месяца назад +4

    Dave - AWESOME! Yes, definitely do more of these between your usual vlogs! I like how you kept it real with on the fly debugging and typos. My C++ routine returns a "high five" ! 👏

  • @delugeia
    @delugeia 2 месяца назад +6

    Short or long format, I love it when you code live! Your ESP32 addressable LED series is what hooked me on your channel and started me on my favorite hobby.

  • @mikemcculley
    @mikemcculley 2 месяца назад +13

    I love the colors, fonts, and effects on the terminal.

    • @tanakaobi
      @tanakaobi 2 месяца назад +1

      Gives me Avalon vibes.

    • @BerndFelsche
      @BerndFelsche 2 месяца назад

      Amber TTY is definitely a respectable quality.
      Worth the extra bucks if available on a CRT.

    • @mikemcculley
      @mikemcculley 2 месяца назад

      Does anyone even know where to begin to try to emulate _pun intended_ Dave's set up here. Looks like some terminal application on a Mac. But then what? The font? The ghosting effect? Where are these coming from? Which applications' settings are responsible?

    • @CurrentlyObsessively
      @CurrentlyObsessively 2 месяца назад

      ​@@mikemcculleyLooks like a CRT theme for nano. This is a terminal emulator on the rpi. My guess is he just grabbed the individual screen with video editing software.

    • @meneerjansen00
      @meneerjansen00 2 месяца назад +1

      The program is called _Cool retro term_ in Linux. ;)

  • @ut4321
    @ut4321 2 месяца назад +2

    1. No BS on this channel - right into the code! Makes me want to set this up and write the same program in C with printf, etc., like I did 40 years ago!
    2. I need to see if Dave has a “how to install a Linux-ish OS on a Raspberry Pi in 5 minutes” video…
    3. Do you guys see the simulated amber CRT scan lines on his terminal? SO COOL!
    4. Would love the follow-up to show us the EASY way to use Visual Studio Code and SSH - that sounds like an AWESOME combo. Amazing - having a little itty bitty Arduino acting as the SERVER to a 4GHz modern client workstation.
    Loving this! Thank, you Dave for producing this content, sir.

  • @ibewatchinu
    @ibewatchinu 2 месяца назад +4

    Never got into C++ on the Pi, now I know what I'm doing this weekend.

  • @brandonboschx
    @brandonboschx 2 месяца назад +5

    I hope this gets a lot of views. I would love to see more of this!

  • @RamonInNZ
    @RamonInNZ 2 месяца назад +2

    Definitely passing onto my Raspberry Pi newbie students at the university I work at as a teaser and intro to 'C' on the RPi - thanks Dave!

  • @meneerjansen00
    @meneerjansen00 2 месяца назад

    For me as an amateur/hobbyist in my fifties starting w/ C programming it was very encouraging to see that even a very seasoned programmer like you made mistakes and typo's in his code. You appeared not be be impressed or discouraged by error messages. Instead you seemed to be familiar with encountering them and handled them as if it was nothing special. Everybody makes mistakes.
    Keep these short programming sessions coming!

  • @josefmazzeo6628
    @josefmazzeo6628 2 месяца назад

    Love the retro atmosphere down to the clickety clack of the "IBM keyboard". It reminds me of my first job out of college in the late 1980s. Our first PCs we got in the office had monochrome amber screens (some had green)....so retro! I used my first graphics program on Windows 2.0 on an amber screen - when we went to full color a year later it felt so luxurious.

  • @dbadev
    @dbadev 2 месяца назад +1

    This brought me back to my C++ coding experiments. Really enjoyed watching how quickly you type and the orange text reminded me of using VT100 terminals! Nice job! I like both formats Dave and the depth of knowledge you share!

  • @dgpsf
    @dgpsf 2 месяца назад +1

    Really cool! I appreciate the encouragement to not be afraid to try C++ - although I tried it as a teen, and found it kind of overwhelming coming from BASIC, this is the perfect demo to make the case that it’s possible for even a beginner to do something useful in C++!

  • @rexjuggler19
    @rexjuggler19 2 месяца назад +1

    Liked very much. My daughter is building a raven animatronic kit with servos and i wanted to use c++ with a raspi. This provides a great start. She wanted me to assist with the coding part. Thanks!

  • @yce1234
    @yce1234 2 месяца назад

    Love the terminal session effects! I need to find that now. Brings back old memories. Thanks!

  • @daemon_zero
    @daemon_zero 2 месяца назад

    I like the format. It's short, practical, and beginner friendly.
    If you'd like a suggestion, do more of these!
    P.s.: I was already a subscriber and would continue to be anyway. Most the time I hope to understand your content, but this one I was able to from top to bottom.

  • @josemachado7830
    @josemachado7830 2 месяца назад +4

    Love that terminal. Reminds me of my first display, an amber Samsung 12" monitor that was connected to a Hercules/CGA videoboard at the time.

    • @meneerjansen00
      @meneerjansen00 2 месяца назад +1

      It's called 'Cool retro term' in Linux. ;)

  • @matt_b...
    @matt_b... 2 месяца назад +13

    Direct, to the point, informative.... what's this doing on RUclips?? :-)

  • @AerialWaviator
    @AerialWaviator 2 месяца назад

    Nice format. Like the mix of software and hardware in short byte-size videos. So many experiments and lessons possible, that could lead to a resourceful playlist over time.

  • @robcfg
    @robcfg 2 месяца назад +1

    Nice format and nice tutorial! Also love your use of cool-retro-term, it looks awesome! :D

  • @SilasTheSilent
    @SilasTheSilent 2 месяца назад

    I love your terminal glow, it's so warm

  • @jasonwilliammerrill
    @jasonwilliammerrill 2 месяца назад

    great channel! I got into computers during the 386sx era in the late 80’s and love hearing all about the 3.1 and 95 era

  • @nathan_codes
    @nathan_codes 2 месяца назад +5

    Awesome vid Dave! Most raspi beginners would prob see such an example in Python, so it'd be an interesting foray for someone to use C++ with the hardware if they've never done so. My only issue is with the use of the additional breakout board, you may want to link to where someone could buy one or show how yours is connected, or include links to additional wiring diagrams to prevent any confusion with the physical components. Otherwise, keep up the great work!

  • @prunoki1
    @prunoki1 2 месяца назад

    I like this format better. It is kinda inspiring and it encourages me to go back to this kind of programming if needed. I am an electrical engineer with a commodore 64 background (assembly) who lives in databases and business software now.

  • @BryanTorok
    @BryanTorok 2 месяца назад +1

    I like the short form content. But, in your case even your longer videos are just fine because you move right along and rarely repeat yourself. I really dislike the people who start out disorganized, not knowing what they're gonna talk about, fumble around, and then end up retreading the same ground several times. I usually click away from those before they finish.

  • @diynevala
    @diynevala 2 месяца назад +1

    Massive respect for using nano!

  • @Dr.GeoDave
    @Dr.GeoDave 2 месяца назад +1

    Enjoyed the short, purpose-focused video. I like to be reminded that I could still write code to some degree if the need were to arise.

  • @davideyres955
    @davideyres955 2 месяца назад +2

    Dave!!! Legend for using the colours on the screen. Just like the old plasma CRTs screens we used to have back in the 80. Takes me back.

    • @brandyballoon
      @brandyballoon 2 месяца назад

      Plasma?

    • @properjob2311
      @properjob2311 2 месяца назад +1

      it must be a display effect of the mac terminal app he is using

    • @AerialWaviator
      @AerialWaviator 2 месяца назад

      @@brandyballoon CRT. It was common for 1980's CRTs to come with either green, or amber phosphor .. essentially a black/white TV with a color filter, instead of white.

    • @brandyballoon
      @brandyballoon 2 месяца назад +1

      @@AerialWaviator I'm familiar with CRTs and how they work, but "plasma CRT" is not something I've heard of. Maybe they meant to say phosphor instead of plasma.

    • @AerialWaviator
      @AerialWaviator 2 месяца назад

      Not sure if there were plasma monitors, but large-screen plasma TVs existed, pre-LCD, pre-LED. There were expensive and seen as offering brighter display vs. projection TV systems. (a tech with a short lifecycle)

  • @carmelweston1041
    @carmelweston1041 2 месяца назад

    Awesome Dave, we are still learning coding. The over the shoulder format is easy to be at peace with. Thank you.

  • @swedishpsychopath8795
    @swedishpsychopath8795 2 месяца назад +18

    This short format wasn't half bad. You even left in the typos, which is good so both you and the viewers can feel human. Is the c++ compiler installed by default on the raspberry?

    • @DavesGarage
      @DavesGarage  2 месяца назад +8

      Yes. First thing I did was "sudo apt install build-essential" but it was already installed.

    • @jakobsaternus3526
      @jakobsaternus3526 2 месяца назад +4

      He's using the default Raspberry Pi installation.

  • @stevethecavalry
    @stevethecavalry 2 месяца назад

    Love it - think you should do a mini series on programming the raspberry pi in this format

  • @TrollingAround
    @TrollingAround 2 месяца назад

    Hi Dave, Love the addition of the shorter format. Keep it coming. Thanks.

  • @kungfuteabag
    @kungfuteabag 2 месяца назад

    Love the short format and simple text editor!

  • @CosmicBrain21
    @CosmicBrain21 2 месяца назад

    I knew how to do this already but I just actually enjoy how you present your videos.

  • @gica1990
    @gica1990 2 месяца назад +1

    the format is nice, it could fit in a playlist of shorts in IOT or something like this

  • @g-whiz286
    @g-whiz286 2 месяца назад +1

    I like the shorter format. After more than about 10 minutes of you, my eyes glaze over and I just can't absorb your knowledge at that pace. This was much better.

  • @OldePhart
    @OldePhart 2 месяца назад +1

    This is my favorite kind of content. Its about time for the Christmas lights so the ESP will be making another appearance.

  • @saadyamin
    @saadyamin 2 месяца назад

    This is good I also like the longer format and your style of presentation. Your new uploads are a welcome sight in my feed.

  • @ahmad-murery
    @ahmad-murery 2 месяца назад

    I really would like to see more programing (retro/retro-style) videos
    Thanks Dave!

  • @igortumbas2769
    @igortumbas2769 2 месяца назад

    Oh man! The last line of C++ I wrote would have been in 1999! Thanks for re-introducing me to this wonderful programming language!

  • @skf957
    @skf957 2 месяца назад

    Wow, that looked an easy setup.
    A few years ago | gave up on C++ on the Pi due almost entirely to the complexities and vague nature of the tool-chain.
    Great video that should hook others in where I gave up - albeit after giving it a GOOD CRACK.

    • @jyvben1520
      @jyvben1520 2 месяца назад

      github page has links to other programming languages that can use wiringpi, one of those might interest you more ! see link under video

  • @jokelot5221
    @jokelot5221 2 месяца назад +2

    Last night i coded a telegraphy beeper with a single LED blinking in sequences and beeping sounds. I used a gpio library and i imported 2 .wav files for a dot been and a line beep. Cool stuff. I made it for my dad in Python on a Pi, he is an old telegraphist so i did it for fun to see his reaction and i was curious to see can he recognize morse code when its really fast. He still got it 😁

  • @sleeepey
    @sleeepey 2 месяца назад

    I love this, especially including the typos mistakes

  • @guidichris
    @guidichris 2 месяца назад +2

    Love your channel. Good to see even wizards make typos.

    • @smileychess
      @smileychess 2 месяца назад +1

      I felt like a genius for noticing it right away. I didn't understand most of the rest of it, but we won't worry about that little fact.

  • @DMS20231
    @DMS20231 2 месяца назад +2

    Nice video. I wouldn’t worry about the resistor with a blue LED. Most of them have a forward voltage of 3.2 to 3.4 V. Sometimes you can’t even get them to light at 3.3 V.

    • @perwestermark8920
      @perwestermark8920 2 месяца назад +1

      But switch to red, and it can get a bit toasty since they normally need 1.6 - 1.8 V. So a bit of excess voltage needs to be dropped somewhere. And a bit sad to have the processor output pin have to sag down.

  • @davepompea
    @davepompea 2 месяца назад

    So this is great. However, for us people new to a Pi we need to know: 1. What (O/S) image did you flash to the SD card to even be able to boot / get a prompt. 2. What library's / updates did you download / install (and how to do that). 3. Explain the G++ compile line parameters. 4. Actual hardware pin # vs code pin #, if different. Thanks!

  • @Ranchhand323
    @Ranchhand323 2 месяца назад

    Runnin' " Fast & Loose " ; livin' dangerously ; my hero !

  • @cougar-town
    @cougar-town 2 месяца назад +1

    This is fun and interesting. I want to see more of these Raspberry Pi small projects, they are very cool. Maybe next time, you could find a use case for these blinking LED lights or something along those lines. For example like a motion detection software, or trigger it based on events that happens in the computer on Windows, for example when receiving mail or when there's a alert on the screen. That could be fun and interesting.

    • @jyvben1520
      @jyvben1520 2 месяца назад

      but only interesting for windows users ... and it does not use external hardware which is the point of wiringpi, would be very complex.

  • @hhlavacs
    @hhlavacs 2 месяца назад +1

    Nice, great to see this for my raspi projects.

  • @rsdandy
    @rsdandy 2 месяца назад

    Thanks for the video. Great to see real world work.

  • @Gutebring
    @Gutebring 2 месяца назад

    I think this is were it clicked for me. You have no idea how much that means to me. Thanks!

  • @nickbeiser7176
    @nickbeiser7176 2 месяца назад

    Very cool! Keep these coming please!

  • @horoholo1525
    @horoholo1525 2 месяца назад

    feels like the “level” after Hello World, challenging but not overwhelming.. just complex enough to fuel daydreams, thank you, I needed this.

  • @dougall1687
    @dougall1687 2 месяца назад

    Just for historical context, you could do this in Basic on a BBC Microcomputer back in 1981 using only a couple of lines of code. The first line would set the user port to output mode, the second would set which bits output a voltage so that attached LEDs would light up as desired. Now the PI is massively more capable machine, but few modern machines can embarrass the model B in terms of flexibility.

  • @gregclare
    @gregclare 2 месяца назад

    Nice quick video. But it always amuses me how these days we use a powerful quad-core processor and a high-level object-orientated capable compiled language, to blink an LED. In the old days we used a 555 timer. I guess our good-ole 555 timer is a bit under-powered these days, when it comes to the complex task of blinking an LED. 🤓

  • @r7boatguy
    @r7boatguy 2 месяца назад +1

    5 minutes is great! So good to see braces used correctly, instead of opening at the end of a line. And the clicky keyboard, reminds me of my 3270 days 🙂

    • @fensoxx
      @fensoxx 2 месяца назад

      No way man.. end of line or die! 😅
      Edit: The following indent keeps it readable and the lack of the extra carriage return is compact…imho

  • @gregebert5544
    @gregebert5544 2 месяца назад

    Hooray...another wiringPi user !! I use it in all of my RasPi projects.

  • @rezdm
    @rezdm 2 месяца назад +5

    Heh, Dave, can you share your terminal settings -- looks retro-cool .
    Thanks

  • @meatpockets
    @meatpockets 2 месяца назад +4

    I need one of these tied into MS Teams. I hate that I get bombarded with notifications every time a single word or sentence is muttered by someone. 1 notification a minute would be a life saver.

  • @clifffiftytwo
    @clifffiftytwo 2 месяца назад +1

    Lotsa fun, easy to follow, practical- thanks!

  • @gedgicat2063
    @gedgicat2063 2 месяца назад +1

    Great little LED video, haven't seen one of those for a while 👍.
    Love the custom MAC terminal interface too.

  • @ln2pro629
    @ln2pro629 2 месяца назад

    Would be really cool to get a breakdown explanation series of different wiring/electric concepts required to put this stuff together (safely). That way people have a general mental model of the physical configuration to go along with the videos you do with the programming stuff.

  • @TheNinjaMarmot
    @TheNinjaMarmot 2 месяца назад +1

    Thanks! I like these. Reminds me of those projects in those computer mags.

  • @StarOfDavidKush
    @StarOfDavidKush 2 месяца назад

    Hi Dave!
    Great stuff. I just wrote a Python app that makes a LED light blink on a Raspberry Pi Pico.

  • @dennissdigitaldump8619
    @dennissdigitaldump8619 2 месяца назад

    Phew, I thought I was loosing my mind on not making this work in windows. If Dave starts with Linux as step one, that's likely the best route. Thankfully VS is available in Linux.

  • @MrAlFuture
    @MrAlFuture 2 месяца назад

    This was cool! Thanks, Dave. I'd love to see more little quick fire things like this one. Glad to see constexpr being used instead of ugly, old-skool preprocessor stuff too.

  • @larrypriest5789
    @larrypriest5789 2 месяца назад

    Noted the groovy colour scheme on you nano... Thanks a lot for the rabbit hole See you in the next one.

  • @beezie64
    @beezie64 2 месяца назад

    Thanks for my first C++ lesson!

  • @greenrocket23
    @greenrocket23 2 месяца назад

    I really like this sort of project videos

  • @pokéman9924
    @pokéman9924 2 месяца назад +1

    great to see another nano guy vi and vim are hectic

  • @rweaver6
    @rweaver6 2 месяца назад

    Short & sweet, it's a keeper, thanks!
    PS: I LOVE BARE METAL!!!

  • @KieranShort
    @KieranShort 2 месяца назад +1

    Love it. I'm quite familiar with python but not c++. The syntax and functions are different, so are some of the declarations, so I'm enjoying this to learn more.

    • @toby9999
      @toby9999 2 месяца назад +1

      No offense intended but python is weird syntactically when compared to many other langueages such as C, C++ or java.

    • @blahorgaslisk7763
      @blahorgaslisk7763 2 месяца назад +1

      Programming can be fun, and frustrating at times. Way back, perhaps twenty or thirty years ago I bought some introduction book for C. This book was exactly meant for beginners who had never touched C so I thought it would be a good start. My history was basic, pascal, assembler for several processor architectures, Forth, and a few more I could code a Hello World message in. So I started reading and got through the first five pages and then nothing made sense anymore. I just couldn't understand what the author was tying to say and no matter what I couldn't make head or tails of his explanations. So I bought another book from another publisher and thought I'd give it a go again. Same thing at exactly the same part. Now I got frustrated and decided there had to be something wrong with me as I just couldn't understand WTF they were talking about. Finally I looked at the author and the name sounded familiar, so I looked at the first book and wouldn't you know, it was the same author writing another book about programming C and sold through another publisher.
      I got so pissed I gave up on C altogether and now I haven't coded anything more advanced than very simple batch files in the last 15 years.

    • @KieranShort
      @KieranShort 2 месяца назад

      @@toby9999 Yeah but that's what I know. Same could be said for chopsticks vs forks. I also use a lot of R for statistics, that's another weird beast.

  • @ShawnWrona
    @ShawnWrona 2 месяца назад +1

    Hello, Dave! After watching this the other day, I was inspired to finally start learning how to program c++ for the 2 arduino boards I have purchased, past the blinking light. What would you suggest as far as books or tutorials to learn to code as a complete “n00b” to coding? I prefer books, but I also prefer to listen to people who know what they are doing (you… OBVIOUSLY!😂)
    If you so happen to read this, thank you!

  • @TommiLipponen
    @TommiLipponen 2 месяца назад

    Hi Dave and thanks for this! Also SSH from VS Code to Raspberry Pi would be just great to see too.

  • @knauregriffiths7666
    @knauregriffiths7666 2 месяца назад +2

    Nice little project Dave. Good to know the pro's don't get a clean compile on the first try either. 🙂

  • @newmonengineering
    @newmonengineering 2 месяца назад

    We all make typos! Even the best of us. Thanks for keeping it real.

  • @secahtah
    @secahtah 2 месяца назад

    Dave, my color scheme in my terminal is almost exactly like yours. All shaded to monochrome amber, I miss those old Dec terminals.

  • @richardbrobeck2384
    @richardbrobeck2384 2 месяца назад

    Great video Dave !

  • @MonteVanNortwick
    @MonteVanNortwick 2 месяца назад

    good way to learn programming with positive feedback

  • @richardmeyer418
    @richardmeyer418 2 месяца назад

    Thanks, Dave. Just one thing. You don't have to "touch" the file before you edit it with "nano" - just "nano blink.cpp" and you'll be fine.

  • @JakePomperada
    @JakePomperada 2 месяца назад +3

    Thank you Dave for this video

  • @thelastgeneration102
    @thelastgeneration102 2 месяца назад

    Thanks, Dave. You are straight to the point, and fun. 🙂

  • @Charly_Dont_Surf
    @Charly_Dont_Surf 2 месяца назад

    Thank you Dave! Just sent this to my son.

  • @wheresmyclicker
    @wheresmyclicker 2 месяца назад

    Really liked this format.

  • @donald1w12
    @donald1w12 2 месяца назад

    Love this more of these, especially with Raspberry Pi’s

  • @UnwalledGarden
    @UnwalledGarden 2 месяца назад +1

    I love these down and dirty instruction videos. All steak and no sizzle. Well, just your actual sizzle. But nothing extra.

  • @garynagle3093
    @garynagle3093 2 месяца назад

    Loved this and all you do. Kind of fun to even get typos 😂

  • @RNMSC
    @RNMSC 2 месяца назад

    I can see a simple fade in/out using a couple of for loops in that loop that sets the duty cycle, but you would probably want to make sure that the chrono library supports microseconds as well as milliseconds for best effect, and probably add a 'duty cycle' function that takes the value of the for loop and then operates the LED for that duty cycle for one millisecond and either returns void, or 0. If chrono doesn't support microsecond timing, I'm pretty sure that something does. (And there should be enough headroom in there to let the processor on even a PiZero continue to handle everything else.

    • @mgancarzjr
      @mgancarzjr 2 месяца назад

      Just have it calculate something stupid the compiler can't elide away.

    • @RNMSC
      @RNMSC 2 месяца назад

      @@mgancarzjr Unless it's run through an optimizing compiler. Some of which will simply replace any calculation with a variable assignment to the calculated result. But if you can prevent that from happening... 🙂

  • @mastersprite2783
    @mastersprite2783 2 месяца назад

    Man... that amber monochrome screen knocked me right back into my childhood.

  • @RandomTorok
    @RandomTorok 2 месяца назад

    That was fun. Of course all your content is interesting.

  • @eugenezenzen
    @eugenezenzen 2 месяца назад

    This is great! More please!

  • @minixtvbox
    @minixtvbox 2 месяца назад +1

    Loved this,

  • @anthonywilliams7052
    @anthonywilliams7052 2 месяца назад +1

    Wow, this reminds me of using a BBS with Zmodem on my TRS80 CoCo.

  • @KateAoyama
    @KateAoyama 2 месяца назад +1

    I like Dave's curly brace style. I don't know why lot of people use the K&R style which looks very unbalance and ugly. Some said, it saved lines, I don't know what for.

  • @toby9999
    @toby9999 2 месяца назад

    Excellent demo. Thanks.