Coder Social home page Coder Social logo

vaeaze / ch34xuart Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yutils/ch34xuart

0.0 0.0 0.0 283 KB

CH340/CH341的USB转串口安卓免驱应用库。在原版的基础上修复bug。优化代码 1. 修复:退出时,读取线程未关闭的bug 2. 新增USB断开监听回调 3. 读取数据后采用回调给前端,而不是之前的死循环 3. 采用java8 4. 支持到android12 5. demo启用dataBinding,而不再使用findViewById 6. 优化代码逻辑,使得更容易理解和使用 7. 新增大量注释(中文) 8. 更新UI布局和颜色调整

License: Apache License 2.0

Java 100.00%

ch34xuart's Introduction

CH340/CH341的USB转串口安卓免驱应用库

在原版的基础上修复bug,优化代码

  1. 修复:退出时,读取线程未关闭的bug
  2. 新增USB断开监听回调
  3. 读取数据后采用回调给前端,而不是之前的死循环
  4. 采用java17
  5. 支持到android13
  6. demo启用dataBinding,而不再使用findViewById
  7. 优化代码逻辑,使得更容易理解和使用
  8. 新增大量注释(中文)
  9. 更新UI布局和颜色调整

引用

dependencies {
    //更新地址  https://github.com/yutils/CH34xUART 建议过几天访问看下有没有新版本
    implementation 'com.kotlinx:CH34xUART:1.0.0'
}

注:如果引用失败,或者工程未引入mavenCentral,请引入:mavenCentral()

allprojects {
    repositories {
        mavenCentral()
        //阿里云等...
    }
}

使用方法

可以参考MainActivity.java

界面截图

截图

releases里面有APK文件。点击前往

感谢:CH34xUARTCH340/CH341的USB转串口安卓免驱应用库

如果调用安卓原生串口,请参考这个工程:
YSerialPort

ch34xuart's People

Contributors

yutils avatar

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.