Updates to my PIC12F683 NeoPixel WS2812B Christmas decoration idea including a change from line to dot mode, fixing an out-by-one error and revealing a programming technique using the flags that will knock some less flexible programmers of their perches!

By Julian

Youtuber, shed dweller, solar charge controller aficionado

16 thoughts on “Programmers will hate this bah humbug”
  1. Avataaar/Circle Created with python_avatars Mike's Tomb Raider Vids says:

    Very late to the party, but minus 5 style points for not changing the comments to match! And minus 1 for using a PIC in the first place. LOL

  2. Avataaar/Circle Created with python_avatars jlucasound says:

    Are you decrementing or decorating? 😉

  3. Avataaar/Circle Created with python_avatars Jay Wilkins says:

    Not annoyed by you using a flag you know isn't set. I am annoyed that you use subroutine calls when you could have written it all in line.

  4. Avataaar/Circle Created with python_avatars renxula says:

    You're right, I do hate the thing you mean. It works, so that's something. But as you say, it's just waiting to break when you later want to change something, i.e. it's fragile code.

  5. Avataaar/Circle Created with python_avatars daniel fay says:

    That's the single worst way i've ever seen anyone present code.

  6. Avataaar/Circle Created with python_avatars shafnet says:

    ….. had to check what century I'm in…. doc Brown would have destroyed his time machine in disgust

    Project suggestion : Christmas tree Youtube sub counter (go binary if you really need to but I'm interested with what you come up with 🙂

  7. Avataaar/Circle Created with python_avatars Asger Vestbjerg says:

    Thanks for sharing 😀👍. Funny to see you go into assembler mode. Those ware the bad old days..

  8. Avataaar/Circle Created with python_avatars Stu B says:

    How fast, no delay?

  9. Avataaar/Circle Created with python_avatars Defpom's Electronics Repair says:

    Why don’t you set a variable to flag the number of pixels, then use some math in the rest of the code to automatically calculate the correct count values based upon it… would be pretty easy, then you would just have a single variable to set the number.

  10. Avataaar/Circle Created with python_avatars Me My Self and I says:

    I just keep wondering. How do you spell munge? It's a wonderful word/phrase, yet I don't know how to spell it. As for the Assembler/Compiled debate, I can't program in Assembly, I keep trying to learn and Julian's wonderful videos are helping me, yet I've never found that using Great Cow Basic to be any slower than Assembly in any of my designs compared to the 'legacy' Assembly versions I'm updating. Perhaps I'm just not in need of anything too time critical, but GCB do suggest that their compiled Basic is optimised well during compilation and I have no reason to doubt that claim. I also find that the MPLAB IPE near (totally!) impossible to understand, the GCB IDE suits my thought process much better – it's simpler – like me…

  11. Avataaar/Circle Created with python_avatars Finn Driver says:

    I seem to remember Ben Heck showing a software option to use a different power source other than the programmer to supply power? Might be wrong

  12. Avataaar/Circle Created with python_avatars himselfe says:

    My biggest horror as a programmer is your lack of global defines for things like number of lights and direction 😀

  13. Avataaar/Circle Created with python_avatars Spongman says:

    powerbanks? usb? bah. you should do a bigclive and wire them all up to a fake, metal christmas tree with a bunch of capacitative droppers. don't go near your presents, kids!

  14. Avataaar/Circle Created with python_avatars Marineio says:

    My experience with usb ports on modern laptops/desktops is that they will temporarily disable ports using too much current – assuming that is done by the usb host controller.

  15. Avataaar/Circle Created with python_avatars tobortine says:

    Don't put comments in your code. If the code isn't obviously understandable then rewrite your code.

  16. Avataaar/Circle Created with python_avatars gazzaka says:

    At first glance it looks like a really inefficient way of programming such a simple effect…

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.