bool data_satu = 0; //variabel 1 bit (maksimal 1 dalam desimal)
byte data_dua = 0; //variabel 8 bit atau maksimal nilai 255(dalam desimal)
int8_t data_tiga = 0; // -128 sampai 127
const int8_t data_empat = 0;
int16_t data_lima;
char data_enam = 0; //variabel 8 bit atau maksimal nilai
unsigned char data_tujuh = 0; // 0 sampai 255
// int16_t //16bit
// int32_t //32bit
int16_t data_adc;
#define KELUAR OUTPUT
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
data_satu = 1;
data_dua = 100;
Serial.println(data_satu);
Serial.println(data_dua);
}
void loop() {
// put your main code here, to run repeatedly:
data_adc = analogRead(34);
Serial.println(data_adc);
delay(10); // this speeds up the simulation
}