danrubel / rpi_gpio.dart

Dart library for accessing the Raspberry Pi GPIO pins
Other
47 stars 5 forks source link

Use `dart:ffi` for native code? #21

Closed simolus3 closed 1 year ago

simolus3 commented 2 years ago

Thanks for your awesome work on this package.

This package uses dart-ext imports to access native code, a mechanism that is deprecated and will be removed in Dart 2.15. I wonder if you have considered using dart:ffi to bind to native code instead? I'm happy to send in a PR if you're interested.

danrubel commented 2 years ago

I have not had time to look into dart:ffi, but I definitely want to move in that direction. It would be wonderful if you have the time to pull together a PR. No worries if you are busy... I will get to it when I can.

simolus3 commented 2 years ago

I broke my PI out of stupidity (short-circuited the wrong pins) so it looks like I won't be finishing a PR for this soon :( Sorry for over-promising!

danrubel commented 2 years ago

No worries! I'll get to it when I can.

danrubel commented 1 year ago

This package has been updated to use dart:ffi and now runs on Dart SDK 2.18