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.h> | |
byte x=0; | |
char lupTable[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71}; | |
char display[]={B111110,B111101,B111011,B110111}; | |
int x1,x2,z1,z2,z3,z4,y,y1,y2,y3,y4; | |
int shift[]={12,8,4,0}; | |
int digit[4]; | |
int ccCode[4]; | |
void setup() | |
{ |
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.h> | |
char lut[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71}; | |
int disp[]={B111110,B111101}; | |
byte d; | |
byte x=0; | |
byte x1,x2,xx; | |
void setup() | |
{ | |
DDRB=0xFF; | |
DDRD=0xFF; |
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.h> | |
byte lut[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71}; | |
byte disp[]={B111110,B111101}; | |
byte d=0; | |
byte x=0; | |
byte x1,x2,xx; | |
void setup() | |
{ | |
DDRB=0xFF; | |
DDRD=0xFF; |
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 <iostream> | |
using namespace std; | |
void main() | |
{ | |
int a,b; | |
char c; | |
cout << "enter the two numbers to calculate" << endl; cin>>a>>b; | |
cout << " Press the desired operator , + for addition, - for substraction, * for multiplication, / for division " << endl; cin>>c; |
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.h> | |
#include <LiquidCrystal.h> | |
LiquidCrystal lcd(A0,A1,A2,A3,A4,A5); | |
void setup() | |
{ | |
lcd.begin(16,2); | |
lcd.clear(); | |
lcd.setCursor(0,0); | |
byte x1=0x24; | |
byte x2=0x56; |
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.h> | |
#include <LiquidCrystal.h> | |
LiquidCrystal lcd(A0,A1,A2,A3,A4,A5); | |
void setup() | |
{ | |
lcd.begin(16,2); | |
lcd.clear(); | |
lcd.setCursor(0,0); | |
byte x1=0x24; | |
byte x2=0x56; |
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.h> | |
#include <LiquidCrystal.h> | |
LiquidCrystal lcd(A0,A1,A2,A3,A4,A5); | |
void setup() | |
{ | |
byte x1=0x67; | |
byte x2=0x25; |
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.h> | |
#include <LiquidCrystal.h> | |
LiquidCrystal lcd(A0,A1,A2,A3,A4,A5); | |
void setup() | |
{ | |
lcd.begin(16,2); | |
lcd.clear(); | |
lcd.setCursor(5,0); | |
pinMode(13,OUTPUT); |
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.h> | |
#include <LiquidCrystal.h> | |
LiquidCrystal lcd(A0,A1,A2,A3,A4,A5); | |
void setup() | |
{ | |
int secPassed=0; | |
pinMode(11,INPUT); | |
TCCR0B=0x00; /// TC0 Stop |
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.h> | |
void setup() | |
{ | |
pinMode(13,OUTPUT); | |
digitalWrite(13,LOW); | |
TCCR1A=0x00; /// Timer 1 normal mode | |
TCCR1B=0x00; ///Timer 1 off |
OlderNewer