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
/* | |
/ DigiSpark ATtiny85 Tester | |
/ Create by Thanapon@arduino2day | |
*/ | |
void setup() { | |
pinMode(PB1, OUTPUT); | |
} | |
void loop() { | |
digitalWrite(PB1, HIGH); |
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
/* | |
Code Test Relay 2 Channel | |
Created by Thanapon@Arduiono2day | |
*/ | |
#define IN1 3 | |
#define IN2 4 | |
void setup() { | |
pinMode(IN1, OUTPUT); | |
pinMode(IN2, OUTPUT); | |
} |
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
/* | |
STM32F1xx Blink Bilt-In LED Tested | |
Created by Thanapon@Arduino2day | |
*/ | |
void setup() { | |
// initialize digital pin PC13 as an output. | |
pinMode(PC13, OUTPUT); | |
} |
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
/* | |
* Code for Testing Ardiono Uno + HC-05 Bluetooth | |
* Created by Thanapon@Arduino2Day.com | |
*/ | |
#include <SoftwareSerial.h> | |
SoftwareSerial mySerial(2, 3); // RX, TX | |
void setup() { | |
Serial.begin(9600); |
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
/* | |
Created by Thanapon@Arduino2Day.com | |
*/ | |
#define BLYNK_PRINT Serial | |
#include <ESP8266WiFi.h> | |
#include <BlynkSimpleEsp8266.h> | |
// You should get Auth Token in the Blynk App. | |
// Go to the Project Settings (nut icon). | |
char auth[] = "xxxxxxxxxxxxxxxxxxxxxx"; |
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 "Wire.h" | |
#include "Max44009.h" | |
Max44009 myLux(0x4A); | |
uint32_t lastDisplay = 0; | |
void setup() | |
{ | |
Serial.begin(115200); |
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() { | |
pinMode(PC13, OUTPUT); | |
} | |
void loop() { | |
digitalWrite(PC13, HIGH); | |
delay(1000); | |
digitalWrite(PC13, LOW); | |
delay(1000); | |
} |
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
{ | |
"SX127x_conf": | |
{ | |
"freq": 923200000, | |
"spread_factor": 7, | |
"pin_nss": 10, | |
"pin_dio0": 24, | |
"pin_rst": 0, | |
"pin_led1":5 | |
}, |
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 <lmic.h> | |
#include <hal/hal.h> | |
#include <SPI.h> | |
// LoRaWAN NwkSKey, network session key | |
// This is the default Semtech key, which is used by the early prototype TTN | |
// network. | |
static const PROGMEM u1_t NWKSKEY[16] = {}; // Insert Network Session Key of The Device | |
//Example static const PROGMEM u1_t NWKSKEY[16] = { 0x00, 0xD0, 0x90, 0xEF, 0x7F, 0x1A, 0x50, 0xF3, 0xA8, 0xFA, 0xED, 0x34, 0xD3, 0x46, 0xDC, 0xDF }; |
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
{ | |
"SX127x_conf": | |
{ | |
"freq": 923200000, | |
"spread_factor": 7, | |
"pin_nss": 10, | |
"pin_dio0": 24, | |
"pin_rst": 0, | |
"pin_led1":5 | |
}, |
OlderNewer