Peter Sauer
Peter Sauer
The Raspberry Pi and most clones computer do not have a way to read analog inputs. This functionaly is provided by additonal hats or projects like this one: https://learn.adafruit.com/reading-a-analog-in-and-controlling-audio-volume-with-the-raspberry-pi?view=all
I started a private project to port https://github.com/caprica/picam https://github.com/caprica/picam-native to dart using FFI. But this port will only support still images.
> cool! any chance of sharing it? photo is fine foe now. thx I will publish this port on pub.dev in the next time.
Yes you can, but it is a little tricky: ``` cli flutter-pi asset_dir param1 param2 ``` ``` Dart import 'dart:ffi'; import 'dart:io'; bool _isFutterPi = Platform.resolvedExecutable.endsWith('flutter-pi'); bool isFutterPiEnv() { return...
Thanks for your submission. I will include these changes for the next relaase 0.9.6. For this release I will update the https://github.com/vsergeev/c-periphery libs. After two years an update is available.
Yes - I will write an example using an dart isolate process which passes the serial data via stream. The one thread model of dart/flutter seems to conflicts with polling...
Yes I will take a look on these libs on a second step - but as a first step, I want to write/test general code for streaming sensor (Serial/I2C,etc) data...
I started with the first tests - I adapted an isolate example for a long running task: [gist code snippet](https://gist.github.com/pezi/cb3388319b1c11c986b6cc24ff9af16f) But this code has the problem, the possibility to stop...
I played arround with reflection and annotation to pass generic code into a the scope of an isolate. The isolate class calls annotated static methods to pass data to an...
Real world example [Cozir CO2 Sensor](https://gist.github.com/pezi/c0b4399a6fd5c31540f7bb89f1da94b7) Next step - flutter_pi test application.