• Member Avatar
    0x69

    Replied To a Post in How to minimize if else code to Bitwiset

    Yes, you can simplify this code - I would suggest to dismiss branching statements in "decode" procedure and make use of static array of LED patterns. Something like: #include <stdio.h> …
  • Member Avatar
    0x69

    Replied To a Post in Underscore

    As unofficial rule - all C/C++ macros are written in all caps. Underscores simply helps to improve readability if constant consists from several words. It's possible to name a variable …

The End.