Microcontroller Driver Reference - arenaudineau/AwesomeArray-PythonDriver GitHub Wiki

  • set_sr: ['procedure' command]
    Set Shift Register input bit

    • Argument 0: Shift Register identifier (see SR_LIST)
    • Argument 1: Input bit state (State.RESET or State.SET)
  • fill_srs: ['procedure' command]
    Fill the five Shift Registers

    • Arguments 0->7: Value of SR.WLE, encoded with little endianness
    • Arguments 8->15: Value of SR.WLO, encoded with little endianness
    • Arguments 16->23: Value of SR.SL , encoded with little endianness
    • Arguments 24->31: Value of SR.BL , encoded with little endianness
    • Arguments 32->39: Value of SR.BLB, encoded with little endianness
  • set_cs: ['procedure' command]
    Set a Control Signal

    • Argument 0: Control Signal identifier (see CS_LIST)
    • Argument 1: Input bit state (State.RESET or State.SET)
  • set_adr_r: ['procedure' command]
    Set Row address

    • Argument 0: The 5-bit address (int or bytes)
  • set_adr_c: ['procedure' command]
    Set Column address

    • Argument 0: The 5-bit address (int or bytes)
  • get_ctl: ['function' command]
    Get Shift Registers sanity bit

    • Argument 0: Shift Register identifier (see SR_LIST)
    • Returns the bit state (init a State with it for easier manipulation)
  • clk: ['procedure' command]
    Clock once

  • clk_sr: ['procedure' command]
    Clock once the shift registers

  • clock_xnor: ['procedure' command]
    Clock once the XNOR

  • ack_mode: [special command]
    Specify the commands which should send acknowledge after completion.

    • Argument 0: Flag of the commands (ACK.NONE, ACK_ALL or combinaison of ACK.{CMD_NAME_UPPERCASE} enum, see ACK_LIST)
    • Returns ack for ACK_MODE, if Argument 0 != ACK.NONE
    • Details The ack sent is the two bytes [0xAA, {CMD_CODE}]
    • Details There is no ack for commands that already returns data.
  • debug_echo: ['function' command]
    Sends back the provided argument

    • Argument 0: byte (only one) to echo
    • Returns the byte provided
  • debug_led: ['function' command]
    Turn on the three board LEDs for 2s

    • Returns b'Hello, C2N!'