Annex in Classroom

If doesn't fit into any other category ....
tcpipchip
Posts: 76
Joined: Fri Apr 02, 2021 12:48 am
Been thanked: 59 times

Re: Annex in Classroom

Post by tcpipchip »

Hello Cicciocb

Yes, portuguese is latin origin!

I am very very happy that you and the forum team love it!

Yes, the subtitles helps too!

The next movie will be about IFTTT and ESP-NOW and more to come :)

yes, annex is one of best interpreted option that i seen to embedded world!
User avatar
cicciocb
Site Admin
Posts: 1899
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 407 times
Been thanked: 1269 times
Contact:

Re: Annex in Classroom

Post by cicciocb »

I'll try to follow all your modules and give you my feedback.

I have also some questions for you ...

Thanks again.

cicciocb
tcpipchip
Posts: 76
Joined: Fri Apr 02, 2021 12:48 am
Been thanked: 59 times

Re: Annex in Classroom

Post by tcpipchip »

tcpipchip
Posts: 76
Joined: Fri Apr 02, 2021 12:48 am
Been thanked: 59 times

Re: Annex in Classroom

Post by tcpipchip »

tcpipchip
Posts: 76
Joined: Fri Apr 02, 2021 12:48 am
Been thanked: 59 times

Re: Annex in Classroom

Post by tcpipchip »

tcpipchip
Posts: 76
Joined: Fri Apr 02, 2021 12:48 am
Been thanked: 59 times

Re: Annex in Classroom

Post by tcpipchip »

tcpipchip
Posts: 76
Joined: Fri Apr 02, 2021 12:48 am
Been thanked: 59 times

Re: Annex in Classroom

Post by tcpipchip »

tcpipchip
Posts: 76
Joined: Fri Apr 02, 2021 12:48 am
Been thanked: 59 times

Re: Annex in Classroom

Post by tcpipchip »

tcpipchip
Posts: 76
Joined: Fri Apr 02, 2021 12:48 am
Been thanked: 59 times

Re: Annex in Classroom

Post by tcpipchip »

Microwave Project

CSS
https://furb-my.sharepoint.com/:u:/g/pe ... Q?e=EhtBkx

Code: [Local Link Removed for Guests]

cls

PIN.MODE 2, OUTPUT
PIN(2) = 1

HTML "<html><head><link href='style.css' rel='stylesheet'></head><body>"
html "<main><section id='section1'><div></div><main></main></section><section id='section2'><header>"
tempoform$="00:00"
tempo$ = "0000"
html "<label id='label1'>"+ tempoform$ + "</label>"
html "</header><main>"

HTML BUTTON$("PIPOCA", pipoca)
HTML BUTTON$("BATATA", batata)
HTML BUTTON$("LIMPAR", limpar)


HTML BUTTON$("1", botao1)
HTML BUTTON$("2", botao2)
HTML BUTTON$("3", botao3)
HTML BUTTON$("4", botao4)
HTML BUTTON$("5", botao5)
HTML BUTTON$("6", botao6)
HTML BUTTON$("7", botao7)
HTML BUTTON$("8", botao8)
HTML BUTTON$("9", botao9)
HTML BUTTON$("PARAR", botaoParar)
HTML BUTTON$("0", botao0)
HTML BUTTON$("INICIAR", botaoIniciar)

html "</main></section>"
html "</main></body></html>"
wait


pipoca:
tempo$ = "0300"
gosub atualizarTempo
Return

batata:
tempo$ = "0500"
gosub atualizarTempo
Return

limpar:
tempo$ = "0000"
timerstopped = 1
gosub atualizarTempo
Return


botao1:
novo$ = tempo$ + "1"
tempo$= RIGHT$(novo$, 4)
gosub atualizarTempo
Return

botao2:
novo$ = tempo$ + "2"
tempo$= RIGHT$(novo$, 4)
gosub atualizarTempo
Return

botao3:
novo$ = tempo$ + "3"
tempo$= RIGHT$(novo$, 4)
gosub atualizarTempo
Return

botao4:
novo$ = tempo$ + "4"
tempo$= RIGHT$(novo$, 4)
gosub atualizarTempo
Return

botao5:
novo$ = tempo$ + "5"
tempo$= RIGHT$(novo$, 4)
gosub atualizarTempo
Return

botao6:
novo$ = tempo$ + "6"
tempo$= RIGHT$(novo$, 4)
gosub atualizarTempo
Return

botao7:
novo$ = tempo$ + "7"
tempo$= RIGHT$(novo$, 4)
gosub atualizarTempo
Return

botao8:
novo$ = tempo$ + "8"
tempo$= RIGHT$(novo$, 4)
gosub atualizarTempo
Return

botao9:
novo$ = tempo$ + "9"
tempo$= RIGHT$(novo$, 4)
gosub atualizarTempo
Return

botaoParar:
timerstopped = 1
Return

botao0:
novo$ = tempo$ + "0"
tempo$= RIGHT$(novo$, 4)
gosub atualizarTempo
Return

botaoIniciar:
CSS CSSID$("section1 main", "background-color: #efa;")
timerstopped = 0
timer = val(tempo$)
timer0 1000, mytimer
Return

mytimer:
if timerstopped = 1
PIN(2) = 1
CSS CSSID$("section1 main", "background-color: #eff;")
return
endif

if(timer = 0)
PIN(2) = 1
CSS CSSID$("section1 main", "background-color: #eff;")
return
endif

PIN(2) = 0

IF TIMER = 100 THEN
TIMER = 60
END IF

timer = timer - 1
novo$ = "0000" + STR$(timer)
tempo$= RIGHT$(novo$, 4)

esquerda$ = LEFT$(tempo$, 2)
direita$ = RIGHT$(tempo$, 2)

if esquerda$ <> "00" and direita$ = "99" then
timer = timer - 40
tempo$ = esquerda$ + "59"
end if
gosub atualizarTempo

if esquerda$ = "01" and direita$ = "00" then
timer = 60
tempo$ = "0059"
end if
return

atualizarTempo:
esquerda$ = LEFT$(tempo$, 2)
direita$ = RIGHT$(tempo$, 2)
texto$ = esquerda$ + ":"+ direita$
jscall |_$('label1').innerHTML = "| + texto$ + |"|
return

end
Post Reply