Comments (3)
The [0x@@,0x@@,0x@@,0x@@]
should be replaced by your IP in hex so,
Keyboard.print("[0x@@,0x@@,0x@@,0x@@],0x68,0x02,0x00,[0x@@,0x@@],0");
would become
Keyboard.print("0xC0,0xA8,0x01,0x01,0x68,0x02,0x00,[0x@@,0x@@],0");
, if you had an IP address of 192.168.1.1.
I would use a converter like http://www.rapidtables.com/convert/number/decimal-to-hex.htm or http://ncalculators.com/digital-computation/ip-address-hex-decimal-binary.htm.
In both cases you would need to change your data to one byte to fit into the format. The commenting contains an explanation an example for the port, so I won't go into it.
Remember to remove the brackets.
from pateensy.
So the hex of port 4444 would be [0x11,0x5C] correct?
from pateensy.
It's been a while since I've played with this stuff, but yes that should be correct.
from pateensy.
Related Issues (3)
- Teensy 3.6 feature request HOT 1
- Listener for teensypreter HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pateensy.