This file contains hidden or 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 <ESP8266WiFi.h> | |
#include <ArduinoOTA.h> | |
const char* ssid = "WiFi_SSID"; //Enter Wi-Fi SSID | |
const char* password = "WiFi_Password"; //Enter Wi-Fi Password | |
void setup() { | |
Serial.begin(115200); //Begin Serial at 115200 Baud | |
WiFi.begin(ssid, password); //Connect to the WiFi network | |
This file contains hidden or 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 <ESP8266WiFi.h> | |
#include <ESP8266WebServer.h> | |
ESP8266WebServer server(80); // Create a webserver object listens HTTP request on port 80 | |
const char* ssid = "WiFi_SSID"; //Enter Wi-Fi SSID | |
const char* password = "WiFi_Password"; //Enter Wi-Fi Password | |
void setup(){ | |
Serial.begin(115200); //Begin Serial at 115200 Baud |
This file contains hidden or 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
import spidev | |
spi = spidev.SpiDev() | |
spi.open(0, CHIP_SELECT_0_OR_1) | |
spi.max_speed_hz = 1000000 | |
spi.xfer([value_8bit]) |
This file contains hidden or 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<SoftwareSerial.h> //Included SoftwareSerial Library | |
//Started mySerial SoftwareSerial | |
SoftwareSerial mySerial(10,11); | |
void setup() { | |
//Serial mySerial Begin at 9600 Baud | |
mySerial.begin(9600); | |
} | |
void loop() { |
This file contains hidden or 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 <ESP8266WiFi.h> | |
const char* ssid = "WiFi_SSID"; //Enter Wi-Fi SSID | |
const char* password = "WiFi_Password"; //Enter Wi-Fi Password | |
void setup() { | |
Serial.begin(115200); //Begin Serial at 115200 Baud | |
WiFi.softAP(ssid, password); //Start the AP Mode | |
Serial.print("Access Point started"); |
This file contains hidden or 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 <ESP8266WiFi.h> | |
#include <ESP8266WiFiMulti.h> | |
ESP8266WiFiMulti multiWifi; | |
void setup() { | |
Serial.begin(115200); //Begin Serial at 115200 Baud | |
multiWifi.addAP("SSID_1", "Password_1"); //Add Wi-Fi networks for Connection | |
multiWifi.addAP("SSID_2", "Password_2"); |
This file contains hidden or 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 <ESP8266WiFi.h> | |
const char* ssid = "WiFi_SSID"; //Enter Wi-Fi SSID | |
const char* password = "WiFi_Password"; //Enter Wi-Fi Password | |
void setup() { | |
Serial.begin(115200); //Begin Serial at 115200 Baud | |
WiFi.begin(ssid, password); //Connect to the WiFi network | |
// Connect to the network | |
Serial.print("Connecting to WiFi network..."); |
This file contains hidden or 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 <ESP8266WiFi.h> | |
const char* ssid = "WiFi Name (SSID)"; | |
const char* password = "WiFi Password"; | |
int LED = 0; // led connected to D0 | |
WiFiServer server(80); | |
void setup() | |
{ |
This file contains hidden or 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 <SPI.h> | |
char buff [50]; | |
volatile byte indx; | |
volatile boolean process; | |
void setup() { | |
Serial.begin (115200); | |
pinMode(MISO, OUTPUT); // have to send on master in so it set as output | |
SPCR |= _BV(SPE); // turn on SPI in slave mode | |
indx = 0; // buffer empty |
This file contains hidden or 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 <SPI.h> | |
void setup() { | |
Serial.begin(115200); //set baud rate to 115200 for usart | |
digitalWrite(SS, HIGH); // disable Slave Select | |
SPI.begin(); | |
SPI.setClockDivider(SPI_CLOCK_DIV8);//divide the clock by 8 | |
} | |
void loop() { |
NewerOlder