Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <SPI.h>
- #include <Wire.h>
- #include <SoftwareSerial.h>
- #include <LiquidCrystal_I2C.h>
- LiquidCrystal_I2C lcd(0x3F, 20, 4);
- boolean BTconnected = false;
- void setup() {
- Wire.begin(4,0);
- pinMode(14, INPUT_PULLUP);
- lcd.begin();
- lcd.clear();
- lcd.setCursor(4,0);
- lcd.print("SETUP START");
- delay(3000);
- lcd.clear();
- lcd.setCursor(0,0);
- lcd.print(digitalRead(14));
- lcd.print("Wait for BT...");
- while (!BTconnected)
- {
- if ( digitalRead(14)==HIGH) { BTconnected = true;};
- }}
- void loop(){
- lcd.clear();
- lcd.setCursor(3,3);
- lcd.print("CONNECTED");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement