Sha256: 5f55fcceecf11c8353af6c36c15c1ebca0200aba2875870282bb9cada7751627
Contents?: true
Size: 470 Bytes
Versions: 1
Compression:
Stored size: 470 Bytes
Contents
require_relative "./bit_bang_serial_rx" require_relative "./bit_bang_serial_tx" class Pigpio class BitBangSerial < BitBangSerialTx attr_reader :rx def initialize(rx, tx, baud = 9600, data_bits = 8, stop_bits = 1, parity_type = :none) super(tx, baud, data_bits, stop_bits) @rx = BitBangSerialRx.new(rx, baud, data_bits) end def close super @rx.close end def read(bufsize = 1) @rx.read(bufsize) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pigpio-0.1.12 | lib/pigpio/bit_bang_serial.rb |