// // UNTUK TRUE/FALSE
// bool BLKSby = false;
// void setup() {
// // put your setup code here, to run once:
// Serial.begin(115200);
// Serial.println("Hello, ESP32!");
// }
// void loop() {
// // put your main code here, to run repeatedly:
// Serial.print("Status = ");
// Serial.println(BLKSby? "Active" : "Inactive");
// delay(10); // this speeds up the simulation
// }
// // CHAR (UNTUK HURUF AKHIR SAJA)
// char FirstInitial = 'FITRAH';
// void setup() {
// // put your setup code here, to run once:
// Serial.begin(115200);
// // Serial.println("Hello, ESP32!");
// }
// void loop() {
// // put your main code here, to run repeatedly:
// Serial.print("Initial Nama = ");
// Serial.println(FirstInitial);
// delay(10); // this speeds up the simulation
// }
// // INT (UNTUK BILANGAN BULAT, TIDAK BISA KOMA, BISA MINUS)
// int SensorValue = -2;
// void setup() {
// // put your setup code here, to run once:
// Serial.begin(115200);
// // Serial.println("Hello, ESP32!");
// }
// void loop() {
// // put your main code here, to run repeatedly:
// Serial.print("Sensor Value = ");
// Serial.println(SensorValue);
// delay(10); // this speeds up the simulation
// }
// // FLOAT (UNTUK DESIMAL)
// float Humidity = 35.568;
// void setup() {
// // put your setup code here, to run once:
// Serial.begin(115200);
// // Serial.println("Hello, ESP32!");
// }
// void loop() {
// // put your main code here, to run repeatedly:
// Serial.print("Humidity Value = ");
// Serial.println(Humidity, 3); // 1 untuk menampilkan angka di belakang koma
// delay(10); // this speeds up the simulation
// }
// // DOUBLE (UNTUK DESIMAL JUGA)
// double Humidity = 35.568;
// void setup() {
// // put your setup code here, to run once:
// Serial.begin(115200);
// // Serial.println("Hello, ESP32!");
// }
// void loop() {
// // put your main code here, to run repeatedly:
// Serial.print("Humidity Value = ");
// Serial.println(Humidity, 1); // 1 untuk menampilkan angka di belakang koma
// delay(10); // this speeds up the simulation
// }
// // OPERASI ARITMATIKA
// float x = 5, y = 2, a = 7;
// float z = (x/y)+0.5+a;
// void setup() {
// // put your setup code here, to run once:
// Serial.begin(115200);
// Serial.print("nilai z =");
// Serial.println(z, 2);
// // Serial.println("Hello, ESP32!");
// }
// void loop() {
// // put your main code here, to run repeatedly:
// delay(10); // this speeds up the simulation
// }
// WHILE
int Gamon = 0;
int Moveon = 10;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
while (Gamon!=Moveon){
Serial.print("Galau terus ke :");
Serial.println(Gamon);
Gamon++;
}
// // Serial.println("Hello, ESP32!");
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}