String to int ____________________ String aa=”1″; int bb=a..
Category : Arduino
#include void setup() { Serial.begin(115200); // Start serial communication Wire.begin(12, 14); // Initialize I2C (D2 = SDA, D1 = SCL) Serial.println(“Scanning for I2C devices…”); for (byte i = 0; i < 127; i++) { Wire.beginTransmission(i); // Start communication with device at address i if (Wire.endTransmission() == 0) { // If communication is successful Serial.print("I2C device ..
Open File, than select Preference http://arduino.esp8266.com/stable/package_esp8266com_index.json https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_..
#include void setup() { Serial.begin (9600); while (!Serial); Serial.println (“=== Selamat Datang di indomaker ===”); Serial.println (“Mencari alamat I2C”); Serial.println (); Serial.println (“I2C scanner. Proses Scan …”); byte count = 0; Wire.begin(); for (byte i = 8; i < 120; i++) { Wire.beginTransmission (i); if (Wire.endTransmission () == 0) { Serial.print (“Alamat I2C : “); ..
https://arduino.esp8266.com/stable/package_esp8266com_index.json kemudian bilih preference boa..
#include #include void setup() { // put your setup code here, to run once: Serial.begin(9600); // Initiate a serial communication SPI.begin(); EEPROM.begin(512); delay(3000); //mengkosongkan eeprom } void writeString(char add,String data) { int _size = data.length(); int i;..
LCD Display Tutorial for Arduino, ESP8266 and ESP32 library https://github.com/lucas-inacio/TinyLiquidCrystal_I2C ====================== #include “Wire.h” #include “LiquidCrystal_I2C.h” // set the LCD address to 0x27 for a 16 chars and 2 line display LiquidCrystal_I2C lcd(0x27, 20, 4); void setup() { lcd.init(); lcd.backlight(); lcd.clear(); pinMode(14,OUTPUT); } void loop(){ sound_beep(1000,1,14); show_blink(); sound_beep(250,2,14); show_cursor(); sound_beep(250,2,14); scroll_display(); } void sound_beep(int time, int ..