Skip to content

Instantly share code, notes, and snippets.

View IgorDePaula's full-sized avatar
😆

Igor C. de Paula IgorDePaula

😆
View GitHub Profile
/*
* 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>
#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"
#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,
#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() {
#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"
@IgorDePaula
IgorDePaula / app.js
Created September 30, 2025 17:06
rn bluetooth
/**
* 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';
<?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;
@IgorDePaula
IgorDePaula / uploadMultipart.native.ts
Created January 6, 2025 01:50 — forked from ahartzog/uploadMultipart.native.ts
Alek's Multipart Upload
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) => {},
// #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
@IgorDePaula
IgorDePaula / calendar.html
Created July 23, 2024 23:46 — forked from eminkel/calendar.html
calendar-tailwind-alpinejs
<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">