Sha256: 890997ccf81e897fb2396ac77a422c1676da8698a2a7a66e43a5e3bb38627d4c
Contents?: true
Size: 343 Bytes
Versions: 7
Compression:
Stored size: 343 Bytes
Contents
# # Example that writes to TX pin of hardware UART1 and reads back on RX pin of same UART. # require 'bundler/setup' require 'denko' board = Denko::Board.new(Denko::Connection::Serial.new) uart = Denko::UART::Hardware.new(board: board, index: 1, baud: 31250) uart.write("Hello World!\nBye World!\n") sleep 1 puts uart.gets puts uart.gets
Version data entries
7 entries across 7 versions & 1 rubygems