flet-dev / flet

Flet enables developers to easily build realtime web, mobile and desktop apps in Python. No frontend experience required.
https://flet.dev
Apache License 2.0
11.33k stars 441 forks source link

Could flet support USB accessbility? #616

Closed xpsheng closed 1 year ago

xpsheng commented 1 year ago

Flet is a very good framework to develop some testing tools. Besides pure SW, could flet support some connection with HW? e.g. USB CDC, UVC etc.

FeodorFitsner commented 1 year ago

Flet app is a regular Python app, so if you know a Python library working with USB you can use it in your Flet program.

Skquark commented 1 year ago

A good package that you can play with for USB hardware circuit board programming is Adafruit CircuitPython API https://circuitpython.org/ Docs at https://docs.circuitpython.org/en/latest/docs/index.html Looks like fun, I almost feel like tinkering around with it to resurrect one of my old projects. There's also python libraries out there for Arduino control if that's what you're looking for.

ExtremeGTX commented 1 year ago

you can use pyserial for communication with USB CDC, as @FeodorFitsner said it is a regular python App where you can use whatever python library you want.

xpsheng commented 1 year ago

Thanks a lot for your comments there to have more tips! This issue could be closed.

ssaravanan384900712 commented 8 months ago

Flet app is a regular Python app, so if you know a Python library working with USB you can use it in your Flet program.

As assumed flet DOESNT work to access serial USB devices device access - Its a know Issue https://stackoverflow.com/a/51645803

flet build apk -vv

How do i add termios.so into our flet app to do access serial read/write?

As pointed in the below link, https://github.com/frmdstryr/kivy-android-serial