dgtdriver 0.2.4 dgtdriver: ^0.2.4 copied to clipboard
A DGT-Chessboard Driver written in pure Dart
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add dgtdriver
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
dgtdriver: ^0.2.4
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:dgtdriver/DGTBoard.dart';
import 'package:dgtdriver/DGTCommunicationClient.dart';
import 'package:dgtdriver/DGTMessage.dart';
import 'package:dgtdriver/models/BatteryStatus.dart';
import 'package:dgtdriver/models/ClockMessage.dart';
import 'package:dgtdriver/models/DeviceTypeOverwrite.dart';
import 'package:dgtdriver/models/FieldUpdate.dart';
import 'package:dgtdriver/models/LEDPattern.dart';
import 'package:dgtdriver/models/Piece.dart';
import 'package:dgtdriver/protocol/Answer.dart';
import 'package:dgtdriver/protocol/ClockAnswer.dart';
import 'package:dgtdriver/protocol/ClockAnswerType.dart';
import 'package:dgtdriver/protocol/ClockButton.dart';
import 'package:dgtdriver/protocol/ClockCommand.dart';
import 'package:dgtdriver/protocol/Command.dart';
import 'package:dgtdriver/protocol/DGTProtocol.dart';
import 'package:dgtdriver/protocol/DataCommand.dart';
import 'package:dgtdriver/protocol/commands/AuthorizeWithDeveloperKey.dart';
import 'package:dgtdriver/protocol/commands/BatteryUpdate.dart';
import 'package:dgtdriver/protocol/commands/FieldUpdate.dart';
import 'package:dgtdriver/protocol/commands/GetBoard.dart';
import 'package:dgtdriver/protocol/commands/GetClockInfo.dart';
import 'package:dgtdriver/protocol/commands/GetClockVersion.dart';
import 'package:dgtdriver/protocol/commands/GetSerialNumber.dart';
import 'package:dgtdriver/protocol/commands/GetVersion.dart';
import 'package:dgtdriver/protocol/commands/RequestDeviceInfoCommand.dart';
import 'package:dgtdriver/protocol/commands/SendClockAscii.dart';
import 'package:dgtdriver/protocol/commands/SendClockBeep.dart';
import 'package:dgtdriver/protocol/commands/SendClockSet.dart';
import 'package:dgtdriver/protocol/commands/SendReset.dart';
import 'package:dgtdriver/protocol/commands/SendUpdate.dart';
import 'package:dgtdriver/protocol/commands/SendUpdateBattery.dart';
import 'package:dgtdriver/protocol/commands/SendUpdateBoard.dart';
import 'package:dgtdriver/protocol/commands/SendUpdateNice.dart';
import 'package:dgtdriver/protocol/commands/SetLEDPattern.dart';