haptic_morse 1.0.5 copy "haptic_morse: ^1.0.5" to clipboard
haptic_morse: ^1.0.5 copied to clipboard

Convert text to Morse code and haptic vibration patterns in Dart.

example/haptic_morse_example.dart

import 'package:haptic_morse/haptic_morse.dart';

void main() {
  final morse = HapticMorse.custom(
    charMap: ['.-', '-...', '☀️-', '💧💧'], // Your custom Morse patterns
    charReference: 'AB日水', // Must match the map's order
    numericMap: ['...', '...-', '💎', '🌙'],
    numericReference: '0123', // Also in order
  );
  final output = morse.convertTextToMorseString("AB日水");
  print(output);
}
0
likes
160
points
15
downloads

Publisher

unverified uploader

Weekly Downloads

Convert text to Morse code and haptic vibration patterns in Dart.

Repository (GitHub)
View/report issues

Topics

#morse #haptic #vibration

Documentation

API reference

License

MIT (license)

Dependencies

vibration

More

Packages that depend on haptic_morse