在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):ksksue/PhysicaloidLibrary开源软件地址(OpenSource Url):https://github.com/ksksue/PhysicaloidLibrary开源编程语言(OpenSource Language):Java 95.9%开源软件介绍(OpenSource Introduction):Physicaloid LibraryAndroid Library for communicating with physical-computing boards (e.g.Arduino, mbed) Users does not need to download an Arduino sketch from a web site. You (developer) can include Arduino firmwares in your Android app and upload to Google Play. Features
Code exampleUpload a firmware from Android to ArduinoPhysicaloid mPhysicaloid = new Physicaloid(this);
mPhysicaloid.upload(Boards.ARDUINO_UNO, "/sdcard/arduino/Blink.hex"); Write serial data to ArduinoPhysicaloid mPhysicaloid = new Physicaloid(this);
if(mPhysicaloid.open()) {
byte[] buf = "moemoe".getBytes();
mPhysicaloid.write(buf, buf.length);
mPhysicaloid.close()
} Read serial data from ArduinoPhysicaloid mPhysicaloid = new Physicaloid(this);
TextView TextView1 = (TextView) findViewById(R.id.TextView1);// Android TextView
if(mPhysicaloid.open()) {
byte[] buf = new byte[256];
mPhysicaloid.read(buf, buf.length);
String str = new String(buf);
TextView1.append(str);
mPhysicaloid.close();
} How to use
Special ThanksThis code has built in knowledge of avrdude. Thanks to all avrdude coders. LicensePhysicaloid Library is released under the Apache License, Version 2.0. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论