- writer.extract("fwfpga/LA2016A", "kingst-la2016a-fpga.bitstream", zero_pad_to=180224)
- writer.extract_re(r"fwusb/fw(.*)", r"kingst-la-\1.fw", decoder=maybe_intel_hex_as_blob)
+
+ # extract all firmware and fpga bitstreams
+ # writer.extract_re(r"fwfpga/(.*)", r"kingst-\1-fpga.bitstream")
+ # writer.extract_re(r"fwusb/fw(.*)", r"kingst-la-\1.fw", decoder=maybe_intel_hex_as_blob)
+
+ # extract fx2 mcu firmware for both the la2016 and la1016
+ # note that 0x01a2 is the usb pid for both of these devices
+ writer.extract_re("fwusb/fw01A2", "kingst-la-01a2.fw", decoder=maybe_intel_hex_as_blob)
+
+ # extract fpga bitstreams for la2016
+ # there are two bitstreams, newer hardware uses the 'a1' bitstream
+ writer.extract_re("fwfpga/LA2016(.*)", r"kingst-la2016\1-fpga.bitstream")
+
+ # extract fpga bitstreams for la1016
+ # there are two bitstreams, newer hardware uses the 'a1' bitstream
+ writer.extract_re("fwfpga/LA1016(.*)", r"kingst-la1016\1-fpga.bitstream")