Skip to content

Instantly share code, notes, and snippets.

View IgorDePaula's full-sized avatar
😆

Igor C. de Paula IgorDePaula

😆
View GitHub Profile
#include <SPI.h>
#include <SD.h>
#include <Wire.h>
#include <SSD1306.h>
#include <RTClib.h>
#include <WiFi.h>
#include "LoRa.h"
#include <BLEDevice.h>
#include <BLEServer.h>
#include <BLEUtils.h>
@IgorDePaula
IgorDePaula / main.tf
Created October 23, 2025 22:38
Cria lambda com ecr no terraform
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "5.82.1"
}
}
}
// Used by get the current aws number account.
data "aws_caller_identity" "current" {
#include <SPI.h>
#include <SD.h>
#include <Wire.h>
#include <SSD1306.h>
#include <RTClib.h>
#include <WiFi.h>
#include "LoRa.h"
#include <BLEDevice.h>
#include <BLEServer.h>
#include <BLEUtils.h>
@IgorDePaula
IgorDePaula / main.ino
Created October 19, 2025 17:05
update firmware via aws
/*
* ESP32 AWS IoT Jobs OTA - Arduino IDE
*
* Bibliotecas necessárias (instalar via Library Manager):
* - ArduinoJson by Benoit Blanchon
*
* Board: ESP32 Dev Module
* Partition Scheme: Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
*/
@IgorDePaula
IgorDePaula / main.ino
Created October 18, 2025 10:25
lora2
#include <SPI.h>
#include <SD.h>
#include <Wire.h>
#include <SSD1306.h>
#include <RTClib.h>
#include <WiFi.h>
#include "LoRa.h"
#include <BLEDevice.h>
#include <BLEServer.h>
#include <BLEUtils.h>
@IgorDePaula
IgorDePaula / esp.ino
Last active October 18, 2025 23:51
funcionando com o lora anterior
#include <SPI.h>
#include <SD.h>
#include <Wire.h>
#include <SSD1306.h>
#include <RTClib.h>
#include <WiFi.h>
#include "LoRa.h"
#include <BLEDevice.h>
#include <BLEServer.h>
#include <BLEUtils.h>
/*
* 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() {