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
class PIR { | |
private: | |
int _ledPin; | |
int _pirPin; | |
int _pirState; | |
public: |
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
/* Project Ardu_Serie # 45 | |
Working w/ MultiFile Sketch - Part III - Atmega328p IC - Arduino MC | |
Ino File: _45_working_w_MultiFile_Sketch_03.ino | |
*/ | |
#include <LiquidCrystal.h> | |
#include <DFR_LCD_Keypad.h> //Sample using https://www.dfrobot.com library | |
// select the pins used on the LCD panel | |
LiquidCrystal lcd(8, 9, 4, 5, 6, 7); |
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
class HC_SR04 { | |
private: | |
int _trigPin; // HC-04 variables | |
int _echoPin; | |
long _duration; | |
int _distanceCm; | |
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
/* Project Ardu_Serie # 45 | |
Working w/ MultiFile Sketch - Part II - Atmega328p IC - Arduino MC | |
Ino File: _45_working_w_MultiFile_Sketch_02.ino | |
*/ | |
#include <LiquidCrystal.h> | |
#include <DFR_LCD_Keypad.h> //Sample using https://www.dfrobot.com library | |
// select the pins used on the LCD panel | |
LiquidCrystal lcd(8, 9, 4, 5, 6, 7); |
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
/* Project Ardu_Serie # 45 | |
Working w/ MultiFile Sketch - Part I - Atmega328p IC - Arduino MC | |
Ino File: _45_working_w_MultiFile_Sketch_01.ino | |
*/ | |
#include <LiquidCrystal.h> | |
#include <DFR_LCD_Keypad.h> //Sample using https://www.dfrobot.com library | |
// select the pins used on the LCD panel | |
LiquidCrystal lcd(8, 9, 4, 5, 6, 7); |
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
/* Project Ardu_Serie # 43 | |
* Working w/CTC Mode Part I - Atmega328p IC - Arduino MC | |
* | |
* C File: _43_working_w_CTC_01.c | |
* | |
* Use: TIMER2 | |
* | |
* Objective: We need to flash an LED every 100 ms (10 Hertz). | |
* | |
* Instructions: |
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
/* Project Ardu_Serie # 43 | |
* Working w/CTC w/Interruption w/ OCnx Toggle Pin Mode Part III - Atmega328p IC - Arduino MC | |
* | |
* Use: TIMER2 | |
* | |
* Objective: We need to flash an LED every 100 ms (10 Hertz). | |
* Using Interruption instead of polling technique! | |
* Getting hid of ISR Method! Use OCnx PIN (Toggle mode) | |
*/ | |
#include <avr/io.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
/* Project Ardu_Serie # 43 | |
* Working w/CTC w/Interruption Mode Part II - Atmega328p IC - Arduino MC | |
* | |
* Use: TIMER2 | |
* | |
* Objective: We need to flash an LED every 100 ms (10 Hertz). | |
* Using Interruption instead of polling technique! | |
*/ | |
#include <avr/io.h> | |
#include <avr/interrupt.h> // 1ª Modification: include int library |
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
/* Project Ardu_Serie # 43 | |
* Working w/CTC Mode Part I - Atmega328p IC - Arduino MC | |
* | |
* Use: TIMER2 | |
* | |
* Objective: We need to flash an LED every 100 ms (10 Hertz). | |
*/ | |
#include <avr/io.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
####################################### | |
# Syntax Coloring Map For LED | |
####################################### | |
####################################### | |
# Datatypes (KEYWORD1) | |
####################################### | |
LED KEYWORD1 |