Jump to content
ELFORUM - Forumul electronistilor

Modificare lampa bicicleta spate de la pic 10f200 la 12f629

Recommended Posts

Nu-i nici o rusine sa nu stii ceva. Ai cerut, ti s-a oferit tot ajutorul... Ramanea sa citesti cu atentie mesajele celor care-l ofera. Nu-i nevoie sa fii neamt, ba chiar te-ar incurca, ca mesajele sunte scrise in romana.

E chiar asa complicat sa citesti ca Bandi a lucrat cu MikroC si sa te prinzi ca n-are cum sa functioneze (direct, fara modificari) in "MPLAB IDE" (de fapt xc8)?



Edited by Liviu M
Link to post
Share on other sites

Descarci de aici MikroC (varianta free are limita de 2k, suficient pt proiectul acesta) https://www.mikroe.com/mikroc-pic


Deschizi proiectul iar in partea de sus sunt niste definiri de delay (DELAY_F1,DELAY_F2,DELAY_F3, etc...) acelea sunt timpii de "off", iar fiecare joc in functia lui (func_1,func_2,func_3, etc..) are definit timpii de "on"


De exemplu jocul 5 zice asa : "All LEDs strobe mode 40mS on / 600mS off", deci in func_5 vei gasii un delay de 40ms iar sus in define la DELAY_F5 o sa gasesti 600. Le ajustezi cum doresti ii dai compliare si gata treaba. Codul nu este nici cum complicat sau sofisticat de acea am zis ca timpii sunt corecti conform descrierii din proiectul (http://picprojects.org.uk/projects/bikelight/index.htm) sunt pur si simplu niste "delay_ms(40)", nu are ce sa nu fie ok.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.Terms of Use si Guidelines