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
Code:
#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...
from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1WUvYNd
via IFTTT
Aucun commentaire:
Enregistrer un commentaire