Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
Punch Through
Published © MIT

Slack Thumberator

A thumbs up/down button for Slack that works over BLE.

BeginnerShowcase (no instructions)1 hour1,610
Slack Thumberator

Things used in this project

Story

Read more

Schematics

Thumberator Schematic

Code

HID_Thumberator

Arduino
void setup() {
  BeanHid.enable();
  pinMode(0, INPUT_PULLUP);  //the button is on pin 0, set as an input
}
void loop() {
  AccelerationReading accel = Bean.getAcceleration();
  if(digitalRead(0)==0){
    Bean.setLedRed(255);
    if (accel.yAxis>0){
      BeanHid.sendKeys(":thumbsup:");
    }
    else {
      BeanHid.sendKeys(":thumbsdown:");
    }
    BeanHid.sendKeys("\r\n");
    BeanHid.sendKeys("\r\n");
    Bean.sleep(200);
    Bean.setLedRed(0);
  }
  Bean.sleep(100);
}

Credits

Punch Through
16 projects • 41 followers
We’ve been building connected products since 2009. Our diverse team has expertise in every layer from hardware to software to web.
Contact

Comments

Please log in or sign up to comment.