Skip to content

Instantly share code, notes, and snippets.

@4noha
Last active May 29, 2018 08:14
Show Gist options
  • Save 4noha/1cb04302e6ce5a5cdf77bd866a25cc8e to your computer and use it in GitHub Desktop.
Save 4noha/1cb04302e6ce5a5cdf77bd866a25cc8e to your computer and use it in GitHub Desktop.
require 'ftdi'
@ctx = Ftdi::Context.new
@ctx.usb_open_desc(0x0403, 0x6001,nil,"00000000")
@ctx.set_bitmode(0x3f, :bitbang)
@ctx.read_pins
@ctx.write_data [0x03]
@4noha
Copy link
Author

4noha commented Apr 20, 2018

192: cup no available, and dont eject yet
196: cup no available
200: dont eject yet
204: pourable

0x03 pomp and heat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment