ArmandoCircuitos
Inicio
Electronica
Programacion
Diagrama
Codigo
#define PIN RB7_bit #define PIN_DIR TRISB7_bit unsigned short hum, temp; char Text[4]; //Pines de salida para el LCD sbit LCD_RS at RD2_bit; sbit LCD_EN at RD3_bit; sbit LCD_D7 at RD7_bit; sbit LCD_D6 at RD6_bit; sbit LCD_D5 at RD5_bit; sbit LCD_D4 at RD4_bit; //Bits de configuración TRIS sbit LCD_RS_Direction at TRISD2_bit; sbit LCD_EN_Direction at TRISD3_bit; sbit LCD_D7_Direction at TRISD7_bit; sbit LCD_D6_Direction at TRISD6_bit; sbit LCD_D5_Direction at TRISD5_bit; sbit LCD_D4_Direction at TRISD4_bit; unsigned char dht11_read_byte(){ unsigned char i = 8, dht11_byte = 0; while(i--){ while(!PIN); delay_us(40); if(PIN){ dht11_byte |= (1<
Descarga del archivo
Descargar archivo