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
void setup() { | |
pinMode(0, OUTPUT); | |
pinMode(1, OUTPUT); | |
pinMode(2, OUTPUT); | |
pinMode(3, OUTPUT); | |
pinMode(5, OUTPUT); | |
pinMode(6, OUTPUT); | |
pinMode(7, 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
int i = 0; | |
void setup() { | |
pinMode(5, OUTPUT); | |
} | |
void loop() { | |
for(i=0; i<256; i++) | |
{ | |
analogWrite(5, 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
int sensorPin = A5; | |
int ledPin = 5; | |
int analogVal = 0; | |
void setup() { | |
pinMode(ledPin, OUTPUT); | |
} | |
void loop() { | |
analogVal = analogRead(sensorPin); |
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
int R = 3; | |
int G = 9; | |
int B = 10; | |
void setup() { | |
} | |
void loop() { | |
delay(10000); | |
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
int g = 3; | |
int f = 2; | |
int a = 4; | |
int b = 5; | |
int c = 6; | |
int d = 0; | |
int e = 1; | |
void setup() { | |
pinMode(a, 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 <LiquidCrystal.h> | |
//LiquidCrystal lcd(RS, E, D4, D5, D6, D7); | |
LiquidCrystal lcd(13, 11, 7, 6, 5, 4); | |
void setup() | |
{ | |
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 <LiquidCrystal.h> | |
//LiquidCrystal lcd(RS, E, D4, D5, D6, D7); | |
LiquidCrystal lcd(13, 11, 7, 6, 5, 4); | |
byte c1[8]={B00000,B01010,B00000,B00000,B10001,B01110,B00000,}; //Smile-1 | |
byte c2[8]={B00000,B01010,B00100,B00100,B00000,B01110,B10001,}; //Smile-2 | |
byte c3[8]={B00100,B01010,B10001,B10001,B01010,B00100,}; //Diamond | |
byte c4[8]={B01110,B01010,B11111,B11011,B11111,B01010,B01110,}; //Brick | |
byte c5[8]={B01010,B00100,B00100,B01010,B10001,B00100,B10001,}; //Hour-glass |
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 <LiquidCrystal.h> | |
//LiquidCrystal lcd(RS, E, D4, D5, D6, D7); | |
LiquidCrystal lcd(13, 11, 7, 6, 5, 4); | |
byte c1[8]={B00000,B01010,B00000,B00000,B10001,B01110,B00000,}; //Smile-1 | |
byte c2[8]={B00000,B01010,B00100,B00100,B00000,B01110,B10001,}; //Smile-2 | |
byte c3[8]={B00100,B01010,B10001,B10001,B01010,B00100,}; //Diamond | |
byte c4[8]={B01110,B01010,B11111,B11011,B11111,B01010,B01110,}; //Brick | |
byte c5[8]={B01010,B00100,B00100,B01010,B10001,B00100,B10001,}; //Hour-glass |
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 <LiquidCrystal.h> | |
//LiquidCrystal lcd(RS, E, D4, D5, D6, D7); | |
LiquidCrystal lcd(13, 11, 7, 6, 5, 4); | |
byte c1[8]={B00000,B01010,B00000,B00000,B10001,B01110,B00000,}; //Smile-1 | |
byte c2[8]={B00000,B01010,B00100,B00100,B00000,B01110,B10001,}; //Smile-2 | |
byte c3[8]={B00100,B01010,B10001,B10001,B01010,B00100,}; //Diamond | |
byte c4[8]={B01110,B01010,B11111,B11011,B11111,B01010,B01110,}; //Brick | |
byte c5[8]={B01010,B00100,B00100,B01010,B10001,B00100,B10001,}; //Hour-glass |
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 <LiquidCrystal.h> | |
//LiquidCrystal lcd(RS, E, D4, D5, D6, D7); | |
LiquidCrystal lcd(0, 2, 8, 9, 10, 11); | |
const int LM35 = A0; | |
float vin; | |
float vin_av = 0; | |
int tempc; |
OlderNewer