Skip to main content

Wireless Button Addition

Important Note
  • The wireless button requires battery installation, the battery model is CR927
  • Return to the home page and click the + inside the red box in the image below
    Loading...
  • After the interface below appears, press the wireless button with the battery installed once normally
  • The wireless button's ID will be automatically generated in the red box; this ID is unique
    Loading...
  • Enter the name you want for the button in the red box
    Loading...
  • Click the first red box, and the second blue box will appear
    Loading...
Note
  • Custom GCODE and API requests are controlled via wireless connection
  • GPIO triggering is controlled via wired connection

Custom GCODE

  • Customize GCODE; you can enter the code or macro name you need to execute in the red box, and AirClick will automatically send it to the printer for execution
    Loading...

Request API

  1. Predefined APIs can implement custom macros, emergency stop, Klipper restart, firmware restart, system shutdown, etc.
Loading...
  1. Custom API Explanation
    • All API reference documentation Moonraker API
    • method should be consistent with the method of the Moonraker API
    • params should be consistent with the params of the Moonraker API
  2. Below is an example using the API to start printing a specified file
    • The image below is an example from the Moonraker official documentation
    Loading...
    • Below is an example of filling in the API for AirClick
    Loading...
  3. Save this button to be able to start printing the specified file

Trigger GPIO (Klipper Only)

  • Triggering GPIO requires STM32F072 to be connected to Klipper

  • For firmware flashing and connection, please refer to this document Firmware Flashing and Connection

  • Ten IOs from PB0 to PB9 can be used. After properly flashing the firmware and connecting to Klipper, standard configuration is sufficient. Below is a reference configuration

    [mcu AirClick]
    serial: /dev/serial/by-id/usb-Klipper_stm32f072xb_AirClick-if00
    ### Need to search for USB ID and modify here

    [gcode_button _test]
    pin: ^!AirClick:PB0
    press_gcode:
    M118 PB0

    [gcode_button _test1]
    pin: ^!AirClick:PB1
    press_gcode:
    M118 PB1

    [gcode_button _test2]
    pin: ^!AirClick:PB2
    press_gcode:
    M118 PB2

    [gcode_button _test3]
    pin: ^!AirClick:PB3
    press_gcode:
    M118 PB3

    [gcode_button _test4]
    pin: ^!AirClick:PB4
    press_gcode:
    M118 PB4

    [gcode_button _test5]
    pin: ^!AirClick:PB5
    press_gcode:
    M118 PB5

    [gcode_button _test6]
    pin: ^!AirClick:PB6
    press_gcode:
    M118 PB6

    [gcode_button _test7]
    pin: ^!AirClick:PB7
    press_gcode:
    M118 PB7

    [gcode_button _test8]
    pin: ^!AirClick:PB8
    press_gcode:
    M118 PB8

    [gcode_button _test9]
    pin: ^!AirClick:PB9
    press_gcode:
    M118 PB9
Loading...