Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading;
- using System.Threading.Tasks;
- namespace ComConnector
- {
- public class Modul_I7021
- {
- private ComPort _comPort;
- private int address = 3;
- public Modul_I7021(ComPort comPort, int _adress)
- {
- _comPort = comPort;
- SetModeVolt(address);
- }
- private string SetModeVolt(int adress) => _comPort.SendPort($"$0{adress}7");
- public string SetVolt(int adress,string volt)
- {
- return _comPort.SendPort($"#0{adress}{volt}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement