Hi,
why I cant use the Pin 0/1 for RX/TX on the Uno board with b4r ?
In the Adriano IDE it works fine to send data to a bluetooth shield.. See code/image
why I cant use the Pin 0/1 for RX/TX on the Uno board with b4r ?
In the Adriano IDE it works fine to send data to a bluetooth shield.. See code/image
B4X:
#include "DHT.h"
#define dht_pin A5 //Pino DATA do Sensor ligado na porta Analogica A5
#define DHTTYPE DHT11
DHT dht(dht_pin, DHTTYPE);
void setup()
{
Serial.begin(9600);
delay(1000);
dht.begin();
}
void loop()
{
float h = dht.readHumidity();
float t = dht.readTemperature();
// Mostra os valores lidos, na serial
Serial.print("Temp. = ");
Serial.print(t);
Serial.print(" C ");
Serial.print("Um. = ");
Serial.print(h);
Serial.println(" % ");
delay(2000);
}