Skip to content

Instantly share code, notes, and snippets.

@Ajak58a
Ajak58a / boot.py
Created March 11, 2023 20:05
MicroPython weather station
View boot.py
import time
import urequests as requests
try:
import ujson as json
except:
import json
import network
@Ajak58a
Ajak58a / gist:a3454bd2fe7800dce32015ea25486e41
Created March 11, 2023 20:04
urequests micropython weather station
View gist:a3454bd2fe7800dce32015ea25486e41
import usocket
class Response:
def __init__(self, f):
self.raw = f
self.encoding = "utf-8"
self._cached = None
def close(self):
@Ajak58a
Ajak58a / gmail login
Created January 23, 2023 21:18
Gmail login
View gmail login
#include "Keyboard.h"
void typeKey(int key)
{
Keyboard.press(key);
delay(50);
Keyboard.release(key);
}
void setup()
@Ajak58a
Ajak58a / Gmail-Login.ino
Created January 22, 2023 21:33
gmail login
View Gmail-Login.ino
#include "Keyboard.h"
void typeKey(int key)
{
Keyboard.press(key);
delay(50);
Keyboard.release(key);
}
void setup()
@Ajak58a
Ajak58a / automate-tasks.ino
Created January 22, 2023 21:28
Automate tasks login rubber ducky
View automate-tasks.ino
#include "Keyboard.h"
void typeKey(int key)
{
Keyboard.press(key);
delay(50);
Keyboard.release(key);
}
void setup()
@Ajak58a
Ajak58a / SSD1306-Video.ino
Created January 19, 2023 00:09
SSD1306 sketch
View SSD1306-Video.ino
#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
#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
#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);
@Ajak58a
Ajak58a / style.css.txt
Created January 6, 2023 18:55
Node.js server style.css
View style.css.txt
body {
text-align: center;
margin-top: 100px;
background: #ffffff;
border: 5px double #00acec;
padding: 50px;
border-radius: 25px;
@Ajak58a
Ajak58a / index.html.txt
Created January 6, 2023 18:53
Index HTML node js
View index.html.txt
<!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>