class Pigpio::BitBangSerial

Attributes

rx[R]

Public Class Methods

new(rx,tx,baud=9600,data_bits=8,stop_bits=1,parity_type=:none) click to toggle source
Calls superclass method
# File lib/pigpio/bit_bang_serial.rb, line 7
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

Public Instance Methods

close() click to toggle source
Calls superclass method
# File lib/pigpio/bit_bang_serial.rb, line 11
def close
  super
  @rx.close
end
read(bufsize=1) click to toggle source
# File lib/pigpio/bit_bang_serial.rb, line 15
def read(bufsize=1)
  @rx.read(bufsize)
end