This file contains 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
// -------------------------------------- | |
// i2c_scanner | |
// | |
// Version 1 | |
// This program (or code that looks like it) | |
// can be found in many places. | |
// For example on the Arduino.cc forum. | |
// The original author is not known. | |
// Version 2, Juni 2012, Using Arduino 1.0.1 | |
// Adapted to be as simple as possible by Arduino.cc user Krodal |
This file contains 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
Hola | |
Hola2 |
This file contains 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
<!-- Begin MailChimp Signup Form --> | |
<link href="//cdn-images.mailchimp.com/embedcode/horizontal-slim-10_7.css" rel="stylesheet" type="text/css"> | |
<style type="text/css"> | |
#mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; width:100%;} | |
/* Add your own MailChimp form style overrides in your site stylesheet or in this style block. | |
We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */ | |
</style> | |
<div id="mc_embed_signup"> | |
<form action="https://theinventorhouse.us7.list-manage.com/subscribe/post?u=65b0ff13537d14f980739b5d4&id=df48846e97" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate> | |
<div id="mc_embed_signup_scroll"> |
This file contains 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
FSB 1 (aka block A) = 0, 1, 2, 3, 4, 5, 6, 7 (125 kHz channels) plus 64 (500 kHz channel) | |
FSB 2 (aka block B) = 8, 9, 10, 11, 12, 13, 14, 15 plus 65 | |
FSB 3 (aka block C) = 16, 17, 18, 19, 20, 21, 22, 23 plus 66 | |
FSB 4 (aka block D) = 24, 25, 26, 27, 28, 29, 30, 31 plus 67 | |
FSB 5 (aka block E) = 32, 33, 34, 35, 36, 37, 38, 39 plus 68 | |
FSB 6 (aka block F) = 40, 41, 42, 43, 44, 45, 46, 47 plus 69 | |
FSB 7 (aka block G) = 48, 49, 50, 51, 52, 53, 54, 55 plus 70 | |
FSB 8 (aka block H) = 56, 57, 58, 59, 60, 61, 62, 63 plus 71 |
This file contains 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 "SparkFunMPL3115A2.h" //Pressure sensor - Search "SparkFun MPL3115" and install from Library Manager | |
#include "SparkFunHTU21D.h" //Humidity sensor - Search "SparkFun HTU21D" and install from Library Manager | |
#include <lmic.h> | |
#include <hal/hal.h> | |
#include <SPI.h> | |
#include<CayenneLPP.h> | |
CayenneLPP lpp(51); | |
MPL3115A2 myPressure; //Create an instance of the pressure sensor |
This file contains 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
/* | |
Example for RAK811 with Lora Sender and library LoRa https://github.com/sandeepmistry/arduino-LoRa | |
*/ | |
#include <SPI.h> | |
#include <LoRa.h> | |
int counter = 0; | |
void setup() { |
This file contains 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
from microbit import spi, sleep, pin16 | |
import array | |
import gc | |
class LoRa(object): | |
""" | |
Radio - LoRa. Single channel. | |
""" | |
def __init__(self, Frequency=434.450, Mode=1): |
This file contains 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
void setup() { | |
// put your setup code here, to run once: | |
Serial.setup(9600); | |
} | |
void loop() { | |
// put your main code here, to run repeatedly: | |
//A1,temp1,hum,press,temp2,mx,my,mz,ax,ay,az,gx,gy,gz,lat,long | |
Serial.println(A1,23,70,800,21,34,45,23,12,43,90,89,67,54,22.3446,-102.8967); | |
delay(3000); //3 segundos |
This file contains 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 "AES-128_V10.h" | |
unsigned char NwkSkey[16] = { | |
0x00, 0xE2, 0xC1, 0x11, 0xCF, 0x0B, 0xFB, 0x8D, | |
0x1D, 0x08, 0x98, 0xF0, 0xCA, 0xA8, 0x77, 0x00 | |
}; | |
unsigned char AppSkey[16] = { | |
0x00, 0x9B, 0x51, 0x67, 0x09, 0x92, 0xC2, 0x40, | |
0xAC, 0x1C, 0xF4, 0xE2, 0x38, 0x9C, 0x8D, 0x00 |
This file contains 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
int lecturas[6]={0,0,0,0,0,0}; | |
void setup() { | |
// put your setup code here, to run once: | |
} | |
void loop() { | |
// put your main code here, to run repeatedly: | |
for(i=0;i=6;i++){ | |
lectura[i]=analogRead(A0); |