b2CXqg

Color silk screen|arduino uno cute style development board

 
Overview

**Always ask for actual pictures, a solid color one first, and color ones later. ARDUINO UNO small fresh board. **

![IMG_20221003_102241.jpg]
![IMG_20221003_102641.jpg] Try to make the picture occupy a larger area, and connect three WS2812 lanterns and one RGB lantern and an onboard pin 2 external interrupt touch panel and pin 2 Pin indicator light. Try to keep the style simple and cute, you can give it to friends and use it for decoration.
Test code:

```
#include
#define DATA_PIN 4 //Set the pin
#define LED_TYPE WS2812 //Lamp strip type
#define NUM_LEDS 3 //Number of lamp beads 
#define COLOR_ORDER GRB //Lamp bead order
# define BRIGHTNESS 128
uint8_t max_brightness = 128; //Maximum brightness
int i = 0;
CRGB leds[NUM_LEDS]; //Name the light strip
void setup() {
  // put your setup code here, to run once:
  FastLED.addLeds< LED_TYPE, DATA_PIN, COLOR_ORDER>(leds, NUM_LEDS); //Initialize the light strip
  FastLED.setBrightness(max_brightness); //Set the brightness of the light strip
  pinMode(2, INPUT);
}

void loop() {
  // put your main code here , to run repeatedly:
  Serial.println(digitalRead(2));
  if (digitalRead(2))
  {
    if(i>9)i=0;
    i++;
    leds[0] = CRGB(i, 0, 10 - i) ;
    leds[1] = CRGB(10 - i, i, 0);
    leds[2] = CRGB(0, 10 - i, i);
    FastLED.show();
    delay(10);
  }
}
```
参考设计图片
×
Design Files
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-08-04 01:20:41

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号