View boot.py
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
import time | |
import urequests as requests | |
try: | |
import ujson as json | |
except: | |
import json | |
import network |
View gist:a3454bd2fe7800dce32015ea25486e41
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
import usocket | |
class Response: | |
def __init__(self, f): | |
self.raw = f | |
self.encoding = "utf-8" | |
self._cached = None | |
def close(self): |
View gmail login
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 "Keyboard.h" | |
void typeKey(int key) | |
{ | |
Keyboard.press(key); | |
delay(50); | |
Keyboard.release(key); | |
} | |
void setup() |
View Gmail-Login.ino
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 "Keyboard.h" | |
void typeKey(int key) | |
{ | |
Keyboard.press(key); | |
delay(50); | |
Keyboard.release(key); | |
} | |
void setup() |
View automate-tasks.ino
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 "Keyboard.h" | |
void typeKey(int key) | |
{ | |
Keyboard.press(key); | |
delay(50); | |
Keyboard.release(key); | |
} | |
void setup() |
View SSD1306-Video.ino
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 <SPI.h> | |
#include <Wire.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_SSD1306.h> | |
#define SCREEN_WIDTH 128 // OLED display width, in pixels | |
#define SCREEN_HEIGHT 64 // OLED display height, in pixels | |
// Declaration for SSD1306 display connected using software SPI (default case): | |
#define OLED_MOSI 23 |
View gist:33091a125359574e7be5162c55f2d09f
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 <Arduino_FreeRTOS.h> | |
void setup() { | |
Serial.begin(9600); | |
Serial.println(F("In Setup function")); | |
pinMode(8,OUTPUT); | |
pinMode(9,OUTPUT); | |
pinMode(10,OUTPUT); | |
pinMode(11,OUTPUT); | |
xTaskCreate(MyTask1, "Task1", 100, NULL, 1, NULL); |
View IIC_memory_sensor_value_store.ino
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 "RTClib.h" | |
#define IIC_MEMORY_ADD 0x50 | |
unsigned int a,data_address = 0; | |
int analog_value; | |
char c; | |
RTC_DS1307 rtc; | |
void setup(void) | |
{ | |
Serial.begin(9600); |
View style.css.txt
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
body { | |
text-align: center; | |
margin-top: 100px; | |
background: #ffffff; | |
border: 5px double #00acec; | |
padding: 50px; | |
border-radius: 25px; | |
View index.html.txt
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Node.Js LED Control</title> | |
<meta name="viewport" content="width=400px" /> | |
<script src="socket.io/socket.io.js"></script> | |
<link rel="stylesheet" href="style.css"> | |
</head> |
NewerOlder