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
| #define cs 6 | |
| #define dc 7 | |
| #define rst 8 // you can also connect this to the Arduino reset | |
| #include <Adafruit_GFX.h> // Core graphics library | |
| #include <Adafruit_ST7735.h> // Hardware-specific library | |
| #include <SPI.h> | |
| Adafruit_ST7735 tft = Adafruit_ST7735(cs, dc, rst); |
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
| //maps pin => interrput number | |
| const int INTMAP[] = {-1, -1, 0, 1, -1, -1}; | |
| const int COM_SendPin = 2; | |
| const int COM_RecPin = 3; | |
| const int COM_Timing = 6; | |
| const int COM_HalfTiming = 3; | |
| void COM_send(uint8_t b) { |
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
| delay(100); | |
| randomSeed(micros()); | |
| int generator = 0; | |
| int primmod = 0; | |
| int priv_key = random(1000,10000); | |
| void setup() { |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>name</key> | |
| <string>Indent</string> | |
| <key>scope</key> | |
| <string>source.lua</string> | |
| <key>settings</key> | |
| <dict> |
NewerOlder