Skip to content

Instantly share code, notes, and snippets.

View notpike's full-sized avatar
💭
Survived the M$ B& Hammer... 😅

NotPike notpike

💭
Survived the M$ B& Hammer... 😅
View GitHub Profile
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
uint8_t checksum(uint8_t *in) {
uint8_t crc = 0x07; // CRC Magic Number
int i;
for (i = 7; i <= 61; i ++) { // CRC for 54Byte LED Matrix
crc = crc ^ in[i] & 0xff; // Each Byte is XORed ontop of the last
/* _____ _ __ _ ___ _
* |_ _| | |_ _ _ / _` | / __| _ _ ___ __ __ __ __| |
* | | | ' \ | +| | \__, | | (__ | '_| / _ \ \ V V // _` |
* _|_|_ |_||_| \_,_| |___/ \___| _|_|_ \___/ \_/\_/ \__,_|
*_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|
* "`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'"`-0-0-'
*
* "Train"
* http://patorjk.com/software/taag/
*/

Keybase proof

I hereby claim:

  • I am NotPike on github.
  • I am notpike (https://keybase.io/notpike) on keybase.
  • I have a public key whose fingerprint is 06B5 7714 58D1 7561 5FB3 8D53 F882 177B A28A 78FA

To claim this, I am signing this object: