Crowtail- OLED
1,615,500 تومان
OLED
| وزن | 7 گرم |
|---|---|
| ابعاد | 5 × 2 × 0.2 سانتیمتر |
موجود
شناسه محصول:
ELEC0016
دسته: Crowtail, نمایشگر، تصویری، نوری
توضیحات

Crowtail- OLED is constructed from 128 x 64 dot matrix OLED module. The display offers high brightness, self-emission, high contrast ratio, slim/thin outline, wide viewing angle, wide temperature range and low power consumption.
Features
- Connection Mode:I(IIC)
- Display Color:Bule/Black
- Resolution:128×64
- Interface:I2C
- Wide range of pperating temperature: : -20°C~70°C
Part List
- 1 X Crowtail- OLED
- 1 X Crowtail 4 Pin Cable
Wiki & External links
1.Hardware connection
2.Connect the Crowtail- RGB-LED to I port
2.Connect the board to PC using USB cable.
3.Download the library OLED library;Unzip it into the libraries file of Arduino IDE by the path: ..\arduino-1.0.1\libraries.
4.Open the code directly by the path:File -> Example ->U8glib->Ele_0_96_12864.
5.Upload the Code,you shoule see the display of OLED.
#include "U8glib.h"
U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE);
void drawColorBox(void)
{
u8g_uint_t w,h;
u8g_uint_t r, g, b;
w = u8g.getWidth()/32;
h = u8g.getHeight()/8;
for( b = 0; b < 4; b++ )
for( g = 0; g < 8; g++ )
for( r = 0; r < 8; r++ )
{
u8g.setColorIndex((r<<5) | (g<<2) | b );
u8g.drawBox(g*w + b*w*8, r*h, w, h);
}
}
void drawLogo(uint8_t d)
{
u8g.setFont(u8g_font_gdr25r);
u8g.drawStr(8+d, 30+d, "E");
u8g.setFont(u8g_font_gdr25r);
u8g.drawStr(30+d,30+d,"l");
u8g.setFont(u8g_font_gdr25r);
u8g.drawStr(40+d,30+d,"e");
u8g.setFont(u8g_font_gdr25r);
u8g.drawStr(55+d,30+d,"c");
u8g.setFont(u8g_font_gdr25r);
u8g.drawStr(70+d,30+d,"r");
u8g.setFont(u8g_font_gdr25r);
u8g.drawStr(85+d,30+d,"o");
u8g.setFont(u8g_font_gdr25r);
u8g.drawStr(100+d,30+d,"w");
}
void drawURL(void)
{
u8g.setFont(u8g_font_4x6);
u8g.drawStr(35,54,"www.elecrow.com");
}
void draw(void) {
if ( u8g.getMode() == U8G_MODE_R3G3B2 ) {
drawColorBox();
}
u8g.setColorIndex(1);
if ( U8G_MODE_GET_BITS_PER_PIXEL(u8g.getMode()) > 1 ) {
drawLogo(2);
u8g.setColorIndex(2);
drawLogo(1);
u8g.setColorIndex(3);
}
drawLogo(0);
drawURL();
}
void setup(void) {
}
void loop(void) {
// picture loop
u8g.firstPage();
do {
draw();
u8g.setColorIndex(1);
} while( u8g.nextPage() );
// rebuild the picture after some delay
delay(200);
}
تجربه خریداران محصول
تجربه خریداران محصول
فقط خریداران این محصول میتوانند تجربهشان را ثبت کنند.
هنوز تجربهای ثبت نشده است
بعد از خرید این محصول، از حساب کاربری یا لینکی که برایتان پیامک میشود، میتوانید تجربهتان را با دیگران به اشتراک بگذارید.
حمل و نقل کالا
حمل و نقل کالا










نقد و بررسیها
هنوز بررسیای ثبت نشده است.