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
/**************************************************************************** | |
***************************************************************************** | |
**************************** OLED Driver ********************************* | |
*** 1.3" 12864 OLED with SH1106 and Simplified Chinese IC for Spark Core *** | |
***************************************************************************** | |
****************************************************************************/ | |
int Rom_CS = A2; | |
unsigned long fontaddr=0; | |
char dispCS[32]; |
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 "application.h" | |
#include "spark_protocol.h" | |
#include "tropicssl/rsa.h" | |
#include "tropicssl/aes.h" | |
void sixteenRandomBytes(unsigned char buf[16]) { | |
for (int i = 0; i < 16; i++) { | |
buf[i] = rand() & 0xff; | |
} | |
} |
NewerOlder