Partagez et laissez un like si vous aimez la vidéo, merci!
Vous pouvez voir l’article ici: http://wp.me/p3NDrZ-6O
Mon Twitter: @refrobot
Certifié Refrobot ©
Partagez et laissez un like si vous aimez la vidéo, merci!
Vous pouvez voir l’article ici: http://wp.me/p3NDrZ-6O
Mon Twitter: @refrobot
Certifié Refrobot ©
Voici la deuxième vidéo qui traite sur les composants du PC. Cette fois, je vous montre les composants les plus simples et communs: la souris et le clavier!
J’espère que vous aimerez.
Partagez et laissez un like si vous aimez la vidéo, merci!
Vous pouvez voir l’article ici: http://wp.me/p3NDrZ-6O
Mon Twitter: @refrobot
Certifié Refrobot ©
Pour utiliser le Light Commander de Parallax, vous avez besoin de l’adaptateur Basic Stamp 1 Serial Adapter. Vous allez avoir besoin aussi de Basic Stamp Editor (vous pouvez télécharger gratuitement sur le site de Parallax.com).
Voici un exemple de programmation:
‘{$STAMP BS1} ‘Demo Program sequences ten different led patterns ‘Press the switch to start the display sequence Init: DIRS = 248 'Set ports 3-7 to Outputs 'Ports 0-2 default to Inputs SYMBOL loops = B0 'Loop counter SYMBOL dly = B1 'Delay time WaitHere: BUTTON 0,0,0,0,B0,1,main 'Wait here for button press GOTO waithere Main: PINS = 0 'Clear then blink LED3 5 times FOR loops = 1 TO 5 HIGH 3 PAUSE 150 LOW 3 PAUSE 150 NEXT FOR loops = 1 TO 5 'Flash all LEDs PINS = 248 PAUSE 200 PINS = 0 PAUSE 500 NEXT FOR loops = 1 TO 5 'Rotate pairs PINS = 192 PAUSE 400 PINS = 96 PAUSE 400 PINS = 48 PAUSE 400 PINS = 144 PAUSE 400 NEXT FOR loops = 1 TO 5 'Rotate around center PINS = 88 PAUSE 400 PINS = 168 PAUSE 400 NEXT FOR loops = 1 TO 5 'Vertical pairs PINS = 144 PAUSE 400 PINS = 96 PAUSE 400 NEXT FOR loops = 1 TO 5 'Horizontal pairs PINS = 48 PAUSE 400 PINS = 192 PAUSE 400 NEXT FOR loops = 1 TO 5 'Rotate single right PINS = 16 PAUSE 200 PINS = 32 PAUSE 200 PINS = 64 PAUSE 200 PINS = 128 PAUSE 200 NEXT FOR loops = 1 TO 5 'Rotate single left PINS = 128 PAUSE 200 PINS = 64 PAUSE 200 PINS = 32 PAUSE 200 PINS = 16 PAUSE 200 NEXT FOR loops = 1 TO 5 'Rotate right with center PINS = 24 PAUSE 100 PINS = 40 PAUSE 100 PINS = 72 PAUSE 100 PINS = 136 PAUSE 100 NEXT FOR loops = 1 TO 5 'Rotate left with center PINS = 136 PAUSE 100 PINS = 72 PAUSE 100 PINS = 40 PAUSE 100 PINS = 24 PAUSE 100 NEXT GOTO main END
Vous pouvez me suivre sur Twitter: @refrobot
Certifié Refrobot©