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
/* | |
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 |
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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Windows.Forms; | |
using System.IO; |
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
// frmGraphics.cs | |
// This program is to teach basic graphics for beginners | |
// need to add btnDraw and Timer1 | |
// programmer: Dr. Aung Win Htut (Green Hackers) | |
// https://www.facebook.com/GreenHackersOTC | |
/////////////////////////////////////////////////////// | |
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; |
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
//https://www.c-sharpcorner.com/article/gdi-tutorial-for-beginners/ | |
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Windows.Forms; | |
using System.Drawing.Drawing2D; |
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
/* | |
This program is to teach beginner | |
to understand | |
1-lookup talbe | |
2-external variable | |
3-array | |
4-structure | |
5-return datatype | |
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
/* | |
This program is to teach beginner | |
to understand absolute coordinate, | |
relative coordinate | |
and to show how to draw a line and mirrow a line | |
to teach usage of static variable | |
Programmer: Dr. Aung Win Htut (Green Hackers) | |
https://www.facebook.com/GreenHackersOTC/ |
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
/* | |
This program is to draw a point with printf and for loops | |
to train for looping especially | |
for two days beginner in C | |
Programmer: Dr. Aung Win Htut (Green Hackers) | |
https://www.facebook.com/GreenHackersOTC/ | |
Date: 10-04-2018 | |
*/ | |
#include<stdio.h> |
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
/* | |
This program is to draw a rectangle with printf and for loops | |
to train for looping especially | |
for two days beginner in C | |
Programmer: Dr. Aung Win Htut (Green Hackers) | |
https://www.facebook.com/GreenHackersOTC/ | |
Date: 10-04-2018 | |
*/ |
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
/* | |
This program is to draw a rectangle with printf and for loops | |
to train looping and coordinate calculation | |
for two days beginner in C | |
Programmer: Dr. Aung Win Htut (Green Hackers) | |
https://www.facebook.com/GreenHackersOTC/ | |
Date: 10-04-2018 | |
*/ |
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
//These functios will help you when you need old delay() and clrscr() functions from Turbo C | |
//Anyone can use this code freely | |
//The original coder of delay function is https://stackoverflow.com/users/5148111/rizwan-raza | |
//I found at https://stackoverflow.com/questions/27447195/how-to-use-delay-function-in-c-using-codeblocks-13-12mingw | |
//Modified and matained by Green Hackers | |
//We will add more code here | |
#include<process.h> | |
#include<time.h> | |
void delay(unsigned int miliS) |