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 <stdio.h> | |
#include <stdlib.h> | |
int main() | |
{ | |
int a[]={1,3,4,5,7,8,9,45,11,65,2,6}; | |
int num,i,p,c=0; | |
int n=sizeof(a)/sizeof(a[0]); | |
printf("Enter a value :\n"); |
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 <stdio.h> | |
#include <stdlib.h> | |
int main() | |
{ | |
char a[]={'a','b','c','d'}; | |
int i,p,c=0; | |
char num; | |
int n=sizeof(a)/sizeof(a[0]); |
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 <Adafruit_Sensor.h> | |
/* | |
1. Go to sketch | |
2. Go to Manage Libraries | |
3. Install Adafruit unified sensor | |
4. Add that Adafruit unified sensor file | |
*/ |
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> | |
#include <IRremote.h> | |
int RECV_PIN = 9; // Output pin of TSOP sensor | |
IRrecv irrecv(RECV_PIN); | |
decode_results results; | |
LiquidCrystal lcd(7,6,5,4,3,2); | |
#define light1 10 | |
#define light2 11 |
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 ledPin=8; | |
void setup() { | |
// put your setup code here, to run once: | |
pinMode(ledPin,OUTPUT); | |
} | |
void loop() { | |
// put your main code here, to run repeatedly: | |
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
/* | |
Morse Code Project | |
This code will loop through a string of characters and convert these to morse code. | |
It will blink two LED lights and play audio on a speaker. | |
*/ | |
//**************************************************// | |
// Type the String to Convert to Morse Code Here // |
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_I2C.h> | |
LiquidCrystal_I2C lcd(0x27,16,2); | |
void setup() { | |
lcd.init(); | |
lcd.backlight(); | |
lcd.setCursor(0, 0); | |
lcd.print("Noobie Electronic"); | |
lcd.setCursor(0, 1); |