- 追加された行はこの色です。
- 削除された行はこの色です。
#freeze
閲覧総計:&counter(); (本日:&counter(today); 昨日:&counter(yesterday);)
*トグルスイッチ [#w5775228]
トグルスイッチ(toggle switch)とは、スイッチを押すたびにオン(ON)、オフ(OFF)の
状態が入れ替わる動作をするスイッチの事です。
トグルスイッチ機能を実現する為の定石プログラム記法がありますので紹介します。
07/02/11
|&attachref(P1010293.JPG,zoom,150x150,button){新しい写真添付};|&attachref(,zoom,150x150,button){新しい写真添付};|
/**
* トグル スイッチ
* (スイッチを押すたびにON、OFFを切り替え)
*
* PIC16F628A 内蔵4MHz
* LED: RB3 スイッチ: RB4
* 電源:乾電池3本(4.5V)
*
* Device Flags: _BODEN_OFF _BOREN_OFF _CP_OFF _PWRTE_ON _WDT_OFF
* _LVP_OFF _MCLRE_OFF _INTRC_OSC_NOCLKOUT
* MikroC 2.1
*/
void main() {
//使用変数の定義
unsigned short int oldstate;
PORTB = 0b00000000; //PORTBの中身をきれいにする
TRISB = 0b00010000; //RB4を1:入力、他は0:出力に設定
OPTION_REG.NOT_RBPU = 0; //PORTBを内部プルアップ
//LED初期点灯状態の設定
PORTB.F3 = 1; //RB3 ON
oldstate = 0;
do {
if(Button(&PORTB, 4, 1, 1)) oldstate = 1;
if(oldstate && Button(&PORTB, 4, 1, 0)) { //RB4スイッチ状態の判別
PORTB.F3 = ~PORTB.F3; //RB3状態の反転
oldstate = 0;
}
}while(1);
}
★この情報は役に立ちましたか?
#vote(はい[3],いいえ[1])
- D7lv2l jr39ug7djalfgpitg94gbvm -- [[patrik]] &new{2008-05-22 (木) 20:22:55};
- It's funny goodluck <a href=" http://blogs.ign.com/ScottHostin/2008/05/11/89409/ "><b>cheap hotels orlando orange lake resort</b></a> 802936 -- [[Czbfrzfq]] &new{2008-05-24 (土) 17:19:53};
- Excellent work, Nice Design <a href=" http://groups.google.us/group/xxl-free-hot-sex-movies ">free live fucking on cam</a> cpc -- [[Obeqvjwh]] &new{2008-05-24 (土) 17:26:16};
- i'm fine good work <a href=" http://blogs.ign.com/ScottHostin/2008/05/11/89388/ "><b>chicago hotel last minute discount</b></a> >:( -- [[Ynwpnwiy]] &new{2008-05-24 (土) 19:34:38};
- i'm fine good work <a href=" http://blogs.ign.com/ScottHostin/2008/05/11/89388/ "><b>chicago hotel last minute discount</b></a> >:( -- [[Ynwpnwiy]] &new{2008-05-24 (土) 19:34:58};
- perfect design thanks <a href=" http://groups.google.us/group/u-free-hot-sex-movies ">fuck vans remix</a> dlyq -- [[Czbrrrzq]] &new{2008-05-24 (土) 19:43:25};
- this post is fantastic <a href=" http://groups.google.us/group/a-free-hot-sex-movies ">mothers who like to fuck</a> >:[[ -- [[Wacjwgul]] &new{2008-05-24 (土) 22:02:24};
- I love this site <a href=" http://blogs.ign.com/OsherKlarck "><b>cheap airline tickets to costa rica</b></a> 093947 -- [[Xzurawde]] &new{2008-05-25 (日) 00:07:38};
- It's serious <a href=" http://groups.google.us/group/z-free-hot-sex-movies ">pregant fucking</a> >:) -- [[Flnlmijk]] &new{2008-05-25 (日) 00:24:26};
- Excellent work, Nice Design <a href=" http://blogs.ign.com/BonyClarck/ "><b>discount airline tickets airlines</b></a> jxy -- [[Nutcnxnc]] &new{2008-05-25 (日) 02:18:23};
- Jonny was here <a href=" http://groups.google.us/group/l-free-hot-sex-movies ">fuckpic</a> 8(( -- [[Xvqajylk]] &new{2008-05-25 (日) 04:24:36};
- This site is crazy :) <a href=" http://groups.google.us/group/d-free-hot-sex-movies ">fathers butt fucking there daughters</a> 0475 -- [[Wkfbbjkr]] &new{2008-05-25 (日) 04:51:07};
- Thanks funny site <a href=" http://groups.google.us/group/w-free-hot-sex-movies ">havana ginger getting fucked</a> 7914 -- [[Fuddzehj]] &new{2008-05-25 (日) 06:27:05};
- this is be cool 8) <a href=" http://groups.google.us/group/f-free-hot-sex-movies ">hardcore pissing fising fucking porno</a> oio -- [[Olegleyw]] &new{2008-05-25 (日) 06:58:57};
- Best Site Good Work <a href=" http://groups.google.us/group/ww-free-hot-sex-movies ">black milfs fucking</a> huk -- [[Rujrzebh]] &new{2008-05-25 (日) 08:25:25};
- It's serious <a href=" http://groups.google.us/group/r-free-hot-sex-movies ">girl fucking horse</a> %-[[ -- [[Intdxijo]] &new{2008-05-25 (日) 09:07:43};
- magic story very thanks <a href=" http://groups.google.us/group/c-free-hot-sex-movies ">horse fucking fat girls</a> pfvf -- [[Bakehrpr]] &new{2008-05-25 (日) 11:19:37};
- very best job <a href=" http://groups.google.us/group/s-free-hot-sex-movies ">my daughters fucking a nigger</a> hog -- [[Gbildzuv]] &new{2008-05-25 (日) 12:30:35};
- real beauty page <a href=" http://groups.google.us/group/v-free-hot-sex-movies ">daddy fucks me</a> lpchkj -- [[Xaqqneej]] &new{2008-05-25 (日) 13:27:38};
- perfect design thanks <a href=" http://groups.google.us/group/x-free-hot-sex-movies ">wwwfuck granny</a> lcpbsw -- [[Elphfckd]] &new{2008-05-25 (日) 14:35:01};
- It's serious <a href=" http://groups.google.us/group/t-free-hot-sex-movies ">girls who fuck guys</a> 63482 -- [[Hjqxmasz]] &new{2008-05-25 (日) 15:39:01};
- real beauty page <a href=" http://groups.google.us/group/xx-free-hot-sex-movies ">somebody to fuck</a> bcwar -- [[Fszogplm]] &new{2008-05-25 (日) 16:43:06};
- I love this site <a href=" http://groups.google.us/group/g-free-hot-sex-movies ">fuckmywife</a> =-]] -- [[Wjkhrerg]] &new{2008-05-25 (日) 17:54:56};
- It's funny goodluck <a href=" http://groups.google.us/group/xl-free-hot-sex-movies ">party fucking elders</a> vrqc -- [[Mvcjucij]] &new{2008-05-25 (日) 18:54:31};
- i'm fine good work <a href=" http://groups.google.us/group/j-free-hot-sex-movies ">fucktube</a> xtia -- [[Rbgxebej]] &new{2008-05-25 (日) 20:08:54};
- Best Site Good Work <a href=" http://www.gamesforum.ca/showthread.php?t=298398 ">sweet sixteen party</a> dgqxuv -- [[Zvuaefkj]] &new{2008-05-25 (日) 21:02:53};
- Cool site goodluck :) <a href=" http://www.gamesforum.ca/showthread.php?t=298418 ">puertorican porn</a> 6512 -- [[Vsxufgyd]] &new{2008-05-25 (日) 22:25:53};
- perfect design thanks <a href=" http://www.gamesforum.ca/showthread.php?t=298410 ">preteenporn</a> 7980 -- [[Esotihxx]] &new{2008-05-25 (日) 23:15:24};
- Wonderfull great site <a href=" http://www.gamesforum.ca/showthread.php?t=298422 ">forced rape porn</a> dmsj -- [[Kdpcpbtu]] &new{2008-05-26 (月) 00:47:14};
- It's funny goodluck <a href=" http://www.gamesforum.ca/showthread.php?t=298411 ">free adult anal porn movies</a> 168 -- [[Jbhwxnoi]] &new{2008-05-26 (月) 01:31:15};
- Wonderfull great site <a href=" http://www.gamesforum.ca/showthread.php?t=298423 ">3d porn galleries</a> bro -- [[Mrkvafyi]] &new{2008-05-26 (月) 03:01:31};
- It's serious <a href=" http://www.gamesforum.ca/showthread.php?t=298425 ">fun free toon porn games</a> 7602 -- [[Zrglxpig]] &new{2008-05-26 (月) 05:13:50};
- good material thanks <a href=" http://www.gamesforum.ca/showthread.php?t=298413 ">ghettopornstarz</a> 15556 -- [[Dmbzvkaa]] &new{2008-05-26 (月) 05:49:54};
- good material thanks <a href=" http://www.gamesforum.ca/showthread.php?t=298426 ">ree porn . com</a> tkjz -- [[Lurfejgs]] &new{2008-05-26 (月) 07:24:23};
- Best Site Good Work <a href=" http://www.sitepoint.com/forums/showpost.php?p=3830335&postcount=2 ">saint louis airline tickets</a> >:) -- [[Hofvpmho]] &new{2008-05-26 (月) 07:52:06};
- Best Site Good Work <a href=" http://www.gamesforum.ca/showthread.php?t=298427 ">alyssa west pornstar</a> 8]] -- [[Owxqczox]] &new{2008-05-26 (月) 09:36:32};
- I love this site <a href=" http://physicsmathforums.com/showpost.php?p=9837&postcount=3 ">american airline ticket</a> enxzh -- [[Xpuydjlp]] &new{2008-05-26 (月) 09:58:56};
- Jonny was here <a href=" http://groups.google.us/group/e-sexyvideosclips ">wet pussy get spanked</a> jiyew -- [[Rkfofynu]] &new{2008-05-26 (月) 11:54:49};
- Wonderfull great site <a href=" http://www.photomalaysia.com/forums/showpost.php?p=628775 ">last minute plane tickets</a> czyng -- [[Yfcvlmpg]] &new{2008-05-26 (月) 12:12:50};
- It's serious <a href=" http://groups.google.us/group/d-sexyvideosclips ">britney spears pussy shot</a> 5131 -- [[Yvrtyafj]] &new{2008-05-26 (月) 14:15:30};
- very best job <a href=" http://groups.google.us/group/sexyvideosclips ">hairless pussy</a> :]]] -- [[Fmaynkie]] &new{2008-05-26 (月) 14:30:11};
- Gloomy tales <a href=" http://groups.google.us/group/l-sexyvideosclips ">dick and pussya</a> 3388 -- [[Vwadgafg]] &new{2008-05-26 (月) 16:48:07};
- i'm fine good work <a href=" http://groups.google.us/group/r-sexyvideosclips ">kari wuhrer pussy</a> 45383 -- [[Qolwhmnw]] &new{2008-05-26 (月) 18:57:47};
- It's serious <a href=" http://groups.google.us/group/q-sexyvideosclips ">teen tapanga pussy</a> bcq -- [[Qkaqkwjx]] &new{2008-05-26 (月) 18:59:27};
- I love this site <a href=" http://groups.google.us/group/a-sexyvideosclips ">members of the pussycat dolls</a> 706 -- [[Skbitixy]] &new{2008-05-26 (月) 21:07:13};
- I love this site <a href=" http://groups.google.us/group/f-sexyvideosclips ">old wet pussy</a> frt -- [[Hcmbfbbs]] &new{2008-05-26 (月) 21:10:03};
- Cool site goodluck :) <a href=" http://groups.google.us/group/z-sexyvideosclips ">cockinpussy</a> 064432 -- [[Vsgwfyvi]] &new{2008-05-26 (月) 23:19:45};
- Very Good Site <a href=" http://groups.google.us/group/v-sexyvideosclips ">fan tail pussy willows</a> %OOO -- [[Dobwfawn]] &new{2008-05-26 (月) 23:26:44};
- Best Site good looking <a href=" http://groups.google.us/group/w-sexyvideosclips ">yong teen pussy</a> 26403 -- [[Wpbzqoot]] &new{2008-05-27 (火) 01:29:31};
- Excellent work, Nice Design <a href=" http://groups.google.us/group/s-sexyvideosclips ">pussy closeup hi-res</a> hwdeum -- [[Euyopvon]] &new{2008-05-27 (火) 03:33:45};
- Very funny pictures <a href=" http://groups.google.us/group/g-sexyvideosclips ">free hairy pussy</a> lrfug -- [[Vnglkeft]] &new{2008-05-27 (火) 03:46:54};
- Punk not dead <a href=" http://groups.google.us/group/x-sexyvideosclips ">teen lasbien pussys</a> qbnk -- [[Fyxossjk]] &new{2008-05-27 (火) 05:35:19};
- Very interesting tale <a href=" http://groups.google.us/group/b-sexyvideosclips ">free pumped pussy vids</a> %[ -- [[Vipqmeqq]] &new{2008-05-27 (火) 05:55:37};
- Very interesting tale <a href=" http://groups.google.us/group/b-sexyvideosclips ">free pumped pussy vids</a> %[ -- [[Vipqmeqq]] &new{2008-05-27 (火) 05:55:48};
- nice site thx man <a href=" http://groups.google.us/group/xxpasses ">bigassxxx</a> -- [[xxx]] &new{2008-05-27 (火) 06:37:50};
- great work sweet site thx <a href=" http://groups.google.us/group/amateurxx ">free xxx videos free xxx</a> -- [[adult xxx]] &new{2008-05-27 (火) 06:38:49};
- interesting post thanks see you <a href=" http://groups.google.us/group/xxpics ">free xxx sex games</a> -- [[xxx hardcore]] &new{2008-05-27 (火) 06:47:09};
- I love this site <a href=" http://www.pctools.com/forum/member.php?u=49139 ">airline tickets airlines</a> eaemka -- [[Iektaavr]] &new{2008-05-27 (火) 07:31:43};
- i'm fine good work <a href=" http://groups.google.us/group/j-sexyvideosclips ">fatpussy</a> %OO -- [[Jquhnitn]] &new{2008-05-27 (火) 08:01:28};
- magic story very thanks <a href=" http://www.thejapanesepage.com/files/hotvideos.html ">teenage scat sex</a> 089648 -- [[Vvhyuftk]] &new{2008-05-27 (火) 09:36:10};
- This site is crazy :) <a href=" http://groups.google.us/group/xl-sexyvideosclips ">oldpussy</a> =]]] -- [[Dpkbychl]] &new{2008-05-27 (火) 10:10:20};
- <a href=" http://www.thejapanesepage.com/files/hotvideo.html ">teenagers of the 1960's</a> ttve -- [[Gxdwsfzt]] &new{2008-05-27 (火) 11:47:34};
- Excellent work, Nice Design <a href=" http://www.thejapanesepage.com/files/groupsvideo.html ">teens in tights</a> >:D -- [[Vfvtlqmd]] &new{2008-05-27 (火) 13:55:09};
- very best job <a href=" http://www.thejapanesepage.com/files/googlevideo.html ">teens with nice ass</a> 55961 -- [[Iozzabgu]] &new{2008-05-27 (火) 16:02:16};
- good work bookmark you <a href=" http://groups.google.us/group/xxtit ">free harry potter xxx</a> -- [[xxx video ]] &new{2008-05-27 (火) 17:22:40};
- cool girls see :) <a href=" http://groups.google.us/group/xxcams ">black xxx movies</a> -- [[xxx mag]] &new{2008-05-27 (火) 17:22:56};
- best links see dude )) <a href=" http://groups.google.us/group/xxmp4 ">xxx you tube</a> -- [[xxx porn ]] &new{2008-05-27 (火) 17:25:49};
- It's serious <a href=" http://www.thejapanesepage.com/node/1900 ">airline airline cheap ticket ticket travel</a> >:]] -- [[Gsyjffte]] &new{2008-05-27 (火) 18:07:47};
- nice site thx ) <a href=" http://groups.google.us/group/xxmpegs ">natasha lester xxx</a> -- [[xxx blowjobs]] &new{2008-05-28 (水) 00:36:18};
- cool post dude 10x <a href=" http://groups.google.us/group/xxfreex ">naruto hentai xxx</a> -- [[xxx young girls]] &new{2008-05-28 (水) 00:36:19};
- awesome site see my <a href=" http://groups.google.us/group/xxdream ">xxxx video</a> -- [[babes ]] &new{2008-05-28 (水) 00:39:58};
- Very funny pictures <a href=" http://groups.google.us/group/Free-Tits-Clips ">small petite teens</a> 197286 -- [[Twecyooq]] &new{2008-05-28 (水) 05:59:05};
- good site great work <a href=" http://groups.google.us/group/xxtoon ">xxxanime</a> -- [[xxx mpg]] &new{2008-05-28 (水) 07:16:26};
- sweet site man thx <a href=" http://groups.google.us/group/xxjapan ">xxx video preview</a> -- [[teanage xxx]] &new{2008-05-28 (水) 07:18:37};
- cool girls dudes )) <a href=" http://groups.google.us/group/xxfoto ">xxx pictures of star</a> -- [[sir rodney]] &new{2008-05-28 (水) 07:24:49};
- Hello good day <a href=" http://groups.google.us/group/Free-Tits-Gallerys ">famous british tits</a> xdil -- [[Asacknxf]] &new{2008-05-28 (水) 07:59:30};
- Hello good day <a href=" http://groups.google.us/group/Free-Tits-Gallerys ">famous british tits</a> xdil -- [[Asacknxf]] &new{2008-05-28 (水) 08:00:05};
- Gloomy tales <a href=" http://groups.google.us/group/Big-Tits-Thumbs ">nasty tits</a> glk -- [[Omaaaidc]] &new{2008-05-28 (水) 10:01:26};
- Very funny pictures <a href=" http://groups.google.us/group/Nice-Tits-Photo ">fuck tits</a> 80179 -- [[Bjknzcyy]] &new{2008-05-28 (水) 12:09:24};
- i'm fine good work <a href=" http://groups.google.us/group/Tits-Video ">samanthas tits</a> >:( -- [[Ipxvmrad]] &new{2008-05-28 (水) 13:04:43};
- wow great site thanks <a href=" http://groups.google.us/group/xxtaboo ">babes xxx</a> -- [[latina xxx]] &new{2008-05-28 (水) 17:17:57};
- great work good site 10x <a href=" http://groups.google.us/group/xxceleb ">black rods xxx</a> -- [[lolita comics ]] &new{2008-05-28 (水) 17:20:02};
- gdfg gdfgs gdfsg gdsfg gdsfg <a href=" http://groups.google.us/group/xxbest ">sex xxx pictures</a> -- [[toons xxx]] &new{2008-05-28 (水) 23:34:13};
- gdfg gdsfgsd g dsfg gfsdfg <a href=" http://groups.google.us/group/xxclip ">free gay xxx muscle bear videos clips</a> -- [[xxx clips ]] &new{2008-05-28 (水) 23:51:30};
- cool site thanks <a href=" http://groups.google.us/group/zpornotube ">pornotube clones</a> -- [[pornotube]] &new{2008-05-29 (木) 07:14:39};
- interesting site dude 10x <a href=" http://groups.google.us/group/zredtube ">better than redtube</a> -- [[redtube]] &new{2008-05-29 (木) 07:17:00};
- wow sweet site :) <a href=" http://groups.google.us/group/zpornhub ">pornhub tv</a> -- [[pornhub]] &new{2008-05-29 (木) 07:57:22};
#comment