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
| class WEATHER_DASHBOARD : Driver | |
| var weather_data | |
| var forecast_data | |
| var widget_rotation | |
| var last_update | |
| var widget_content # Global class var to hold widget string | |
| def init() | |
| self.weather_data = nil | |
| self.forecast_data = nil |
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
| class CSI_VISUALIZER : Driver | |
| var csi_started, type | |
| var packet_count | |
| var stats | |
| var data_buffers | |
| var update_index | |
| var widget_content # Global class var to hold widget string | |
| var current_values | |
| static BUFFER_SIZE = 100 |
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
| class CSI_Driver | |
| var csi_started, type | |
| var packet_count | |
| var stats | |
| def init() | |
| self.csi_started = false | |
| self.packet_count = 0 | |
| self.stats = {'raw': 0, 'light': 0, 'unknown': 0, 'errors': 0} | |
| tasmota.add_driver(self) |
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
| ################################################################################# | |
| # Multi Graph Widget Demo - 8 different graph types (No AJAX) | |
| ################################################################################# | |
| class MULTI_GRAPH_WIDGET : Driver | |
| var data_buffers | |
| var update_index | |
| var pending_widget | |
| var gauge_value | |
| var gauge_dir | |
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
| ################################################################################# | |
| # Demo Graph Widget - Using built-in graph with AJAX updates | |
| ################################################################################# | |
| class DEMO_GRAPH_WIDGET : Driver | |
| var initialized | |
| var data_buffer | |
| static BUFFER_SIZE = 64 | |
| def init() | |
| import MI32 |
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
| ################################################################################# | |
| # MI32 Widget for the BLE scanner | |
| ################################################################################# | |
| class SCAN_WIDGET : Driver | |
| var buf | |
| var scan_timer, scan_result, active_scan | |
| var update_table, stop_scan | |
| var init_step, ble_down |
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
| #!/usr/bin/env python3 | |
| import gzip, sys, re, textwrap | |
| from pathlib import Path | |
| import htmlmin, rcssmin, rjsmin, brotli | |
| OPEN_PATTERN = re.compile(r"/\*\s*STATIC_(\w+)\s+([A-Za-z_]\w*)\s*\n", re.S) | |
| STYLE_RE = re.compile(r"(<style[^>]*>)(.*?)(</style>)", re.S|re.I) | |
| SCRIPT_RE = re.compile(r"(<script[^>]*>)(.*?)(</script>)", re.S|re.I) |
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
| /* | |
| xdrv_52_3_tf_lite_micro.ino - Berry scripting language, High-Level Tensor Flow Lite for Microprocessors model deployer | |
| Now with CSI (Channel State Information) support | |
| Copyright (C) 2022 Christian Baars & Stephan Hadinger, Berry language by Guan Wenliang https://github.com/Skiars/berry | |
| This program is free software: you can redistribute it and/or modify | |
| it under the terms of the GNU General Public License as published by | |
| the Free Software Foundation, either version 3 of the License, or | |
| (at your option) any later version. |
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
| # === Setup === | |
| leds = Leds(8 * 32, gpio.pin(gpio.WS2812, 0)) | |
| buf = leds.pixels_buffer() | |
| m = Matrix(buf, 32, 8, 3, true) # serpentine = true | |
| # === Helper: show and pause === | |
| def show_pause(ms) | |
| leds.show() | |
| tasmota.delay(ms) | |
| end |
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
| /* | |
| D. J. Bernstein | |
| Public domain. | |
| */ | |
| #ifndef TASMOTA_ED25519_H | |
| #define TASMOTA_ED25519_H | |
| typedef int32_t fe[10]; |