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
| /* | |
| * Script Simples para Comunicação LoRa | |
| * Heltec ESP32 V2 LoRa - Usando bibliotecas padrão | |
| * Alternativa ao heltec.h para evitar erros de compilação | |
| */ | |
| #include <SPI.h> | |
| #include <U8g2lib.h> | |
| #include "LoRa.h" | |
| #include <BLEDevice.h> |
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 <SPI.h> | |
| #include <SD.h> | |
| #include <Wire.h> | |
| #include <SSD1306.h> | |
| #include <RTClib.h> | |
| #include <BLEDevice.h> | |
| #include <BLEServer.h> | |
| #include <BLEUtils.h> | |
| #include <BLE2902.h> | |
| #include "LoRa.h" |
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 <RTClib.h> | |
| #include <U8g2lib.h> | |
| // SOLUÇÃO: Display usa Software I2C (bit-bang) | |
| // RTC usa Hardware I2C (Wire) | |
| // Display OLED com Software I2C (não conflita!) | |
| U8G2_SSD1306_128X64_NONAME_F_SW_I2C u8g2(U8G2_R0, | |
| /* clock=*/ 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
| #include <U8g2lib.h> | |
| // Display OLED Heltec V2 | |
| U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, 16, 15, 4); | |
| void setup() { | |
| u8g2.begin(); | |
| } | |
| void loop() { |
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 <WiFi.h> | |
| #include <BLEDevice.h> | |
| #include <BLEServer.h> | |
| #include <BLEUtils.h> | |
| #include <BLE2902.h> | |
| #include "Preferences.h" // Para salvar SSID/senha | |
| // UUIDs originais para SSID e Senha | |
| #define UUID_SSID "c505b1de-4a31-11ef-9d90-47f7f9b3a434" | |
| #define UUID_PASS "c505b49e-4a31-11ef-9d90-47f7f9b3a434" |
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
| /** | |
| * Sample React Native App | |
| * https://github.com/facebook/react-native | |
| * | |
| * @format | |
| * @flow strict-local | |
| */ | |
| import React, {useCallback, useEffect, useState} from 'react'; | |
| import type {Node} from 'react'; |
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
| <?php | |
| namespace App\Filament\Resources\ProjectResource\Pages; | |
| use App\Enums\ReportTypeButtonsEnum; | |
| use App\Filament\Resources\ProjectResource; | |
| use App\Models\CustomReport; | |
| use App\Models\Report; | |
| use App\Models\ReportTemplate; | |
| use App\Models\ReportTemplateResponse; |
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 apiFetch from 'modules/api-fetch'; | |
| import Toast from 'modules/toast/index.native'; | |
| import Sentry from 'modules/sentry'; | |
| const FILE_CHUNK_SIZE = 5242880; | |
| const uploadMultipart = async ( | |
| file: string, | |
| setIsUploading = (set: boolean) => {}, | |
| setUploadProgress = (set: number) => {}, |
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 <ESP32Servo.h> | |
| // Servo myservo; // create servo object to control a servo | |
| // // 16 servo objects can be created on the ESP32 | |
| // int pos = 0; // variable to store the servo position | |
| // // Recommended PWM GPIO pins on the ESP32 include 2,4,12-19,21-23,25-27,32-33 | |
| // // Possible PWM GPIO pins on the ESP32-S2: 0(used by on-board button),1-17,18(used by on-board LED),19-21,26,33-42 | |
| // // Possible PWM GPIO pins on the ESP32-S3: 0(used by on-board button),1-21,35-45,47,48(used by on-board LED) | |
| // // Possible PWM GPIO pins on the ESP32-C3: 0(used by on-board button),1-7,8(used by on-board LED),9-10,18-21 |
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
| <body class="antialiased sans-serif bg-gray-100"> | |
| <div x-data="app()" x-init="[initDate(), getNoOfDays()]" x-cloak> | |
| <div class="container mx-auto px-4 py-2 md:py-24"> | |
| <!-- <div class="font-bold text-gray-800 text-xl mb-4"> | |
| Schedule Tasks | |
| </div> --> | |
| <div class="bg-white rounded-lg shadow overflow-hidden"> |