Duda con código


hola estoy liado con la una rtc y su correspondiente librería (http://code.google.com/p/ds1307/downloads/list), pero me encuentro con la siguiente línea de código y no sé que sentido tiene el true y el false

code: [select]
rtc.get(ds1307_hr,true);
         rtc.get(ds1307_min,false);

obliga refrescar el buffer del reloj.
mira dentro de la libreria ahi esta explicado

void ds1307::get(int *rtc, boolean refresh)   // aquire data buffer , convert int, refresh buffer if required
{
  if(refresh) read();
  for(int i=0;i<7;i++)  // cycle through each component, create array of data
  {
    rtc=get(i, 0);
  }
}


Arduino Forum > International > Español > Software (Moderators: surbyte, Hector_A) > Duda con código


arduino

Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

How to format a Get Request

avrdude: verification error, first mismatch at byte 0x0000 0x0c != 0x62