]> git.donarmstrong.com Git - tmk_firmware.git/blobdiff - common/backlight.h
New macro: ACTION_BACKLIGHT_LEVEL(level)
[tmk_firmware.git] / common / backlight.h
index 685c422ae9c25c8af2d701c11ed83ef7b2cc9f59..525ec8bbef067e8377d4874a66d0de04cc3221c0 100644 (file)
@@ -24,18 +24,17 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 typedef union {
     uint8_t raw;
     struct {
-        bool    enable:1;
-        uint8_t level:7;
+        bool    enable :1;
+        uint8_t level  :7;
     };
 } backlight_config_t;
 
 void backlight_init(void);
-
 void backlight_increase(void);
 void backlight_decrease(void);
 void backlight_toggle(void);
 void backlight_step(void);
-
 void backlight_set(uint8_t level);
+void backlight_level(uint8_t level);
 
 #endif