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,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> | |
byte secpass=0; | |
int adct=0,x1,x2; | |
float bintemp; | |
void setup() | |
{ | |
Serial.begin(9600); |
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() | |
{ | |
int x=0x0125; | |
byte shift[]={0,4,8,12}; | |
byte positionMult[]={1,10,100,1000}; | |
int xx; | |
int opbin; | |
for (int i=0;i<=3;i++) |
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() | |
{ | |
Serial.begin(9600); | |
uint32_t x=0x41460000; | |
float y=(*float*)&x; | |
Serial.println(x,10); |
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() | |
{ | |
union | |
{ | |
uint32_t B32; | |
float Float; | |
} | |
floatb32; | |
Serial.begin(9600); |
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); | |
byte mills,mins,sec; | |
void setup() | |
{ | |
sec=0; | |
mills=0; | |
mins=0; | |
lcd.begin(16,2); |
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> | |
volatile int analogVal; | |
void setup() | |
{ | |
Serial.begin(9600); | |
ADMUX=0xC0; /// 1.1 V refrrence, Right adjust, channel 0 | |
bitWrite(ADCSRA,7,1); /// ADC Enabled |
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 |
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> | |
#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); |
NewerOlder