1 / 5
WS2812B 7 segment display — zdjęcie 1
1 / 5

WS2812B 7 segment display

Zamów wydruk tego modelu

Obliczymy ostateczną cenę na podstawie wybranego pliku. Sprawdzisz ją i zaakceptujesz przed płatnością.

Zapisane na tym urządzeniu.

7-Segment frame and transparant segments. Size 27 x 47 mm. WS2812B LED display behind the segments needs only one…

Ocena
0 / 5
Polubienia
12
Pobrania
115
Wydruki
0
Wyświetlenia
1586
Oceny
0

Aktualizacja u źródła:

Informacje o modelu

Źródło
Printables
Kategoria
Electronics
Licencja
Creative Commons — Attribution — Share Alike

7-Segment frame and transparant segments. Size 27 x 47 mm. WS2812B LED display behind the segments needs only one control wire for 28 segments.

Arduino : Segment arranged a-g clockwise. Adafruit library.

byte tab[]={0x3f,0x06,0b1011011,0b1001111,0b1100110,0b1101101,0b1111101,0x07,0x7f,0b1101111}; //shapes

void num( byte n, byte p, unsigned long c) { // digit n, position p, color c

byte m=1; n= tab[n];

for(byte i=0; i<7; i++)

{

//c=random(0xffff);  //random color of each segment

//if (n&m) strip.SetPixelColor(i+p * 7,c); else strip.setPixelColor(i+p * 7, 0);

if (n&m) strip.SetPixelColor(i+p*7,c); else strip.setPixelColor(i+p*7, 0);

m=m*2; } }

//Asterisks are not always shown in some editors. If you see p 7, it should be

p-asterisk-7 ( p*7, multiplication). When you copy-paste, please check and correct this.

//For random segment colors, uncomment random instruction.

This thing was made with Tinkercad. Edit it online https://www.tinkercad.com/things/f5bTvmHpG3q

Print Settings

Printer Brand:

Prusa

Printer: 

I3 MK3S

Rafts:

No

Supports: 

Yes

Resolution:

0.2

Infill: 

20%

Filament: any PLA, ABS & PETG

  •  

 

 

 

Category: Electronics

Tagi