Sha256: d89d218f0a0ee320632a7ae66b87691c74ccfd3d32a81034aee71a0a375afb34
Contents?: true
Size: 419 Bytes
Versions: 7
Compression:
Stored size: 419 Bytes
Contents
# # Example that writes to bit bang UART and reads back on hardware UART1. Tested on Arduino Mega. # require 'bundler/setup' require 'denko' board = Denko::Board.new(Denko::Connection::Serial.new) hw_uart = Denko::UART::Hardware.new(board: board, index: 1, baud: 31250) bb_uart = Denko::UART::BitBang.new(board: board, pins: { rx:10, tx:11 }, baud: 31250) bb_uart.write("Hello World!\n") sleep 1 puts hw_uart.gets
Version data entries
7 entries across 7 versions & 1 rubygems