Skip to content

Instantly share code, notes, and snippets.

View winhtut's full-sized avatar
🎯
Focusing

WinHtut winhtut

🎯
Focusing
View GitHub Profile
/*
ADXL335
note:vcc-->5v ,but ADXL335 Vs is 3.3V
The circuit:
5V: VCC
analog 1: x-axis
analog 2: y-axis
analog 3: z-axis
*/
const int xpin = 1; // x-axis of the accelerometer
@winhtut
winhtut / Example 1 Printing two dimensional array
Last active October 25, 2018 15:46
Lesson 11 Array Part 2
#include<stdio.h>
#include<conio.h>
int i, j;
int row = 3;
int col = 3;
int main() {
int a[3][3] = { {1,2,3}, {4,5,6}, {7,8,9}};
for (i = 0; i < row; i++) {
for (j = 0; j < col; j++)
//*
SDA - D10
SCk - D13
MOSI - D11
MISO - D12
IRQ - not connected
GND - GND
RST - D9
3.3-3.3
To download library
@winhtut
winhtut / Version 2
Last active November 22, 2018 07:51
Lottery Game for Student
#include<stdio.h>
#include<stdlib.h>
int main(){
int age=0;
int id=0;
int number=0;
int num=0;
int money=0;
printf("########################## Welcome to our lottery Game! ##########################\n");
@winhtut
winhtut / first porject
Last active January 1, 2019 13:36
Myat Noe Zar Chi
#include <stdio.h>
#include <stdlib.h>
int main()
{
int age=0;
int a=0;
int data=0;
int currentmoney=2000;
printf("Welcome to the questionnaire\n ");
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include<conio.h>
//void binary_hex(int n, char hex[]);
long long int hex_binary(char hex[]);
int main()
@winhtut
winhtut / delete array
Created April 12, 2019 15:53
Array delete
#include <iostream>
#include<conio.h>
using namespace std;
int main()
{
int data[10];
int number = 0;
int dElete = 0;
int position = 0;
// Formula
//
#include <iostream>
#include<stdlib.h>
using namespace std;
int main()
{
double e = 0;//energy of the problem
double h = 6.6256;// plank 's constant
@winhtut
winhtut / LED blink Normal
Created July 13, 2019 03:12
Raspberry Pi For Beginner
@winhtut
winhtut / crud
Created July 13, 2019 15:52
NodeJS CRUD
//creating collection
======================
var MongoClient = require('mongodb').MongoClient;
var url = "mongodb://localhost:27017/";
MongoClient.connect(url, function(err, db) {
if (err) throw err;
var dbo = db.db("mydb");
dbo.createCollection("customers", function(err, res) {