This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <furi.h> | |
#include <notification/notification.h> | |
#include <notification/notification_messages.h> | |
const NotificationSequence enable_all_colors = { | |
&message_red_255, | |
&message_green_255, | |
&message_blue_255, | |
NULL, | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef enum { | |
Black, | |
White, | |
Inverse | |
} DrawMode; | |
unsigned flipBit(uint8_t x, uint8_t bit) { | |
return x ^ (1 << bit); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getParam(param){ | |
var params = location.href.match(/(\w+)=(\d+)/g); | |
for(var i=0;i<params.length;i++){ | |
var split = params[i].split('='); | |
if(split[0]==param) | |
return split[1]; | |
} | |
return null; | |
} |