Jump to content

BBruno

Member
  • Posts

    4
  • Joined

  • Last visited

Everything posted by BBruno

  1. @Del a idea const int BPTrigg = 2; const int BPReload = 3; int EtatTrigg, LastTrigg; int Choice, Reload, Select; unsigned long Tempo; int Fire; void setup() { pinMode(BPTrigg, INPUT); pinMode(BPReload, INPUT); } //end setup void loop() { // trigger if (digitalRead(BPTrigg)==HIGH) {EtatTrigg=1;} else {EtatTrigg=0;} if (EtatTrigg !=LastTrigg) { if (EtatTrigg==1) { Fire=1; } // sound+light..and Fire=0; LastTrigg = EtatTrigg; } // button 2 for reload and button 2 held down for a couple seconds for weapon select if (digitalRead(BPReload)==HIGH) {if (Tempo==0) {Tempo=millis(); Choice=1; } } else { if (Choice==1 && millis()<Tempo+2000) {Reload=1; Choice=0;} if (Choice==1 && millis()>Tempo+2000) {Select=1; Choice=0;} } // Reload = sound+light..and Reload=0; // Select = sound..and Select=0; } //end loop
  2. hi, the material arrived , Can you post the sound files please
  3. hi Happy New Year send command http://www.banggood.com/fr/2x3W-Mini-Digital-Power-Amplifier-Board-Class-D-Audio-Module-USB-DC-5V-p-929449.html http://www.banggood.com/fr/WTV020-SD-16P-U-Disk-Audio-Player-SD-Card-MP3-Voice-Module-p-78682.html http://www.banggood.com/fr/1_7-Inch-4Ohm-4-3W-Full-Range-Audio-Stereo-Woofer-Speaker-Loudspeaker-p-1005599.html
  4. HI, very nice work I'll throw myself too @JohnDoe2000 an example= 10 SEGMENT LED BAR GRAPH DISPLAY with 4 wires: +/- (3,3v) and clk/dio. No resistors http://www.conrad.fr/ce/fr/product/1267854/platine-dextension-pour-Linker-Kit-LK-LEDM-Barre?queryFromSuggest=true https://www.youtube.com/watch?v=PJMMoY5VFF0
×
×
  • Create New...