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
sbit LED at LATA4_bit; | |
void main() { | |
TRISA=0b00000000; //[][][][LED][][][][] | |
LATA=0x00; | |
while(1){ | |
LED=1; delay_ms(1000); | |
LED=0; delay_ms(1000); |
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 <ESP8266WiFi.h> | |
#include <BlynkSimpleEsp8266.h> | |
// You should get Auth Token in the Blynk App. | |
// Go to the Project Settings (nut icon). | |
char auth[] = "********"; | |
// Your WiFi credentials. | |
// Set password to "" for open networks. | |
char ssid[] = "*************"; | |
char pass[] = "**************"; | |
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 <ESP8266WiFi.h> | |
#include <ESP8266WebServer.h> | |
#include "DHT.h" | |
#define DHTTYPE DHT11 // DHT 11 | |
/*Put your SSID & Password*/ | |
const char* ssid = "******"; //Wifi adınız | |
const char* password = "******"; //wifi şifreniz |
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 pin = 7; | |
unsigned long duration; | |
void setup() { | |
Serial.begin(9600); | |
pinMode(pin, INPUT); | |
} | |
void loop() | |
{ |
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_secrets.h" | |
/* | |
Sketch generated by the Arduino IoT Cloud Thing "Untitled" | |
https://create.arduino.cc/cloud/things/95af331e-a4ee-4612-9086-f4e9309455f5 | |
Arduino IoT Cloud Variables description | |
The following variables are automatically generated and updated when changes are made to the Thing | |
CloudLight led; |
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> //LCD ekran kütüphanesi | |
LiquidCrystal_I2C lcd(0x27, 16, 2); // Bu kodu kullanırken ekranda yazı çıkmaz ise 0x27 yerine 0x3f yazınız | |
#include <Keypad.h> //keypad kütüphanesi | |
const byte ROWS = 4; //satır | |
const byte COLS = 4; //sutun | |
char keys [ROWS] [COLS] = { | |
{'1', '2', '3', '+'}, |
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 <Keypad.h> | |
const byte ROWS = 4; //satır | |
const byte COLS = 4; //sutun | |
char buton; | |
char keys [ROWS] [COLS] = { | |
{'1', '2', '3', 'A'}, | |
{'4', '5', '6', 'B'}, | |
{'7', '8', '9', '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
// I2C device class (I2Cdev) demonstration Arduino sketch for MPU6050 class using DMP (MotionApps v2.0) | |
// 6/21/2012 by Jeff Rowberg <jeff@rowberg.net> | |
// Updates should (hopefully) always be available at https://github.com/jrowberg/i2cdevlib | |
// | |
// Changelog: | |
// 2013-05-08 - added seamless Fastwire support | |
// - added note about gyro calibration | |
// 2012-06-21 - added note about Arduino 1.0.1 + Leonardo compatibility error | |
// 2012-06-20 - improved FIFO overflow handling and simplified read process | |
// 2012-06-19 - completely rearranged DMP initialization code and simplification |
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 <SPI.h> | |
#include <Wire.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_SSD1306.h> | |
#define UP_BUTTON 2 | |
#define DOWN_BUTTON 3 | |
const unsigned long PADDLE_RATE = 33; | |
const unsigned long BALL_RATE = 16; |
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_NeoPixel.h> | |
#ifdef __AVR__ | |
#include <avr/power.h> | |
#endif | |
int ara_deger,ara_deger2; | |
// aradeger2 0 ve 1 olamaz | |
float hassasiyet = 0.2; // 0 ile 1 arasında bir float değer girin örnek 0.444 bu değer analogtan okuduğumuz değeri yumuşak bi şekilde yansıtmak için |
NewerOlder