rpi_i2c 0.4.0 copy "rpi_i2c: ^0.4.0" to clipboard
rpi_i2c: ^0.4.0 copied to clipboard

PlatformLinux

rpi_i2c is a Dart library for using I2C on the Raspberry Pi.

4
likes
140/ 160
pub points
28%
popularity

We analyzed this package 4 days ago, and awarded it 140 pub points (of a possible 160):

OK
Follow Dart file conventions
30 / 30trigger folding of the section

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: BSD-3-Clause.

OK
Provide documentation
20 / 20trigger folding of the section

10/10 points: 20% or more of the public API has dartdoc comments

18 out of 26 API elements (69.2 %) have documentation comments.

Some symbols that are missing documentation: i2c, i2c.I2CDevice.address, i2c.I2CException.address, i2c.I2CException.errorNumber, i2c.I2CException.message.

10/10 points: Package has an example

failed
Platform support
20 / 20trigger folding of the section

20/20 points: Supports 1 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Linux

These platforms are not supported:

Package does not support platform `Android`.

Because:

  • package:rpi_i2c/rpi_i2c.dart that declares support for platforms: Linux.
Package does not support platform `iOS`.

Because:

  • package:rpi_i2c/rpi_i2c.dart that declares support for platforms: Linux.
Package does not support platform `Windows`.

Because:

  • package:rpi_i2c/rpi_i2c.dart that declares support for platforms: Linux.
Package does not support platform `macOS`.

Because:

  • package:rpi_i2c/rpi_i2c.dart that declares support for platforms: Linux.
Package does not support platform `Web`.

Because:

  • package:rpi_i2c/rpi_i2c.dart that declares support for platforms: Linux.

0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:rpi_i2c/rpi_i2c.dart that imports:
  • package:ffi/ffi.dart that imports:
  • package:ffi/src/utf16.dart that imports:
  • dart:ffi

This package is not compatible with runtime wasm, and will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

partial
Pass static analysis
40 / 50trigger folding of the section

40/50 points: code has no errors, warnings, lints, or formatting issues

Found 5 issues. Showing the first 2:

INFO: Statements in an if should be enclosed in a block.

lib/rpi_i2c.dart:57:7

   ╷
57 │       throw I2CException('Expected values length between 1 and 32', address);
   │       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/rpi_i2c.dart

INFO: 'elementAt' is deprecated and shouldn't be used. Use operator + instead.

lib/rpi_i2c.dart:62:27

   ╷
62 │       values[index] = buf.elementAt(index).value;
   │                           ^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/rpi_i2c.dart

failed
Support up-to-date dependencies
30 / 40trigger folding of the section

0/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest
ffi ^1.2.1 1.2.1 2.1.3
path >=1.0.0 <2.0.0 1.9.1 1.9.1

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

The constraint `^1.2.1` on ffi does not support the stable version `2.0.0`.

Try running dart pub upgrade --major-versions ffi to update the constraint.

10/10 points: Package supports latest stable Dart and Flutter SDKs

20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.15, Dart 3.5.4.

Check the analysis log for details.

4
likes
140
pub points
28%
popularity

Publisher

verified publisherdanrubel.net

rpi_i2c is a Dart library for using I2C on the Raspberry Pi.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

ffi, path

More

Packages that depend on rpi_i2c