sudo REPO_URI=https://github.com/notro/rpi-firmware rpi-update
# sudo nano /boot/config.txt
dtparam=spi=on
dtoverlay=ads7846,penirq=17,swapxy=1
#include <Arduino.h> | |
#include "TimerOne.h" | |
#include <dht.h> | |
#include <SdFat.h> | |
#include <SdFatUtil.h> // define FreeRam() | |
#define DHT22_PIN 5 | |
#define SD_CHIP_SELECT SS // SD chip select pin |
# Create the CA Key and Certificate for signing Client Certs | |
openssl genrsa -des3 -out ca.key 4096 | |
openssl req -new -x509 -days 365 -key ca.key -out ca.crt | |
# Create the Server Key, CSR, and Certificate | |
openssl genrsa -des3 -out server.key 1024 | |
openssl req -new -key server.key -out server.csr | |
# We're self signing our own server cert here. This is a no-no in production. | |
openssl x509 -req -days 365 -in server.csr -CA ca.crt -CAkey ca.key -set_serial 01 -out server.crt |
sudo modprobe bcm2835-v4l2 | |
sudo apt-get install python2.7-dev | |
sudo apt-get install libopencv-dev python-opencv python-dev | |
sudo apt-get install python-picamera |
/* avr-gcc -S file.c */ | |
/* Write your program in a file filename. */ | |
/* avr-as filename program.out */ | |
/* avr-objcopy -j .text -j .data -O ihex program.out program.hex */ | |
/* | |
int main(void) { | |
int i=0; | |
i = i+10; | |
return i; |
Sub getTheRabit() | |
Dim i As Integer, j As Integer, k As Integer | |
Dim cuDate As String, newDate As String | |
Dim temp As String | |
With Worksheets("Report") | |
i = 16 | |
Do Until .Cells(i, 2).Value = "" | |
k = 16 | |
cuDate = .Cells(i, 2).Value |
/* | |
### Esquema de ligação ### | |
- Ligar o VCC do SIM800L a uma fonte +4V 2A estável | |
- Conectar o GND do SIM800L ao GND do Arduino e também ao GND da fonte. | |
> Todos alimentados agora podemos ligar a parte da comunicação serial | |
- Ligar o RX do SIM800L (ENTRADA) ao Digital 11 do Arduino | |
- Ligar o TX do SIM800L (SAIDA) ao Digital 10 do Arduino | |
## Utilização: |
/*The MIT License (MIT) | |
Copyright (c) 2014 Nathanaël Lécaudé | |
https://github.com/natcl/Artnet, http://forum.pjrc.com/threads/24688-Artnet-to-OctoWS2811 | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
/* | |
* USERS OF ARDUINO 0023 AND EARLIER: use the 'SDWebBrowse.pde' sketch... | |
* 'SDWebBrowse.ino' can be ignored. | |
* USERS OF ARDUINO 1.0 AND LATER: **DELETE** the 'SDWebBrowse.pde' sketch | |
* and use ONLY the 'SDWebBrowse.ino' file. By default, BOTH files will | |
* load when using the Sketchbook menu, and the .pde version will cause | |
* compiler errors in 1.0. Delete the .pde, then load the sketch. | |
* | |
* I can't explain WHY this is necessary, but something among the various | |
* libraries here appears to be wreaking inexplicable havoc with the |
Primeiramente vale dizer que o dispositivo é bastante instável e que as vezes não responde aos comandos nem dá sinal de vida fazendo parecer que está estragado. Porém com um pouco de insistência, consegui fazer o meu funcionar sem queimar nenhum. Mesmo tendo invertido o VCC(3.3v) e o GND algumas vezes. 😆
Na internet tem diversas advertências sobre não usar o ESP8266 diretamente no Arduino sem usar nenhuma Conversor de Nível Lógico de 3.3v (ESP8266) - 5v (Arduino). Isso me deixou um tanto apreensivo sobre a fragilidade e várias vezes pensei te-lo estragado.