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
| 1 | 1 | 2 | 3 | 4 | 5 | |
|---|---|---|---|---|---|---|
| 2 | 2 | 4 | 6 | 8 | 10 | |
| 3 | 3 | 6 | 9 | 12 | 15 |
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
| 5 | 76 | 43 | 28 | 13 | 1 | 6 | |
|---|---|---|---|---|---|---|---|
| 6 | 98 | 41 | 23 | 15 | 2 | 7 | |
| 7 | 101 | 60 | 20 | 9 | 2 | 7 | |
| 8 | 81 | 46 | 19 | 13 | 3 | 9 | |
| 9 | 80 | 57 | 20 | 24 | 4 | 10 | |
| 10 | 111 | 63 | 17 | 34 | 6 | 13 | |
| 11 | 149 | 61 | 18 | 31 | 5 | 10 | |
| 12 | 142 | 96 | 24 | 32 | 3 | 8 | |
| 13 | 117 | 79 | 18 | 43 | 4 | 8 |
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
| from machine import Pin, SPI | |
| import utime, time | |
| import math | |
| import max7219 | |
| spi0 = SPI(0,sck=Pin(2),mosi=Pin(3)) # SCK = CLK || TX = DIN(mosi) || cs = CSn | |
| cs = Pin(9, Pin.OUT) | |
| spi1 = SPI(1,sck=Pin(10),mosi=Pin(11)) # SCK = CLK || TX = DIN(mosi) || cs = CSn | |
| cs2 = Pin(13, Pin.OUT) |
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 INTERVAL_METHOD | |
| // #define USE_TM1637 // comment this line if you dont have the display | |
| #define ENABLE_SERIAL_DEBUG | |
| #ifdef USE_TM1637 | |
| #include <TM1637Display.h> | |
| #endif | |
| #define CLK 8 | |
| #define DIO 9 |
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
| // ReadAPI implementation for ESP board | |
| // Credit to Initial State's @elizabethn119 | |
| #include <HTTPClient.h> | |
| #include <ArduinoJson.h> | |
| #include <WiFi.h> | |
| const char* ssid = "WiFi NAME"; | |
| const char* password = "WiFi PASSWORD"; | |
| const char* accesskey = "ENTER ACCESS KEY HERE"; | |
| const char* bucketkey = "ENTER BUCKET KEY HERE"; |