M5Stack® Encoder Module for M5Stack FACES ESP32 Pocket Computer with 12pcs RGB LED MEGA328 Inside I2C for Arduino

Eachine1
sku: 1538395
ACCORDING TO OUR RECORDS THIS PRODUCT IS NOT AVAILABLE NOW
$9.99
Shipping from: China
Description
Description: ENCODER is compatible with FACE Kit. You can have it replace the keycoard panel inside the FACE kit. It is designed for rotary encoder control, integrated Mega328 microprocessor inside and LEDs around the encoder. The series communication protocol between M5 core and ENCODER is IIC (adress: 0x5E) Product Features: 12 RGB Led IIC communication Simple API for programming Mega328 inside Encoder detection Product Size: 58.2mm x 54.2mm x 10mm Product weight: 17g EasyLoader click to download EasyLoader 2.After downloading the software, double-click to run the application, connect the M5 device to the computer via the data cable, select the port parameters, and click "Burn" to start burning. 3.The CP210X (USB driver) needs to be installed before the EasyLoader is burned. Click here to view the driver installation tutorial Function: Control single RGB /* Parameter: led_index: 0 ~ 11 r, g, b: 0 ~ 254 */ void Led(int led_index, int r, int g, int b){ // IIC send data Wire.beginTransmission(Faces_Encoder_I2C_ADDR); Wire.write(led_index); Wire.write(r); Wire.write(g); Wire.write(b); Wire.endTransmission(); }Copy to clipboardErrorCopied Read encoder increment void get_encoder_increment(void){ int temp_encoder_increment; // IIC read data Wire.requestFrom(Faces_Encoder_I2C_ADDR, 3); if(Wire.available()){ temp_encoder_increment = Wire.read();// get increment button_state = Wire.read();// get button value } if(temp_encoder_increment > 127){//anti-clockwise direction = 1;// flag for encoder direction encoder_increment = 256 - temp_encoder_increment; } else{// clockwise direction = 0; encoder_increment = temp_encoder_increment; } }Copy to clipboardErrorCopied Package Included: 1x M5Stack ENCODER Module Encoder turnpanel Related Link: Offical Video Forum The Firmware of inside MEGA328 Example: for Arduino IDE If you want the complete code faces_encoder.ino, please click here. /* * faces_encoder.ino */ #include #define Faces_Encoder_I2C_ADDR 0X5E // declaration int encoder_increment;//positive: clockwise nagtive: anti-clockwise uint16_t encoder_value=0; int button_state; uint8_t direction;//0: clockwise 1: anti-clockwise int temp_encoder_increment; // initialization M5.begin(); Wire.begin(); // get data from ENCONDER Wire.requestFrom(Faces_Encoder_I2C_ADDR, 3); if(Wire.available()){ temp_encoder_increment = Wire.read();// the first byte: increment button_state = Wire.read();// the second byte: button value } // IIC send data, 4bytes Wire.beginTransmission(Faces_Encoder_I2C_ADDR); Wire.write(led_index); Wire.write(r); Wire.write(g); Wire.write(b); Wire.endTransmission();Copy to clipboardErrorCopied
Price history chart & currency exchange rate
Customers also viewed

$1.91
For Kawasaki EX500R GPZ500S 1990-2009 Handle Bar End EX 500R GPZ 500S 2008 2007 06 Motorcycle Handlebar Grips Plugs Caps Slider
aliexpress.com
$1.99
1Pcs Nail Polish Pen Silver Chrome Varnish Metallic Painting Gel Graffiti Wave Drawing Pen Stripe Lines Brush For Manicure NT703
aliexpress.com
$0.98
New Horse in Fog Heart Necklace Running Horse Heart Pendant Flying Horse Jewelry Silver Heart Shaped Necklaces HZ3
aliexpress.com
$10.47
X2 BLACK PEARL Competitive Yo-Yo,Yoyo for Beginners Alloy Yoyo,Easy to Return and Practise Tricks
aliexpress.com
$5.03
2022 Fashion New Spring and Autumn Women's V-neck Pullover Shirt Female Imitation Silk Jacquard Long-sleeved Top
aliexpress.com
$8.07
Футболка мужская Вышел за хлебом (I went to buy bread) (9223-1462-4) Черная, Футболка мужская Вышел за хлебом (I went to buy bread) (9223-1462-4) XL Черная
rozetka.com.ua
$2.99
Black Brown Synthetic Pad Hair Pieces Clip In One Piece Extensions Pads 10 20 30Cm Straight Increase Hair Volume For Thin Hair
aliexpress.com
$108.36
New Coming Avaloura 12v DC 80ml capacity portable car espresso coffee maker machine
aliexpress.com
$18.69
Funda for Xiaomi Pad 5 Pro 2021 Mipad 5 Mi Pad 5 Tablet Keyboard Spanish Russian Portuguese Hebrew Korean Keyboard Mouse Teclado
aliexpress.com
$18.61
mens streetwear fashion diy clothing mens autumn winter trendy dragon printed hoodies breathable loose solid color sweatshirts
dhgate.com
$336.88
brazilian virgin human hair full density 360 lace frontal wig curly pre plucked 13x4 lace front wigs black women with baby hairs, Black;brown
dhgate.com
$3.41
dustproof er pm2.5 anti-l mouth designer mask face washable reusable ice silk co h7zu xxg9
dhgate.com
$102.98
m30245 limited belt outdoor packs bag womens waist m30251 fannypack men waistpack fashion outdoor waistpacks bag street fanny bumbag ed oucx, Red;black
dhgate.com
$18.52
2021 new women autumn ribbed button sweaters navel bare sweaters cardigan long sleeve v neck floral lace trim mujer sweater, White;black
dhgate.com
$40.42
day sac dumpling handbag clip purse pleated shoulder underarm pouch cloud women chains bags bag baguette bag totes women clutch snuxw, Red;black
dhgate.com
$3.36
lnpbd solid color women beach retro vintage wool felt bowler floral fedora hat autumn winter bucket caps for woman, Blue;gray
dhgate.com
$89.86
wostu earrings for women 100% 925 sterling silver green and rose gold surface stud earrings orecchini fashion jewelry11, Golden;silver
dhgate.com
















