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 <Wire.h> | |
| #include <Adafruit_GFX.h> | |
| #include <Adafruit_SSD1306.h> | |
| const int SCREEN_WIDTH = 128; | |
| const int SCREEN_HEIGHT = 64; | |
| Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1); | |
| // --- PINOUT --- | |
| #define BTN_UP 2 |
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 typing import Self, Awaitable | |
| import os | |
| import asyncio | |
| import aiofiles # type: ignore # pip install aiofiles | |
| from pathlib import Path | |
| class FilePoll: |
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
| import discord # type: ignore | |
| from typing import ClassVar, Optional | |
| from itertools import cycle | |
| import asyncio | |
| from async_timeout import timeout | |
| class LoadingBar: | |
| SLEEP_TIME: ClassVar[int] = 1 |
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
| <!DOCTYPE HTML> | |
| <html lang="pl"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Odliczanie czasu</title> | |
| <style> | |
| body { | |
| background-color: #111; | |
| } |