Giter Site home page Giter Site logo

chooka888 / bluetoothduck Goto Github PK

View Code? Open in Web Editor NEW
22.0 4.0 3.0 104 KB

An Android controlled bluetooth rubber duck - see my hackaday.io project for instructions to make your own for less than $10

Home Page: https://hackaday.io/project/27533-bluetooth-rubber-duck

License: Apache License 2.0

Java 95.11% Arduino 4.89%
attiny85 bluetooth rubber-ducky rubberducky android

bluetoothduck's Issues

special characters

Hello! I`m testing this app.

On the one hand I had to change the digispark keyboard library so that the layout of my keyboard matches my system:
https://github.com/Dasor/digispark-keyboard-layout-Spanish

I am not able to translate certain characters through the STRING command.

For example: To write ñ I have done the following:

-On android code:
added>> s = s.replace('ñ', '\001');
before>> for (char c:s.toCharArray()){
this.btSocket.getOutputStream().write(c);
try {
Thread.sleep(10);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
-On arduino code keyboard.h:
...
#define KEY_SEMICOLON 51
...
size_t write(uint8_t chr) {
if(chr == '@') {
sendKeyStroke(31,MODIFIERKEY_RIGHT_ALT);
}
else if(chr == '#') {
sendKeyStroke(32, MODIFIERKEY_RIGHT_ALT);
}
else if(chr == 'ñ'){
sendKeyStroke(KEY_SEMICOLON);
}
...

That is, replace the character in the sending. And reassign it on receipt prior to writing

I am not able to write other types of characters such as #,€

Can you enlighten me and help me a little to see what is the way to solve it?

Thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.