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
if a == b: | |
a = b | |
c = d | |
e = E |
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
if(a == b){ | |
a = b; | |
c = d; | |
} | |
e = E; |
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 <Wire.h> | |
#include <Adafruit_SSD1306.h> // Memanggil Library OLED SSD1306 | |
#define SCREEN_WIDTH 128 // Lebar Oled dalam Pixel | |
#define SCREEN_HEIGHT 32 // Tinggi Oled dalam Pixel | |
#define OLED_RESET 4 | |
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET); | |
int dataInt; //Mendeklarasi varibel dataInt |
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 <Servo.h> | |
Servo servo, servo1, servo2; | |
void setup() { | |
servo.attach(10); | |
servo1.attach(9); | |
servo2.attach(3); | |
servo.write(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
void setup() { | |
pinMode(3, OUTPUT); | |
pinMode(4, OUTPUT); | |
pinMode(5, OUTPUT); | |
} | |
void loop() { | |
int dataAdc = analogRead(0); | |
int pwm = dataAdc / 4; |
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 <Wire.h> | |
#include <LiquidCrystal_I2C.h> | |
LiquidCrystal_I2C lcd(0x20,16,2); | |
int dataAdc; | |
void setup() | |
{ | |
lcd.init(); |
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 <Wire.h> | |
#include <LiquidCrystal_I2C.h> | |
LiquidCrystal_I2C lcd(0x20,16,2); | |
int dataInteger = 100; | |
float dataFloat = 1.5; | |
char dataChar = 'c'; | |
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
// robotikindonesia.com | |
if(inputan > 10){ | |
// perintah 1 | |
} else { | |
// perintah 2 | |
} | |
// robotikindonesia.com |
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
// robotikindonesia.com | |
if(inputan > 10){ | |
//perintah | |
} | |
// robotikindonesia.com |
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 <DS3231.h> | |
#include <Wire.h> | |
#include "FS.h" | |
#include "SD.h" | |
#include "SPI.h" | |
#define SD_CS 5 | |
DS3231 Clock; | |
byte tahun; |
NewerOlder