i recently started working on pinguino and wanted to make a snooze
timer for my son who wants to stay awake while studying. he should
press a button within a specified time or else the buzzer will sound
and awaken him
i needed to resert the millis count for this sothat every time the
button is pressed the cycle starts over again
i searched and found the _millis(0) post
i copy pasted the whole code as a trial but it wont compile giving
error
> i recently started working on pinguino and wanted to make a snooze > timer for my son who wants to stay awake while studying. he should > press a button within a specified time or else the buzzer will sound > and awaken him
> i needed to resert the millis count for this sothat every time the > button is pressed the cycle starts over again
> i searched and found the _millis(0) post
> i copy pasted the whole code as a trial but it wont compile giving > error
> i am using beta 9.05 and 18F2550
> thanks in advance for helping
> vasant phadke
> -- > Vous recevez ce message, car vous êtes abonné au groupe Google > Groupes Pinguino. > Pour envoyer un message à ce groupe, adressez un e-mail à > pinguinocard@googlegroups.com. > Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse > pinguinocard+unsubscribe@googlegroups.com. > Pour plus d'options, consultez la page de ce groupe : > http://groups.google.com/group/pinguinocard?hl=fr
> > i recently started working on pinguino and wanted to make a snooze
> > timer for my son who wants to stay awake while studying. he should
> > press a button within a specified time or else the buzzer will sound
> > and awaken him
> > i needed to resert the millis count for this sothat every time the
> > button is pressed the cycle starts over again
> > i searched and found the _millis(0) post
> > i copy pasted the whole code as a trial but it wont compile giving
> > error
> > i am using beta 9.05 and 18F2550
> > thanks in advance for helping
> > vasant phadke
> > --
> > Vous recevez ce message, car vous êtes abonné au groupe Google
> > Groupes Pinguino.
> > Pour envoyer un message à ce groupe, adressez un e-mail à
> > pinguinocard@googlegroups.com.
> > Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse
> > pinguinocard+unsubscribe@googlegroups.com.
> > Pour plus d'options, consultez la page de ce groupe :
> >http://groups.google.com/group/pinguinocard?hl=fr
>>> i recently started working on pinguino and wanted to make a snooze >>> timer for my son who wants to stay awake while studying. he should >>> press a button within a specified time or else the buzzer will sound >>> and awaken him
>>> i needed to resert the millis count for this sothat every time the >>> button is pressed the cycle starts over again
>>> i searched and found the _millis(0) post
>>> i copy pasted the whole code as a trial but it wont compile giving >>> error
>>> i am using beta 9.05 and 18F2550
>>> thanks in advance for helping
>>> vasant phadke
>>> -- >>> Vous recevez ce message, car vous êtes abonné au groupe Google >>> Groupes Pinguino. >>> Pour envoyer un message à ce groupe, adressez un e-mail à >>> pinguinocard@googlegroups.com. >>> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse >>> pinguinocard+unsubscribe@googlegroups.com. >>> Pour plus d'options, consultez la page de ce groupe : >>> http://groups.google.com/group/pinguinocard?hl=fr
> -- > Vous recevez ce message, car vous êtes abonné au groupe Google Groupes Pinguino. > Pour envoyer un message à ce groupe, adressez un e-mail à pinguinocard@googlegroups.com. > Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse pinguinocard+unsubscribe@googlegroups.com. > Pour plus d'options, consultez la page de ce groupe : http://groups.google.com/group/pinguinocard?hl=fr
>>> i recently started working on pinguino and wanted to make a snooze >>> timer for my son who wants to stay awake while studying. he should >>> press a button within a specified time or else the buzzer will sound >>> and awaken him
>>> i needed to resert the millis count for this sothat every time the >>> button is pressed the cycle starts over again
>>> i searched and found the _millis(0) post
>>> i copy pasted the whole code as a trial but it wont compile giving >>> error
>>> i am using beta 9.05 and 18F2550
>>> thanks in advance for helping
>>> vasant phadke
>>> -- >>> Vous recevez ce message, car vous êtes abonné au groupe Google >>> Groupes Pinguino. >>> Pour envoyer un message à ce groupe, adressez un e-mail à >>> pinguinocard@googlegroups.com. >>> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse >>> pinguinocard+unsubscribe@googlegroups.com. >>> Pour plus d'options, consultez la page de ce groupe : >>> http://groups.google.com/group/pinguinocard?hl=fr
> -- > Vous recevez ce message, car vous êtes abonné au groupe Google Groupes Pinguino. > Pour envoyer un message à ce groupe, adressez un e-mail à pinguinocard@googlegroups.com. > Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse pinguinocard+unsubscribe@googlegroups.com. > Pour plus d'options, consultez la page de ce groupe : http://groups.google.com/group/pinguinocard?hl=fr
> >>> i recently started working on pinguino and wanted to make a snooze
> >>> timer for my son who wants to stay awake while studying. he should
> >>> press a button within a specified time or else the buzzer will sound
> >>> and awaken him
> >>> i needed to resert the millis count for this sothat every time the
> >>> button is pressed the cycle starts over again
> >>> i searched and found the _millis(0) post
> >>> i copy pasted the whole code as a trial but it wont compile giving
> >>> error
> >>> i am using beta 9.05 and 18F2550
> >>> thanks in advance for helping
> >>> vasant phadke
> >>> --
> >>> Vous recevez ce message, car vous êtes abonné au groupe Google
> >>> Groupes Pinguino.
> >>> Pour envoyer un message à ce groupe, adressez un e-mail à
> >>> pinguinocard@googlegroups.com.
> >>> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse
> >>> pinguinocard+unsubscribe@googlegroups.com.
> >>> Pour plus d'options, consultez la page de ce groupe :
> >>>http://groups.google.com/group/pinguinocard?hl=fr
> > --
> > Vous recevez ce message, car vous êtes abonné au groupe Google Groupes Pinguino.
> > Pour envoyer un message à ce groupe, adressez un e-mail à pinguinocard@googlegroups.com.
> > Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse pinguinocard+unsubscribe@googlegroups.com.
> > Pour plus d'options, consultez la page de ce groupe :http://groups.google.com/group/pinguinocard?hl=fr
> void loop() > { > if (millis()>1000) digitalWrite(0,HIGH); // light the led after 1 > second
> if (millis()>2000) _millis=0; // reset the millis() counter after 2 > seconds > }
> this is the code from the wiki--functions--millis
> i tried _millis0; and _millis(0); both
> same compilation error-------error 20: Undefined identifier '_Millis' > thanks again for a quick reply
> regards > vasant
> On Dec 22, 2:24 pm, Benoit Espinola <benoitespin...@gmail.com> wrote: > > If you post the source code we can also help you in a more effective > way...
> > Best regards,
> > Benoit
> > On 22 déc. 2011, at 10:12, Vasant Phadke <nasik2...@gmail.com> wrote:
> > > i tried that by copying a code of millis reset given elsewhere in the > > > group posts
> > > but it wont compile giving error
> > > i dont know why . i am using pinguino beta 9-05 or shall i use another > > > version
> > > thanks again for a quick one
> > > vasant
> > > On Dec 22, 1:19 pm, jp mandon <jp.man...@gmail.com> wrote: > > >> Hi
> > >> _millis is an internal variable used to count time. You can reset it > using: > > >> _millis=0;
> > >> I hope your son will stay awake with this !!
> > >>> i recently started working on pinguino and wanted to make a snooze > > >>> timer for my son who wants to stay awake while studying. he should > > >>> press a button within a specified time or else the buzzer will sound > > >>> and awaken him
> > >>> i needed to resert the millis count for this sothat every time the > > >>> button is pressed the cycle starts over again
> > >>> i searched and found the _millis(0) post
> > >>> i copy pasted the whole code as a trial but it wont compile giving > > >>> error
> > >>> i am using beta 9.05 and 18F2550
> > >>> thanks in advance for helping
> > >>> vasant phadke
> > >>> -- > > >>> Vous recevez ce message, car vous êtes abonné au groupe Google > > >>> Groupes Pinguino. > > >>> Pour envoyer un message à ce groupe, adressez un e-mail à > > >>> pinguinocard@googlegroups.com. > > >>> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse > > >>> pinguinocard+unsubscribe@googlegroups.com. > > >>> Pour plus d'options, consultez la page de ce groupe : > > >>>http://groups.google.com/group/pinguinocard?hl=fr
> > > -- > > > Vous recevez ce message, car vous êtes abonné au groupe Google Groupes > Pinguino. > > > Pour envoyer un message à ce groupe, adressez un e-mail à > pinguinocard@googlegroups.com. > > > Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse > pinguinocard+unsubscribe@googlegroups.com. > > > Pour plus d'options, consultez la page de ce groupe : > http://groups.google.com/group/pinguinocard?hl=fr
> -- > Vous recevez ce message, car vous êtes abonné au groupe Google > Groupes Pinguino. > Pour envoyer un message à ce groupe, adressez un e-mail à > pinguinocard@googlegroups.com. > Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse > pinguinocard+unsubscribe@googlegroups.com. > Pour plus d'options, consultez la page de ce groupe : > http://groups.google.com/group/pinguinocard?hl=fr
>> void loop() >> { >> if (millis()>1000) digitalWrite(0,HIGH); // light the led after 1 >> second
>> if (millis()>2000) _millis=0; // reset the millis() counter after 2 >> seconds >> }
>> this is the code from the wiki--functions--millis
>> i tried _millis0; and _millis(0); both
>> same compilation error-------error 20: Undefined identifier '_Millis' >> thanks again for a quick reply
>> regards >> vasant
>> On Dec 22, 2:24 pm, Benoit Espinola <benoitespin...@gmail.com> wrote: >> > If you post the source code we can also help you in a more effective >> way...
>> > Best regards,
>> > Benoit
>> > On 22 déc. 2011, at 10:12, Vasant Phadke <nasik2...@gmail.com> wrote:
>> > > i tried that by copying a code of millis reset given elsewhere in the >> > > group posts
>> > > but it wont compile giving error
>> > > i dont know why . i am using pinguino beta 9-05 or shall i use another >> > > version
>> > > thanks again for a quick one
>> > > vasant
>> > > On Dec 22, 1:19 pm, jp mandon <jp.man...@gmail.com> wrote: >> > >> Hi
>> > >> _millis is an internal variable used to count time. You can reset it >> using: >> > >> _millis=0;
>> > >> I hope your son will stay awake with this !!
>> > >>> i recently started working on pinguino and wanted to make a snooze >> > >>> timer for my son who wants to stay awake while studying. he should >> > >>> press a button within a specified time or else the buzzer will sound >> > >>> and awaken him
>> > >>> i needed to resert the millis count for this sothat every time the >> > >>> button is pressed the cycle starts over again
>> > >>> i searched and found the _millis(0) post
>> > >>> i copy pasted the whole code as a trial but it wont compile giving >> > >>> error
>> > >>> i am using beta 9.05 and 18F2550
>> > >>> thanks in advance for helping
>> > >>> vasant phadke
>> > >>> -- >> > >>> Vous recevez ce message, car vous êtes abonné au groupe Google >> > >>> Groupes Pinguino. >> > >>> Pour envoyer un message à ce groupe, adressez un e-mail à >> > >>> pinguinocard@googlegroups.com. >> > >>> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse >> > >>> pinguinocard+unsubscribe@googlegroups.com. >> > >>> Pour plus d'options, consultez la page de ce groupe : >> > >>>http://groups.google.com/group/pinguinocard?hl=fr
>> > > -- >> > > Vous recevez ce message, car vous êtes abonné au groupe Google Groupes >> Pinguino. >> > > Pour envoyer un message à ce groupe, adressez un e-mail à >> pinguinocard@googlegroups.com. >> > > Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse >> pinguinocard+unsubscribe@googlegroups.com. >> > > Pour plus d'options, consultez la page de ce groupe : >> http://groups.google.com/group/pinguinocard?hl=fr
>> -- >> Vous recevez ce message, car vous êtes abonné au groupe Google >> Groupes Pinguino. >> Pour envoyer un message à ce groupe, adressez un e-mail à >> pinguinocard@googlegroups.com. >> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse >> pinguinocard+unsubscribe@googlegroups.com. >> Pour plus d'options, consultez la page de ce groupe : >> http://groups.google.com/group/pinguinocard?hl=fr
> -- > Vous recevez ce message, car vous êtes abonné au groupe Google > Groupes Pinguino. > Pour envoyer un message à ce groupe, adressez un e-mail > à pinguinocard@googlegroups.com. > Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse > pinguinocard+unsubscribe@googlegroups.com. > Pour plus d'options, consultez la page de ce groupe : > http://groups.google.com/group/pinguinocard?hl=fr
> Thanks everybody for the response i will try it tomorrow and revert > back thanks once again > Vasant
> On 12/22/11, jp mandon <jp.man...@gmail.com> wrote: >> remove the comment '// reset the millis() counter after 2' and it will be >> OK. This is a bug of the 9-05 release.
>>> void loop() >>> { >>> if (millis()>1000) digitalWrite(0,HIGH); // light the led after 1 >>> second
>>> if (millis()>2000) _millis=0; // reset the millis() counter after 2 >>> seconds >>> }
>>> this is the code from the wiki--functions--millis
>>> i tried _millis0; and _millis(0); both
>>> same compilation error-------error 20: Undefined identifier '_Millis' >>> thanks again for a quick reply
>>> regards >>> vasant
>>> On Dec 22, 2:24 pm, Benoit Espinola <benoitespin...@gmail.com> wrote: >>>> If you post the source code we can also help you in a more effective >>> way...
>>>> Best regards,
>>>> Benoit
>>>> On 22 déc. 2011, at 10:12, Vasant Phadke <nasik2...@gmail.com> wrote:
>>>>> i tried that by copying a code of millis reset given elsewhere in the >>>>> group posts
>>>>> but it wont compile giving error
>>>>> i dont know why . i am using pinguino beta 9-05 or shall i use another >>>>> version
>>>>> thanks again for a quick one
>>>>> vasant
>>>>> On Dec 22, 1:19 pm, jp mandon <jp.man...@gmail.com> wrote: >>>>>> Hi
>>>>>> _millis is an internal variable used to count time. You can reset it >>> using: >>>>>> _millis=0;
>>>>>> I hope your son will stay awake with this !!
>>>>>>> i recently started working on pinguino and wanted to make a snooze >>>>>>> timer for my son who wants to stay awake while studying. he should >>>>>>> press a button within a specified time or else the buzzer will sound >>>>>>> and awaken him
>>>>>>> i needed to resert the millis count for this sothat every time the >>>>>>> button is pressed the cycle starts over again
>>>>>>> i searched and found the _millis(0) post
>>>>>>> i copy pasted the whole code as a trial but it wont compile giving >>>>>>> error
>>>>>>> i am using beta 9.05 and 18F2550
>>>>>>> thanks in advance for helping
>>>>>>> vasant phadke
>>>>>>> -- >>>>>>> Vous recevez ce message, car vous êtes abonné au groupe Google >>>>>>> Groupes Pinguino. >>>>>>> Pour envoyer un message à ce groupe, adressez un e-mail à >>>>>>> pinguinocard@googlegroups.com. >>>>>>> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse >>>>>>> pinguinocard+unsubscribe@googlegroups.com. >>>>>>> Pour plus d'options, consultez la page de ce groupe : >>>>>>> http://groups.google.com/group/pinguinocard?hl=fr
>>>>> -- >>>>> Vous recevez ce message, car vous êtes abonné au groupe Google Groupes >>> Pinguino. >>>>> Pour envoyer un message à ce groupe, adressez un e-mail à >>> pinguinocard@googlegroups.com. >>>>> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse >>> pinguinocard+unsubscribe@googlegroups.com. >>>>> Pour plus d'options, consultez la page de ce groupe : >>> http://groups.google.com/group/pinguinocard?hl=fr
>>> -- >>> Vous recevez ce message, car vous êtes abonné au groupe Google >>> Groupes Pinguino. >>> Pour envoyer un message à ce groupe, adressez un e-mail à >>> pinguinocard@googlegroups.com. >>> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse >>> pinguinocard+unsubscribe@googlegroups.com. >>> Pour plus d'options, consultez la page de ce groupe : >>> http://groups.google.com/group/pinguinocard?hl=fr
>> -- >> Vous recevez ce message, car vous êtes abonné au groupe Google >> Groupes Pinguino. >> Pour envoyer un message à ce groupe, adressez un e-mail >> à pinguinocard@googlegroups.com. >> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse >> pinguinocard+unsubscribe@googlegroups.com. >> Pour plus d'options, consultez la page de ce groupe : >> http://groups.google.com/group/pinguinocard?hl=fr
> -- > Sent from my mobile device
> -- > Vous recevez ce message, car vous êtes abonné au groupe Google Groupes Pinguino. > Pour envoyer un message à ce groupe, adressez un e-mail à pinguinocard@googlegroups.com. > Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse pinguinocard+unsubscribe@googlegroups.com. > Pour plus d'options, consultez la page de ce groupe : http://groups.google.com/group/pinguinocard?hl=fr
> >> void loop()
> >> {
> >> if (millis()>1000) digitalWrite(0,HIGH); // light the led after 1
> >> second
> >> if (millis()>2000) _millis=0; // reset the millis() counter after 2
> >> seconds
> >> }
> >> this is the code from the wiki--functions--millis
> >> i tried _millis0; and _millis(0); both
> >> same compilation error-------error 20: Undefined identifier '_Millis'
> >> thanks again for a quick reply
> >> regards
> >> vasant
> >> On Dec 22, 2:24 pm, Benoit Espinola <benoitespin...@gmail.com> wrote:
> >> > If you post the source code we can also help you in a more effective
> >> way...
> >> > Best regards,
> >> > Benoit
> >> > On 22 déc. 2011, at 10:12, Vasant Phadke <nasik2...@gmail.com> wrote:
> >> > > i tried that by copying a code of millis reset given elsewhere in the
> >> > > group posts
> >> > > but it wont compile giving error
> >> > > i dont know why . i am using pinguino beta 9-05 or shall i use another
> >> > > version
> >> > > thanks again for a quick one
> >> > > vasant
> >> > > On Dec 22, 1:19 pm, jp mandon <jp.man...@gmail.com> wrote:
> >> > >> Hi
> >> > >> _millis is an internal variable used to count time. You can reset it
> >> using:
> >> > >> _millis=0;
> >> > >> I hope your son will stay awake with this !!
> >> > >>> i recently started working on pinguino and wanted to make a snooze
> >> > >>> timer for my son who wants to stay awake while studying. he should
> >> > >>> press a button within a specified time or else the buzzer will sound
> >> > >>> and awaken him
> >> > >>> i needed to resert the millis count for this sothat every time the
> >> > >>> button is pressed the cycle starts over again
> >> > >>> i searched and found the _millis(0) post
> >> > >>> i copy pasted the whole code as a trial but it wont compile giving
> >> > >>> error
> >> > >>> i am using beta 9.05 and 18F2550
> >> > >>> thanks in advance for helping
> >> > >>> vasant phadke
> >> > >>> --
> >> > >>> Vous recevez ce message, car vous êtes abonné au groupe Google
> >> > >>> Groupes Pinguino.
> >> > >>> Pour envoyer un message à ce groupe, adressez un e-mail à
> >> > >>> pinguinocard@googlegroups.com.
> >> > >>> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse
> >> > >>> pinguinocard+unsubscribe@googlegroups.com.
> >> > >>> Pour plus d'options, consultez la page de ce groupe :
> >> > >>>http://groups.google.com/group/pinguinocard?hl=fr
> >> > > --
> >> > > Vous recevez ce message, car vous êtes abonné au groupe Google Groupes
> >> Pinguino.
> >> > > Pour envoyer un message à ce groupe, adressez un e-mail à
> >> pinguinocard@googlegroups.com.
> >> > > Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse
> >> pinguinocard+unsubscribe@googlegroups.com.
> >> > > Pour plus d'options, consultez la page de ce groupe :
> >>http://groups.google.com/group/pinguinocard?hl=fr
> >> --
> >> Vous recevez ce message, car vous êtes abonné au groupe Google
> >> Groupes Pinguino.
> >> Pour envoyer un message à ce groupe, adressez un e-mail à
> >> pinguinocard@googlegroups.com.
> >> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse
> >> pinguinocard+unsubscribe@googlegroups.com.
> >> Pour plus d'options, consultez la page de ce groupe :
> >>http://groups.google.com/group/pinguinocard?hl=fr
> > --
> > Vous recevez ce message, car vous êtes abonné au groupe Google
> > Groupes Pinguino.
> > Pour envoyer un message à ce groupe, adressez un e-mail
> > à pinguinocard@googlegroups.com.
> > Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse
> > pinguinocard+unsubscribe@googlegroups.com.
> > Pour plus d'options, consultez la page de ce groupe :
> >http://groups.google.com/group/pinguinocard?hl=fr
void loop() { if (millis() > 1000) digitalWrite(0,HIGH);
if (millis() > 2000){ _millis = 0; digitalWrite(0,LOW);
} }
Try to copy and paste this code, I removed all the comments and added a space in between the operators and conditionals and added the digitalWrite low to turn off the LED
(I have no computer with me right now so I cannot test the source code but try this anyway)
On 23 déc. 2011, at 04:53, Vasant Phadke <nasik2...@gmail.com> wrote:
> dear jp > i tried ,first thing in the morning,by removing the comment > sorry but still the same error > vasant phadke
> On Dec 22, 6:46 pm, Vasant Phadke <nasik2...@gmail.com> wrote: >> Thanks everybody for the response i will try it tomorrow and revert >> back thanks once again >> Vasant
>> On 12/22/11, jp mandon <jp.man...@gmail.com> wrote:
>>> remove the comment '// reset the millis() counter after 2' and it will be >>> OK. This is a bug of the 9-05 release.
>>>> void loop() >>>> { >>>> if (millis()>1000) digitalWrite(0,HIGH); // light the led after 1 >>>> second
>>>> if (millis()>2000) _millis=0; // reset the millis() counter after 2 >>>> seconds >>>> }
>>>> this is the code from the wiki--functions--millis
>>>> i tried _millis0; and _millis(0); both
>>>> same compilation error-------error 20: Undefined identifier '_Millis' >>>> thanks again for a quick reply
>>>> regards >>>> vasant
>>>> On Dec 22, 2:24 pm, Benoit Espinola <benoitespin...@gmail.com> wrote: >>>>> If you post the source code we can also help you in a more effective >>>> way...
>>>>> Best regards,
>>>>> Benoit
>>>>> On 22 déc. 2011, at 10:12, Vasant Phadke <nasik2...@gmail.com> wrote:
>>>>>> i tried that by copying a code of millis reset given elsewhere in the >>>>>> group posts
>>>>>> but it wont compile giving error
>>>>>> i dont know why . i am using pinguino beta 9-05 or shall i use another >>>>>> version
>>>>>> thanks again for a quick one
>>>>>> vasant
>>>>>> On Dec 22, 1:19 pm, jp mandon <jp.man...@gmail.com> wrote: >>>>>>> Hi
>>>>>>> _millis is an internal variable used to count time. You can reset it >>>> using: >>>>>>> _millis=0;
>>>>>>> I hope your son will stay awake with this !!
>>>>>>>> i recently started working on pinguino and wanted to make a snooze >>>>>>>> timer for my son who wants to stay awake while studying. he should >>>>>>>> press a button within a specified time or else the buzzer will sound >>>>>>>> and awaken him
>>>>>>>> i needed to resert the millis count for this sothat every time the >>>>>>>> button is pressed the cycle starts over again
>>>>>>>> i searched and found the _millis(0) post
>>>>>>>> i copy pasted the whole code as a trial but it wont compile giving >>>>>>>> error
>>>>>>>> i am using beta 9.05 and 18F2550
>>>>>>>> thanks in advance for helping
>>>>>>>> vasant phadke
>>>>>>>> -- >>>>>>>> Vous recevez ce message, car vous êtes abonné au groupe Google >>>>>>>> Groupes Pinguino. >>>>>>>> Pour envoyer un message à ce groupe, adressez un e-mail à >>>>>>>> pinguinocard@googlegroups.com. >>>>>>>> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse >>>>>>>> pinguinocard+unsubscribe@googlegroups.com. >>>>>>>> Pour plus d'options, consultez la page de ce groupe : >>>>>>>> http://groups.google.com/group/pinguinocard?hl=fr
>>>>>> -- >>>>>> Vous recevez ce message, car vous êtes abonné au groupe Google Groupes >>>> Pinguino. >>>>>> Pour envoyer un message à ce groupe, adressez un e-mail à >>>> pinguinocard@googlegroups.com. >>>>>> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse >>>> pinguinocard+unsubscribe@googlegroups.com. >>>>>> Pour plus d'options, consultez la page de ce groupe : >>>> http://groups.google.com/group/pinguinocard?hl=fr
>>>> -- >>>> Vous recevez ce message, car vous êtes abonné au groupe Google >>>> Groupes Pinguino. >>>> Pour envoyer un message à ce groupe, adressez un e-mail à >>>> pinguinocard@googlegroups.com. >>>> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse >>>> pinguinocard+unsubscribe@googlegroups.com. >>>> Pour plus d'options, consultez la page de ce groupe : >>>> http://groups.google.com/group/pinguinocard?hl=fr
>>> -- >>> Vous recevez ce message, car vous êtes abonné au groupe Google >>> Groupes Pinguino. >>> Pour envoyer un message à ce groupe, adressez un e-mail >>> à pinguinocard@googlegroups.com. >>> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse >>> pinguinocard+unsubscribe@googlegroups.com. >>> Pour plus d'options, consultez la page de ce groupe : >>> http://groups.google.com/group/pinguinocard?hl=fr
>> -- >> Sent from my mobile device
> -- > Vous recevez ce message, car vous êtes abonné au groupe Google Groupes Pinguino. > Pour envoyer un message à ce groupe, adressez un e-mail à pinguinocard@googlegroups.com. > Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse pinguinocard+unsubscribe@googlegroups.com. > Pour plus d'options, consultez la page de ce groupe : http://groups.google.com/group/pinguinocard?hl=fr
> Try to copy and paste this code, I removed all the comments and added a space in between the operators and conditionals and added the digitalWrite low to turn off the LED
> (I have no computer with me right now so I cannot test the source code but try this anyway)
> On 23 déc. 2011, at 04:53, Vasant Phadke <nasik2...@gmail.com> wrote:
> > dear jp
> > i tried ,first thing in the morning,by removing the comment
> > sorry but still the same error
> > vasant phadke
> > On Dec 22, 6:46 pm, Vasant Phadke <nasik2...@gmail.com> wrote:
> >> Thanks everybody for the response i will try it tomorrow and revert
> >> back thanks once again
> >> Vasant
> >> On 12/22/11, jp mandon <jp.man...@gmail.com> wrote:
> >>> remove the comment '// reset the millis() counter after 2' and it will be
> >>> OK. This is a bug of the 9-05 release.
> >>>> void loop()
> >>>> {
> >>>> if (millis()>1000) digitalWrite(0,HIGH); // light the led after 1
> >>>> second
> >>>> if (millis()>2000) _millis=0; // reset the millis() counter after 2
> >>>> seconds
> >>>> }
> >>>> this is the code from the wiki--functions--millis
> >>>> i tried _millis0; and _millis(0); both
> >>>> same compilation error-------error 20: Undefined identifier '_Millis'
> >>>> thanks again for a quick reply
> >>>> regards
> >>>> vasant
> >>>> On Dec 22, 2:24 pm, Benoit Espinola <benoitespin...@gmail.com> wrote:
> >>>>> If you post the source code we can also help you in a more effective
> >>>> way...
> >>>>> Best regards,
> >>>>> Benoit
> >>>>> On 22 déc. 2011, at 10:12, Vasant Phadke <nasik2...@gmail.com> wrote:
> >>>>>> i tried that by copying a code of millis reset given elsewhere in the
> >>>>>> group posts
> >>>>>> but it wont compile giving error
> >>>>>> i dont know why . i am using pinguino beta 9-05 or shall i use another
> >>>>>> version
> >>>>>> thanks again for a quick one
> >>>>>> vasant
> >>>>>> On Dec 22, 1:19 pm, jp mandon <jp.man...@gmail.com> wrote:
> >>>>>>> Hi
> >>>>>>> _millis is an internal variable used to count time. You can reset it
> >>>> using:
> >>>>>>> _millis=0;
> >>>>>>> I hope your son will stay awake with this !!
> >>>>>>>> i recently started working on pinguino and wanted to make a snooze
> >>>>>>>> timer for my son who wants to stay awake while studying. he should
> >>>>>>>> press a button within a specified time or else the buzzer will sound
> >>>>>>>> and awaken him
> >>>>>>>> i needed to resert the millis count for this sothat every time the
> >>>>>>>> button is pressed the cycle starts over again
> >>>>>>>> i searched and found the _millis(0) post
> >>>>>>>> i copy pasted the whole code as a trial but it wont compile giving
> >>>>>>>> error
> >>>>>>>> i am using beta 9.05 and 18F2550
> >>>>>>>> thanks in advance for helping
> >>>>>>>> vasant phadke
> >>>>>>>> --
> >>>>>>>> Vous recevez ce message, car vous êtes abonné au groupe Google
> >>>>>>>> Groupes Pinguino.
> >>>>>>>> Pour envoyer un message à ce groupe, adressez un e-mail à
> >>>>>>>> pinguinocard@googlegroups.com.
> >>>>>>>> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse
> >>>>>>>> pinguinocard+unsubscribe@googlegroups.com.
> >>>>>>>> Pour plus d'options, consultez la page de ce groupe :
> >>>>>>>>http://groups.google.com/group/pinguinocard?hl=fr
> >>>>>> --
> >>>>>> Vous recevez ce message, car vous êtes abonné au groupe Google Groupes
> >>>> Pinguino.
> >>>>>> Pour envoyer un message à ce groupe, adressez un e-mail à
> >>>> pinguinocard@googlegroups.com.
> >>>>>> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse
> >>>> pinguinocard+unsubscribe@googlegroups.com.
> >>>>>> Pour plus d'options, consultez la page de ce groupe :
> >>>>http://groups.google.com/group/pinguinocard?hl=fr
> >>>> --
> >>>> Vous recevez ce message, car vous êtes abonné au groupe Google
> >>>> Groupes Pinguino.
> >>>> Pour envoyer un message à ce groupe, adressez un e-mail à
> >>>> pinguinocard@googlegroups.com.
> >>>> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse
> >>>> pinguinocard+unsubscribe@googlegroups.com.
> >>>> Pour plus d'options, consultez la page de ce groupe :
> >>>>http://groups.google.com/group/pinguinocard?hl=fr
> >>> --
> >>> Vous recevez ce message, car vous êtes abonné au groupe Google
> >>> Groupes Pinguino.
> >>> Pour envoyer un message à ce groupe, adressez un e-mail
> >>> à pinguinocard@googlegroups.com.
> >>> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse
> >>> pinguinocard+unsubscribe@googlegroups.com.
> >>> Pour plus d'options, consultez la page de ce groupe :
> >>>http://groups.google.com/group/pinguinocard?hl=fr
> >> --
> >> Sent from my mobile device
> > --
> > Vous recevez ce message, car vous êtes abonné au groupe Google Groupes Pinguino.
> > Pour envoyer un message à ce groupe, adressez un e-mail à pinguinocard@googlegroups.com.
> > Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse pinguinocard+unsubscribe@googlegroups.com.
> > Pour plus d'options, consultez la page de ce groupe :http://groups.google.com/group/pinguinocard?hl=fr