Postagens

Mostrando postagens de 2024

micro:bit - BOTÕES

Imagem
micro:bit - Botões   https://www.tinkercad.com/things/7VFzJnW1QYk-microbit-botoes https://makecode.microbit.org/S50681-54581-75401-82207
Imagem
555 - 2 Botões
Imagem
 RING 12 LEDS CÓDIGO: #include <Adafruit_NeoPixel.h> #define PIN 6 #define NUMPIXELS 12 Adafruit_NeoPixel pixels = Adafruit_NeoPixel(   NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); int d = 100; void setup() {   pixels.begin();   pixels.show(); } void loop() {   for(int i=0; i<NUMPIXELS;i++) {       pixels.setPixelColor(i,pixels.Color(200,0,0));       pixels.show();       delay(d);   }   for(int i=0; i<NUMPIXELS;i++) {         pixels.setPixelColor(i,pixels.Color(0,0,200));         pixels.show();         delay(d);   } }
Imagem
  Alternando Sentido de Rotação com  L293d

Contador HTML/JavaScript

Imagem
 
Imagem
  Movendo HTML com Botões CÓDIGO HTML <! DOCTYPE html > < html lang = "en" > < head >     < meta charset = "UTF-8" >     < meta name = "viewport" content = "width=device-width, initial-scale=1.0" >     < title > Document </ title > </ head > < style >     input:hover {         background-color : rgb ( 152 , 231 , 152 );     }     </ style > < body style = " background-color: grey;" >             < div style = " width:680px; height:30 px;margin-top:25px;  text-align: center;" >         < input type = "button" id = "Acima"     value = "Acima"     style = " width:70px; height:20 px; text-align:center;" >< br />         < input type = "button" id = "Direita"   value = "Direita"   style = " width:70px...