Skip to content

Instantly share code, notes, and snippets.

View giljr's full-sized avatar
💭
Full Stack Developer with a degree in Computer Engineering.

Gilberto Oliveira Jr giljr

💭
Full Stack Developer with a degree in Computer Engineering.
View GitHub Profile
<!doctype html>
<html lang="en">
<head>
<title>Arduino</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="wrap">
<h3>Red:</h3>
<input id="red" type="range" min="0" max="255" step="1" value="0">
'use strict';
const five = require('johnny-five');
const express = require('express');
const app = express();
const server = require('http').createServer(app);
const io = require('socket.io')(server);
let led = null;
Name
mosquitto_pub — an MQTT version 5/3.1.1/3.1 client for publishing simple messages
Synopsis
mosquitto_pub { [-h hostname] [-p port-number] [-u username]
[-P password] -t message-topic... | -L URL }
[-A bind-address] [-c] [-d] [-D command identifier value]
[-i client-id] [-I client-id-prefix] [-k keepalive-time]
[-q message-QoS] [--quiet] [-r] [--repeat count] [--repeat-delay seconds]
[-S] { -f file | -l | -m message | -n | -s }
/*
Project : FreeRTOS - How to Get Started!
Episode 01 : Hello world ESP-32 - Using Heltec WiFi LoRa 32
File : heltec_oled_hello_world.ino
Webpage : https://medium.com/jungletronics/meet-iot-boards-esp8266-esp32-ba12e41c1a3b
Hardware : https://heltec.org/project/wifi-lora-32/
Specs ESP8266 12E ESP-32 Arduino UNO R3 Raspberry PI 3 B+
Power Rating 197 mA 220 mA 200mA 459mA
Core 1 2 1 4×Cortex-A53
Arquitecture 32-bits 32-bits 8-bits 64-bits
Clock 80-160MHz 160-240MHz 16MHz 1.4GHz
WiFi Yes Yes No b/g/n/ac dual band
Bluetooth No Yes-Classic & BLE No 4.2 LS BLE
RAM 160KB 520KB 2K 1GB
Flash 16MB 16MB 32KB 1-2 or 4GB LPDDR4-3200 RAM
GPIO 11 22 12 40 (28 accessable)
ESP-32 Description
Core 2
Arquitecture 32 bits
Clock Tensilica Xtensa LX106 160-240MHz
WiFi IEEE802.11 b/g/n
Bluetooth Yes - classic & BLE
RAM 520KB
Flash Extern QSPI - 16MB
GPIO 22
DAC 2
ESP8266 Description
Core 1
Arquitecture 32 bits
Clock Xtensa LX106 80-160MHz
WiFi IEEE802.11 b/g/n support for WPA and WPA2
Bluetooth No
RAM 160KB - 64KB Instruction - 96KB Data
Flash Extern QSPI - 512KB A 4MB
GPIO 16
DAC 0
No Pin Name Functional Description
1 RST Reset Pin Active Low
2 ADC AD conversion Input voltage range 0~1V value range 0~1024.
3 EN Chip Enabled Pin Active High
4 IO16 Connect with RST pin to wake up Deep Sleep
5 IO14 GPIO14 HSPI_CLK
6 IO12 GPIO12 HSPI_MISO
7 IO13 Ai-Thinker GPIO13; HSPI_MOSI; UART0_CTS
8 VCC Module power supply pin Voltage 3.0V ~ 3.6V
9 GND GND
NAME SPECS
Module Model ESP-12F
Package SMD22
Size 24*16*3(±0.2)mm
Certification FCCǃCEǃICǃREACHǃRoHS
SPI Flash Default 32Mbit
Interface UART/GPIO/ADC/PWM
IO Port 9
UART Baud rate Support 300 ~ 4608000 bps ˈDefault 115200 bps
Frequency Range 2412 ~ 2484MHz
/* Project Name: SD CARD PROJECT - WRITE TEXT TO A FILE
File: unit_13_01_sdcarrD_SPI.c
Description: The program creates a new file called MYFILE55.TXT on the SD card and writes the text
"This is MYFILE.TXT." to the file. Then the string "This is the added data..."
is appended to the file.
Author: Dogan Ibrahim Date: October 2013 File: MIKROC-SD1.C
LIBS Note: SD cards (and also MultiMedia Cards, MMC) - Got To Library Manage and enable these libs: