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

$71.70
Багажник LUX Классик 1,2 аэро-классик ВАЗ (LADA) Kalina (2013 - н.в.) ВАЗ II Унив. 5 дв., Алюминий, Классик 1,2 аэро-классик
goods.ru
$487.76
В наличии 10 лет, Антивибрационная литиевая батарея 12 В, батарея для прицепа 12 В, 100 Ач, батарея для автофургона lifepo4
aliexpress.ru
$11.33
caps & hats decorative 1 set universal warm baby beanie hat gloves delicate pom cap keep warmth for unisex, Yellow
dhgate.com
$304.20
КВт, 10 л.с., 3 фазы, 30 А, преобразователь частоты высшего качества для управления скоростью электродвигателя шпинделя
aliexpress.ru
$80.85
Krazing Pot Cow Split Leather Round Toe Riding Boots Med Heels Platform Solid Thick Bottom Street Wear Zipper Thigh High Boots
aliexpress.com
$126.41
Parka Women's Winter Faux Fur Coat Women's Mid-Length Fox Fur Collar Rex Rabbit Fur Liner Detachable
aliexpress.com
$4.48
Warning Pirates Only No Trespassing Textured Decor Metal Tin Sign Wall Decor Metal Painting Poster Metal Plaque Wall Decor
aliexpress.com
$1,332.69
В коробке для Siemens 6AV6640-0CA11-0AX0 HMI Сенсорный экран 6AV6 640-0CA11-0AX0
aliexpress.ru
$3.56
Водонепроницаемый чехол на молнии для мужчин и женщин, Карманный Кошелек для монет, денег, трусиков, маленькая косметическая сумка для хранения
aliexpress.ru
$72.89
Frp Неокрашенный Автомобильный задний спойлер для багажника, крыло для Bmw 12 3 4 5 6 серии X6 F52 F22 E92 E90 E93 F32 F16 E71 F10 F06 F30 E71 G30
aliexpress.ru
$14.39
classic designer bangle 4mm screwdriver bracelet european and american fashion love bracelet for women 316l stainless steel je1331851, Black
dhgate.com
$114.91
luxury champagne christening gowns for baby girls jewel neck lace appliqued baptism dresses first communication dress with bonnet284v, White
dhgate.com
$57.52
knitwear mens long sleeve round neck bottom shirt polyester solid color men039s black and white2337549, White;black
dhgate.com
$3.75
10pcs Card Holder Sublimation Blanks Golf Bag Tag with 3 Wooden Tees for Father's Day Gift Size 12.2*8.2cm, Black
dhgate.com
$43.98
2023 designer new marmont womens luxurys bags real leather handbags chain cosmetic messenger shopping shoulder womens totes bags
dhgate.com$52.10
2022ss spring and summer new sweatshirts hoodies shirt high grade cotton men's size s-3xl 302, Black;brown
dhgate.com
$83.86
balencaigabags b home le bags cagole wrinkled crescent leather high sense rivet locomotive bag messenger single shoulder armpit qcjj
dhgate.com
$29.28
greeting cards wedding invitations card chinese style diameter floral design envelope pure love red white elegant round party supplies
dhgate.com
$77.30
chandeliers golden luxury aisle lamps modern led chandelier lighting for bedroom study corridor loft stairs home decorative fixtures
dhgate.com
$7.99
Fashion Cute Loose Candy Color Woman T shirts Summer Casual Half Sleeve Solid Long Tops Tee O-neck Slim Korean Style Streetwear
aliexpress.com
$19.40
T82 Smart Watches 2020 Men Bluetooth Smart Watch IP67 Waterproof Sport Bands with Fitness Tracker Smart Bracelet for Ios Andriod
aliexpress.com
$3.07
card holders 1 pc fashion cute marble pattern package waterproof pu bank business id holder travel portable wallet case, Brown;gray
dhgate.com
$21.73
Winter /Spring Fashion Casual Ankle Boots Men Shoes High quality PU Adult Rubber Snow Boots Men Work Martin Footwear Sneakers
aliexpress.com
$5.52
4pcs/set Hot Melt Glue Sticks 11MM *260MM Melt Adhesive PDR Glue Stick Work With Hot Glue Gun Plastic Glue Shovel Accessories
aliexpress.com
$491.38
2000W Car Induction Heater Repair Machines Tool Paintless Removing for Car Repair Removal of Dents Car Body Repair
aliexpress.com
$14.07
Do The Work Новый Бренд Мужской Хлопок О-Образным Вырезом Тренажерный Зал Спорт Летняя Мода Повседневный Бодибилдинг Фитнес Графический Дышащий Крутой Жилет XXL синий
joom.ru




















